forked from mtcontrib/bonemeal
using mulch on dry_dirt makes it dry_dirt_with_dry_grass
This commit is contained in:
parent
2db3f4b026
commit
862fd2bb1c
9
init.lua
9
init.lua
|
@ -88,6 +88,7 @@ minetest.after(0.1, function()
|
|||
if def.groups
|
||||
and def.groups.flower
|
||||
and not node:find("waterlily")
|
||||
and not node:find("seaweed")
|
||||
and not node:find("xdecor:potted_")
|
||||
and not node:find("df_farming:") then
|
||||
flowers[#flowers + 1] = node
|
||||
|
@ -519,6 +520,14 @@ function bonemeal:on_use(pos, strength, node)
|
|||
|
||||
particle_effect(pos)
|
||||
|
||||
return true
|
||||
|
||||
elseif node.name == "default:dry_dirt" and strength == 1 then
|
||||
|
||||
minetest.set_node(pos, {name = "default:dry_dirt_with_dry_grass"})
|
||||
|
||||
particle_effect(pos)
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user