forked from mtcontrib/bakedclay
remove technic_cnc dependency, register cnc nodes using minetest.after
This commit is contained in:
parent
4af6f35734
commit
ed06375ad5
@ -2,5 +2,4 @@ default
|
|||||||
stairs
|
stairs
|
||||||
moreblocks?
|
moreblocks?
|
||||||
lucky_block?
|
lucky_block?
|
||||||
technic_cnc?
|
|
||||||
flowerpot?
|
flowerpot?
|
||||||
|
3
init.lua
3
init.lua
@ -91,10 +91,13 @@ for _, clay in pairs(clay) do
|
|||||||
-- register bakedclay for use in technic_cnc mod
|
-- register bakedclay for use in technic_cnc mod
|
||||||
if techcnc_mod then
|
if techcnc_mod then
|
||||||
|
|
||||||
|
minetest.after(0.1, function()
|
||||||
|
|
||||||
technic_cnc.register_all("bakedclay:" .. clay[1],
|
technic_cnc.register_all("bakedclay:" .. clay[1],
|
||||||
{cracky = 3, not_in_creative_inventory = 1},
|
{cracky = 3, not_in_creative_inventory = 1},
|
||||||
{"baked_clay_" .. clay[1] .. ".png"},
|
{"baked_clay_" .. clay[1] .. ".png"},
|
||||||
clay[2] .. " Baked Clay")
|
clay[2] .. " Baked Clay")
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
|||||||
name = bakedclay
|
name = bakedclay
|
||||||
depends = default
|
depends = default
|
||||||
optional_depends = stairs, moreblocks, lucky_block, technic_cnc, flowerpot
|
optional_depends = stairs, moreblocks, lucky_block, flowerpot
|
||||||
description = Adds the ability to bake clay into blocks and colour them with dye.
|
description = Adds the ability to bake clay into blocks and colour them with dye.
|
||||||
|
Loading…
Reference in New Issue
Block a user