From f05b7352ffb4dc52339be9ea7cefe849580c5814 Mon Sep 17 00:00:00 2001 From: debiankaios Date: Wed, 9 Mar 2022 21:09:46 +0100 Subject: [PATCH] Netherfixes --- mods/ITEMS/mcl_mushroom/init.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_mushroom/init.lua b/mods/ITEMS/mcl_mushroom/init.lua index c5243c88a..126c613bd 100644 --- a/mods/ITEMS/mcl_mushroom/init.lua +++ b/mods/ITEMS/mcl_mushroom/init.lua @@ -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"}, } })