Register sweet berry bush by add_plant function to enable plant growth

Without calling the add_plant function, sweet berry bushes will not go through growth stages and it is impossible to farm them. Sweet berry bush and beetroot have the same number of growth stages, so I used beetroot's interval and chance values here. If somebody has a better approximation of these values, feel free to change them.
This commit is contained in:
balazsszalab 2022-06-18 15:41:22 +00:00 committed by Gitea
parent 5f4d7774ae
commit 495378b85e

View file

@ -63,3 +63,6 @@ minetest.register_decoration({
y_min = 2,
decoration = "mcl_sweet_berry:sweet_berry_bush_3"
})
-- TODO: Find proper interval and chance values for sweet berry bushes. Current interval and chance values are copied from mcl_farming:beetroot which has similar growth stages.
mcl_farming:add_plant("plant_sweet_berry_bush", "mcl_farming:sweet_berry_bush_3", {"mcl_farming:sweet_berry_bush_0", "mcl_farming:sweet_berry_bush_1", "mcl_farming:sweet_berry_bush_2"}, 68, 3)