1
0
Fork 0

Update init.lua to register dropper callback.

Bamboo-Piston-Dig
Michieal 2023-02-08 21:09:16 -05:00
parent 14383d6c6f
commit f81d530912
1 changed files with 33 additions and 24 deletions

View File

@ -34,6 +34,14 @@ minetest.register_abm({
mcl_bamboo.grow_bamboo(pos, false)
end,
})
if minetest.get_modpath("mesecons_mvps") then
if mesecons_mvps then
for x = 1, #mcl_bamboo.bamboo_index do
mesecon.register_mvps_dropper(mcl_bamboo.bamboo_index[x], mcl_bamboo.break_orphaned)
end
end
else
minetest.register_abm({
label = "Break Orphaned Bamboo",
nodenames = mcl_bamboo.bamboo_index,
@ -62,6 +70,7 @@ minetest.register_abm({
minetest.add_item(pos, istack)
end,
})
end
-- Base Aliases.
local SCAFFOLDING_NAME = "mcl_bamboo:scaffolding"