diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-25 11:05:21 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-09-25 11:05:21 +0300 |
commit | 092f3bf49904f5988e874c28a1b31f970b9a5a54 (patch) | |
tree | 2a2c4d25726ca1522891b1ae74b045224066af4c /mossy_blocks.lua | |
parent | 3212735b780d5bbaea6f569b3bc7265f6c23b145 (diff) |
mossy stone
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 |