7755583fa4
rename mods; add `bg_` prefix. add hacky cleanup ABM (couldn't get LBM:s to work), that converts old nodes into new ones according to this rename. the cleanup doesn't do anything for items, though.
10 lines
283 B
Lua
10 lines
283 B
Lua
blockgame.register_abm({
|
|
nodenames = {"bg_terrain:grass"},
|
|
interval = 15,
|
|
chance = 4,
|
|
action = function (pos, node)
|
|
if blockgame.air_flows_through(pos + blockgame.vector.dirs.up) then return false end
|
|
minetest.set_node(pos, {name = "bg_terrain:dirt"})
|
|
return true
|
|
end,
|
|
})
|