2023-10-12 06:26:37 +00:00
|
|
|
blockgame.register_abm({
|
2023-10-15 16:22:13 +00:00
|
|
|
nodenames = {"bg_terrain:grass"},
|
2023-10-12 06:26:37 +00:00
|
|
|
interval = 15,
|
|
|
|
chance = 4,
|
|
|
|
action = function (pos, node)
|
|
|
|
if blockgame.air_flows_through(pos + blockgame.vector.dirs.up) then return false end
|
2023-10-15 16:22:13 +00:00
|
|
|
minetest.set_node(pos, {name = "bg_terrain:dirt"})
|
2023-10-12 06:26:37 +00:00
|
|
|
return true
|
|
|
|
end,
|
|
|
|
})
|