forked from mtcontrib/bakedclay
technic_cnc support
This commit is contained in:
parent
9ec581dbf2
commit
3af99b27c9
@ -7,6 +7,7 @@ https://forum.minetest.net/viewtopic.php?id=8890
|
|||||||
|
|
||||||
Changelog:
|
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.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.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
|
- 0.6 - Added 3 new flowers and a new grass that are used for missing dyes
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
default
|
default
|
||||||
stairs
|
stairs
|
||||||
moreblocks?
|
moreblocks?
|
||||||
lucky_block?
|
lucky_block?
|
||||||
|
technic_cnc?
|
||||||
|
10
init.lua
10
init.lua
@ -20,6 +20,7 @@ local clay = {
|
|||||||
{"dark_green", "Dark Green"},
|
{"dark_green", "Dark Green"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local techcnc_mod = minetest.get_modpath("technic_cnc")
|
||||||
local stairs_mod = minetest.get_modpath("stairs")
|
local stairs_mod = minetest.get_modpath("stairs")
|
||||||
local stairsplus_mod = minetest.get_modpath("moreblocks")
|
local stairsplus_mod = minetest.get_modpath("moreblocks")
|
||||||
and minetest.global_exists("stairsplus")
|
and minetest.global_exists("stairsplus")
|
||||||
@ -80,6 +81,15 @@ for _, clay in pairs(clay) do
|
|||||||
clay[2] .. " Baked Clay Slab",
|
clay[2] .. " Baked Clay Slab",
|
||||||
default.node_sound_stone_defaults())
|
default.node_sound_stone_defaults())
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
-- cook clay block into white baked clay
|
-- cook clay block into white baked clay
|
||||||
|
Loading…
Reference in New Issue
Block a user