2013-06-05 13:23:58 -07:00
|
|
|
local function moss(input, output)
|
|
|
|
minetest.register_abm({
|
|
|
|
nodenames = {input},
|
|
|
|
neighbors = {"group:water"},
|
|
|
|
interval = 50,
|
|
|
|
chance = 20,
|
|
|
|
action = function(pos)
|
2014-11-30 09:42:21 -08:00
|
|
|
if not minetest.find_node_near(pos, 3, output) then
|
|
|
|
minetest.add_node(pos, {name=output})
|
2013-06-05 13:23:58 -07:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
moss("steel:plate_soft", "steel:plate_rusted")
|