From 408343277038b8dabdeac6ecf0ea28c855720e15 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 14 Nov 2017 23:52:03 +0100 Subject: [PATCH] Bone meal spawns less floer species on dry grass --- mods/ITEMS/mcl_dye/init.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_dye/init.lua b/mods/ITEMS/mcl_dye/init.lua index 4647d30e..16583eb7 100644 --- a/mods/ITEMS/mcl_dye/init.lua +++ b/mods/ITEMS/mcl_dye/init.lua @@ -123,6 +123,11 @@ mcl_dye.apply_bone_meal = function(pointed_thing) -- Allium and blue orchid intentionally left out, -- those must be found by the player. } + -- Special case for dry lands + local flowers_table_dry = { + "mcl_flowers:dandelion", + "mcl_flowers:poppy", + } local pos = pointed_thing.under local n = minetest.get_node(pos) @@ -226,7 +231,11 @@ mcl_dye.apply_bone_meal = function(pointed_thing) minetest.add_node(pos, {name="mcl_flowers:tallgrass"}) end else - minetest.add_node(pos, {name=flowers_table[math.random(1, #flowers_table)]}) + if n2.name == "mcl_core:dirt_with_dry_grass" then + minetest.add_node(pos, {name=flowers_table_dry[math.random(1, #flowers_table_dry)]}) + else + minetest.add_node(pos, {name=flowers_table[math.random(1, #flowers_table)]}) + end end end end