From 06e15458f012a9ec73240b58860eb141650a2fdc Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 1 Apr 2017 01:34:45 +0200 Subject: [PATCH] Allow final mushroom placement on solid block only --- mods/ITEMS/mcl_mushrooms/small.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_mushrooms/small.lua b/mods/ITEMS/mcl_mushrooms/small.lua index a0b216db2..5892a1258 100644 --- a/mods/ITEMS/mcl_mushrooms/small.lua +++ b/mods/ITEMS/mcl_mushrooms/small.lua @@ -59,7 +59,7 @@ end local longdesc = [[Mushrooms are fungi which grow and spread in darkness, but are sensitive to light. -A single mushroom will slowly spread over time towards a random opaque block with a light level of 12 or lower in a 5×5×5 cube around the mushroom. A mushroom stops spreading when there are 5 or more mushrooms of the same color within an area of 9×3×9 blocks around the mushroom. +A single mushroom will slowly spread over time towards a random solid opaque block with a light level of 12 or lower in a 5×5×5 cube around the mushroom. A mushroom stops spreading when there are 5 or more mushrooms of the same color within an area of 9×3×9 blocks around the mushroom. Mushrooms will eventually uproot at a light level of 12 or higher. On mycelium or podzol, they survive and spread at any light level.]] local usagehelp = "Mushrooms can be placed on mycelium and podzol at any light level. They can also be placed on blocks which are both solid and opaque, as long as the light level at daytime is not higher than 12." @@ -181,7 +181,7 @@ minetest.register_abm({ if not node_under then return end - if minetest.get_node_light(random2, 0.5) > 12 or (minetest.get_item_group(node_under.name, "opaque") == 0) then + if minetest.get_node_light(random2, 0.5) > 12 or (minetest.get_item_group(node_under.name, "opaque") == 0) or (minetest.get_item_group(node_under.name, "solid") == 0) then return end