summaryrefslogtreecommitdiff
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
parent01629913382ee5abc2c189bdbc51a86811ae618b (diff)
glass trapdoor
-rw-r--r--README.md2
-rw-r--r--doors.lua18
-rw-r--r--mossy_blocks.lua56
-rw-r--r--textures/minetest_errata_trapdoor_glass.pngbin0 -> 220 bytes
-rw-r--r--textures/minetest_errata_trapdoor_glass_side.pngbin0 -> 145 bytes
5 files changed, 74 insertions, 2 deletions
diff --git a/README.md b/README.md
index de34ad7..678b59a 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,8 @@ By its nature, the mod is rather intrusive. It will actively try to alter and ov
* sandstone cobble varieties, with stairs/slabs/microblocks, walls, pkarcs
* doors from moreblocks glass types (clean, iron, coal)
* locked glass doors (regular, obsidian, iron glass)
+* glass trapdoors
+* mossy stone and stone tiles
* double, triple and quadruple glass panes to use with non-square corners
## Borrowed items
diff --git a/doors.lua b/doors.lua
index 48176c3..e70939f 100644
--- a/doors.lua
+++ b/doors.lua
@@ -64,6 +64,24 @@ doors.register("door_obsidian_glass_protected", {
})
+doors.register_trapdoor("minetest_errata:trapdoor_glass", {
+ description = "Glass Trapdoor",
+ inventory_image = "minetest_errata_trapdoor_glass.png",
+ wield_image = "minetest_errata_trapdoor_glass.png",
+ tile_front = "minetest_errata_trapdoor_glass.png",
+ tile_side = "minetest_errata_trapdoor_glass_side.png",
+ groups = {cracky = 3, oddly_breakable_by_hand = 3, door = 1},
+ sounds = default.node_sound_glass_defaults(),
+})
+
+minetest.register_craft({
+ output = "minetest_errata:trapdoor_glass 2",
+ recipe = {
+ {"default:glass", "default:glass", "default:stick"},
+ {"default:glass", "default:glass", "default:stick"},
+ }
+})
+
if minetest.get_modpath("moreblocks") then
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
diff --git a/textures/minetest_errata_trapdoor_glass.png b/textures/minetest_errata_trapdoor_glass.png
new file mode 100644
index 0000000..be25c5f
--- /dev/null
+++ b/textures/minetest_errata_trapdoor_glass.png
Binary files differ
diff --git a/textures/minetest_errata_trapdoor_glass_side.png b/textures/minetest_errata_trapdoor_glass_side.png
new file mode 100644
index 0000000..0049202
--- /dev/null
+++ b/textures/minetest_errata_trapdoor_glass_side.png
Binary files differ