VanessaE 4394beec6a Convert the modpack into a standalone game for the Minetest engine
Integrated into the game is most of minetest_game as the stable base
2021-02-24 22:05:32 -05:00

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")