From 42fe7d8c73c510f00ff6c5664ed9bd77f54fd9fe Mon Sep 17 00:00:00 2001 From: balazsszalab Date: Sat, 18 Jun 2022 17:30:23 +0000 Subject: [PATCH] Add sweet berry bush to bonemealable plants Sweet berry bush advances 1 growth stage if bonemeal is applied on it. --- mods/ITEMS/mcl_dye/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/ITEMS/mcl_dye/init.lua b/mods/ITEMS/mcl_dye/init.lua index ca0ca6fe1..09a97e08e 100644 --- a/mods/ITEMS/mcl_dye/init.lua +++ b/mods/ITEMS/mcl_dye/init.lua @@ -281,6 +281,11 @@ local function apply_bone_meal(pointed_thing) if math.random(1, 100) <= 75 then return mcl_farming:grow_plant("plant_beetroot", pos, n, 1, true) end + -- Sweet berry bush advances 1 stage + elseif string.find(n.name, "mcl_farming:sweet_berry_bush_") then + mcl_dye.add_bone_meal_particle(pos) + local stages = 1 + return mcl_farming:grow_plant("plant_sweet_berry_bush", pos, n, stages, true) elseif n.name == "mcl_cocoas:cocoa_1" or n.name == "mcl_cocoas:cocoa_2" then mcl_dye.add_bone_meal_particle(pos) -- Cocoa: Advance by 1 stage