Compare commits

...

1 Commits

Author SHA1 Message Date
debiankaios f05b7352ff Netherfixes 2022-03-09 21:09:46 +01:00
1 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,5 @@
local S = minetest.get_translator("mcl_mushroom")
-- function grow()
function grow_twisting_vines(pos, moreontop)
local y = pos.y + 1
while not (moreontop == 0) do
@ -16,6 +15,18 @@ function grow_twisting_vines(pos, moreontop)
end
end
minetest.register_abm({
nodenames = {"mcl_mushroom:twisting_vines"},
interval = 0.05,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
if minetest.get_node({x = pos.x, y = pos.y-1, z = pos.z}).name == "air" then
minetest.set_node(pos, {name="air"})
minetest.add_item(pos, {name="mcl_mushroom:twisting_vines"})
end
end
})
-- Warped fungus
-- Crimson fungus
@ -421,7 +432,7 @@ minetest.register_craft({
minetest.register_craft({
output = "mcl_mushroom:crimson_nylium 2",
recipe = {
{"mcl_nether:nether_wart"},
{"mcl_nether:nether_wart_block"},
{"mcl_nether:netherrack"},
}
})