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

@ -7,6 +7,7 @@ https://forum.minetest.net/viewtopic.php?id=8890
Changelog:
- 0.9 - Baked clay now works in the technic cnc machine
- 0.8 - Cooking clay block in furnace gives natural baked clay which you can dye
- 0.7 - Added support for stairsplus so that stairs are registered properly
- 0.6 - Added 3 new flowers and a new grass that are used for missing dyes

@ -1,4 +1,5 @@
default
stairs
moreblocks?
lucky_block?
lucky_block?
technic_cnc?

@ -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