Add Cobble Walls to Moss Growth ABM
authorNapiophelios <Napiophelios@gmail.com>
Wed, 30 Nov 2016 08:59:49 +0000 (03:59 -0500)
committersfan5 <sfan5@live.de>
Thu, 1 Dec 2016 11:59:25 +0000 (12:59 +0100)
mods/default/functions.lua

index 37b5d581233973b7ed53aae5f4c7f1a3b4b4c09b..ed373ed77a7f78115bb4a98f2f3915e9d29419a0 100644 (file)
@@ -437,7 +437,7 @@ minetest.register_abm({
 
 minetest.register_abm({
        label = "Moss growth",
-       nodenames = {"default:cobble", "stairs:slab_cobble", "stairs:stair_cobble"},
+       nodenames = {"default:cobble", "stairs:slab_cobble", "stairs:stair_cobble", "walls:cobble"},
        neighbors = {"group:water"},
        interval = 16,
        chance = 200,
@@ -449,6 +449,8 @@ minetest.register_abm({
                        minetest.set_node(pos, {name = "stairs:slab_mossycobble", param2 = node.param2})
                elseif node.name == "stairs:stair_cobble" then
                        minetest.set_node(pos, {name = "stairs:stair_mossycobble", param2 = node.param2})
+               elseif node.name == "walls:cobble" then
+                       minetest.set_node(pos, {name = "walls:mossycobble", param2 = node.param2})
                end
        end
 })