summaryrefslogtreecommitdiff
path: root/steel/rust.lua
blob: 9eea7ca5ba8bf7dc637992ee98ce2f2d89b75248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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")