diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:00:20 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:10:04 -0400 |
commit | 888b0ebfec8c2eff9015163549a7e47443cb8665 (patch) | |
tree | 915080159bfaa6ba6e226087c7ce0e8d5464b518 /steel/rust.lua | |
parent | da66780a569712c23ae4f2996cfb4608a9f9d69d (diff) | |
download | dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.gz dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.bz2 dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.xz dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.zip |
"explode" all modpacks into their individual components
(you can't have a modpack buried inside a modpack)
Diffstat (limited to 'steel/rust.lua')
-rw-r--r-- | steel/rust.lua | 15 |
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") |