From 142f3d6d5a5e4ee93245c4de051eab3d052d02c5 Mon Sep 17 00:00:00 2001 From: cora Date: Wed, 16 Nov 2022 17:25:38 +0100 Subject: [PATCH] Handle bonemealing in the sweetberry on_rightclick --- mods/ITEMS/mcl_farming/sweet_berry.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_farming/sweet_berry.lua b/mods/ITEMS/mcl_farming/sweet_berry.lua index 2d1bbb992..69ac552e5 100644 --- a/mods/ITEMS/mcl_farming/sweet_berry.lua +++ b/mods/ITEMS/mcl_farming/sweet_berry.lua @@ -36,6 +36,10 @@ for i=0, 3 do _mcl_blast_resistance = 0, _mcl_hardness = 0, on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) + if mcl_dye and clicker:get_wielded_item():get_name() == "mcl_dye:white" then + mcl_dye.apply_bone_meal({under=pos},clicker) + return + end local stage if node.name:find("_2") then stage = 2