From 9e3163ec42f8f6624aff467072411d341dbca565 Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 27 Oct 2022 00:19:38 +0200 Subject: [PATCH] Drop sweet berry item when bone mealing mature bush --- mods/ITEMS/mcl_dye/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_dye/init.lua b/mods/ITEMS/mcl_dye/init.lua index 3eebcecec..1d39a0598 100644 --- a/mods/ITEMS/mcl_dye/init.lua +++ b/mods/ITEMS/mcl_dye/init.lua @@ -283,7 +283,11 @@ local function apply_bone_meal(pointed_thing) end elseif string.find(n.name, "mcl_farming:sweet_berry_bush_") then mcl_dye.add_bone_meal_particle(pos) - return mcl_farming:grow_plant("plant_sweet_berry_bush", pos, n, 1, true) + if n.name == "mcl_farming:sweet_berry_bush_3" then + return minetest.add_item(vector.offset(pos,math.random()-0.5,math.random()-0.5,math.random()-0.5),"mcl_farming:sweet_berry") + else + return mcl_farming:grow_plant("plant_sweet_berry_bush", pos, n, 1, true) + end 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