summaryrefslogtreecommitdiff
path: root/steel/rust.lua
diff options
context:
space:
mode:
Diffstat (limited to 'steel/rust.lua')
-rw-r--r--steel/rust.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/steel/rust.lua b/steel/rust.lua
new file mode 100644
index 0000000..9eea7ca
--- /dev/null
+++ b/steel/rust.lua
@@ -0,0 +1,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")