1
0
mirror of https://codeberg.org/tenplus1/bakedclay.git synced 2025-07-06 18:20:33 +02:00

technic_cnc support

This commit is contained in:
tenplus1
2019-09-10 09:16:04 +01:00
parent 9ec581dbf2
commit 3af99b27c9
3 changed files with 13 additions and 1 deletions

View File

@ -20,6 +20,7 @@ local clay = {
{"dark_green", "Dark Green"},
}
local techcnc_mod = minetest.get_modpath("technic_cnc")
local stairs_mod = minetest.get_modpath("stairs")
local stairsplus_mod = minetest.get_modpath("moreblocks")
and minetest.global_exists("stairsplus")
@ -80,6 +81,15 @@ for _, clay in pairs(clay) do
clay[2] .. " Baked Clay Slab",
default.node_sound_stone_defaults())
end
-- register bakedclay for use in technic_cnc mod
if techcnc_mod then
technic_cnc.register_all("bakedclay:" .. clay[1],
{cracky = 3, not_in_creative_inventory = 1},
{"baked_clay_" .. clay[1] .. ".png"},
clay[2] .. " Baked Clay")
end
end
-- cook clay block into white baked clay