summaryrefslogtreecommitdiff
path: root/mossy_blocks.lua
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-10-02 16:57:42 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-10-02 16:57:42 +0300
commit891db635037703cc6359c2331c1196625962353e (patch)
tree62af0c1f7e5a6c9d229327c634a9a2b454f961e4 /mossy_blocks.lua
parent01629913382ee5abc2c189bdbc51a86811ae618b (diff)
glass trapdoor
Diffstat (limited to 'mossy_blocks.lua')
-rw-r--r--mossy_blocks.lua56
1 files changed, 54 insertions, 2 deletions
diff --git a/mossy_blocks.lua b/mossy_blocks.lua
index ef7a5b2..98ce019 100644
--- a/mossy_blocks.lua
+++ b/mossy_blocks.lua
@@ -5,8 +5,6 @@ local node = {
tile = "default_stone.png^minetest_errata_moss_overlay.png",
}
-
-
minetest.register_node(node.name, {
description = node.desc,
tiles = {node.tile},
@@ -52,4 +50,58 @@ else
node.desc .. " Slab",
default.node_sound_wood_defaults())
+end
+
+if minetest.get_modpath("moreblocks") then
+ local node = {
+ name = "minetest_errata:mossy_stone_tile",
+ short_name = "mossy_stone_tile",
+ desc = "Mossy Stone Tile",
+ tile = "moreblocks_stone_tile.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 = node.name,
+ })
+
+ minetest.register_craft({
+ output = node.name,
+ recipe = {{"default:mossycobble", "default:mossycobble"},
+ {"default:mossycobble", "default:mossycobble"}}
+ })
+
+ if stairs and stairs.mod and stairs.mod == "redo" then
+
+ stairs.register_all(node.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", node.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(node.short_name, node.name,
+ {cracky = 3, stone = 1},
+ {node.tile},
+ node.desc .. " Stair",
+ node.desc .. " Slab",
+ default.node_sound_wood_defaults())
+
+ end
+
end \ No newline at end of file