Add sweet berry bush to bonemealable plants

Sweet berry bush advances 1 growth stage if bonemeal is applied on it.
This commit is contained in:
balazsszalab 2022-06-18 17:30:23 +00:00
parent 5b56acd415
commit 42fe7d8c73
1 changed files with 5 additions and 0 deletions

View File

@ -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