Add more particles when bonemealing grass.

* Bonemealing dirt_with_grass spawns new growth over a wide area, so it
  looks better if we spawn a few more extra bone meal particles.
* Update mod.conf depends to mcl_bone_meal.
This commit is contained in:
kabou 2022-05-01 16:30:30 +02:00 committed by teknomunk
parent bdb0a6571f
commit 3a5b96b86b
2 changed files with 5 additions and 2 deletions

View File

@ -99,6 +99,9 @@ local function bonemeal_grass(pointed_thing, placer)
math.random(1, 100) <= 90 / r then
color = below.param2
add_random_flower(pos, color)
if math.random(1,5) == 1 then
mcl_bone_meal.add_bone_meal_particle(pos)
end
end
end
end end end

View File

@ -1,3 +1,3 @@
name=mcl_flowers
depends=mcl_core, mcl_util, mcl_sounds
optional_depends=screwdriver, doc, mcl_flowerpots
depends=mcl_core, mcl_util, mcl_sounds, mcl_bone_meal
optional_depends=screwdriver, doc, mcl_flowerpots