diff options
Diffstat (limited to 'mossy_blocks.lua')
-rw-r--r-- | mossy_blocks.lua | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/mossy_blocks.lua b/mossy_blocks.lua new file mode 100644 index 0000000..1d2c98a --- /dev/null +++ b/mossy_blocks.lua @@ -0,0 +1,55 @@ +local node = { + name = "minetest_errata:mossystone", + short_name = "mossystone", + desc = "Mossy Stone", + tile = "default_stone.png^minetest_errata_moss_overlay.png", +} + + + +minetest.register_node(node.name, { + description = node.desc, + tiles = {node.tile}, + groups = {cracky = 3, stone = 1}, + is_ground_content = false, + sounds = default.node_sound_stone_defaults(), + drop = "default:mossycobble", +}) + +minetest.register_craft({ + output = node.name, + type = "shapeless", + recipe = {"default:junglegrass", "default:stone"}, +}) + + +-- Derivative blocks + +if stairs and stairs.mod and stairs.mod == "redo" then + + stairs.register_all(short_name, node.name, + {cracky = 3, stone = 1}, + {node.tile}, + node.desc .. " Stair", + node.desc .. " Slab", + default.node_sound_wood_defaults()) + +elseif minetest.global_exists("stairsplus") then + + stairsplus:register_all("minetest_errata", short_name, node.name, { + description = node.desc, + tiles = {node.tile}, + groups = {cracky = 3, stone = 1}, + sounds = default.node_sound_wood_defaults(), + }) + +else + + stairs.register_stair_and_slab(short_name, node.name, + {cracky = 3, stone = 1}, + {node.tile}, + node.desc .. " Stair", + node.desc .. " Slab", + default.node_sound_wood_defaults()) + +end
\ No newline at end of file |