diff --git a/README.md b/README.md index abfd7b0..fd143df 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/depends.txt b/depends.txt index 4abda40..dc9bd24 100644 --- a/depends.txt +++ b/depends.txt @@ -1,4 +1,5 @@ default stairs moreblocks? -lucky_block? \ No newline at end of file +lucky_block? +technic_cnc? diff --git a/init.lua b/init.lua index 0d7b1a8..7b04233 100644 --- a/init.lua +++ b/init.lua @@ -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