1
0
mirror of https://codeberg.org/tenplus1/bakedclay.git synced 2024-11-07 00:40:22 +01:00

remove technic_cnc dependency, register cnc nodes using minetest.after

This commit is contained in:
tenplus1 2022-12-19 11:23:17 +00:00
parent 4af6f35734
commit ed06375ad5
3 changed files with 8 additions and 6 deletions

View File

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

View File

@ -91,10 +91,13 @@ for _, clay in pairs(clay) do
-- 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")
minetest.after(0.1, function()
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

View File

@ -1,4 +1,4 @@
name = bakedclay
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.