4394beec6a
Integrated into the game is most of minetest_game as the stable base
16 lines
338 B
Lua
16 lines
338 B
Lua
local function moss(input, output)
|
|
minetest.register_abm({
|
|
nodenames = {input},
|
|
neighbors = {"group:water"},
|
|
interval = 50,
|
|
chance = 20,
|
|
action = function(pos)
|
|
if not minetest.find_node_near(pos, 3, output) then
|
|
minetest.add_node(pos, {name=output})
|
|
end
|
|
end,
|
|
})
|
|
end
|
|
|
|
moss("steel:plate_soft", "steel:plate_rusted")
|