summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--decorations.lua53
-rw-r--r--textures/celevator_guide_rail.pngbin0 -> 2289 bytes
-rw-r--r--textures/celevator_guide_rail_edge.pngbin0 -> 2303 bytes
3 files changed, 53 insertions, 0 deletions
diff --git a/decorations.lua b/decorations.lua
index abf2a50..b218c0b 100644
--- a/decorations.lua
+++ b/decorations.lua
@@ -115,3 +115,56 @@ minetest.register_node("celevator:buffer_oil_top",{
},
},
})
+
+minetest.register_node("celevator:guide_rail",{
+ description = "Elevator Guide Rail",
+ groups = {
+ choppy = 1,
+ },
+ paramtype = "light",
+ paramtype2 = "4dir",
+ tiles = {
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_guide_rail_edge.png^[transformFX",
+ "celevator_guide_rail_edge.png",
+ "celevator_guide_rail.png",
+ },
+ drawtype = "nodebox",
+ node_box = {
+ type = "fixed",
+ fixed = {
+ {-0.015,-0.5,-0.48,0.015,0.5,-0.39},
+ {-0.09,-0.5,-0.39,0.09,0.5,-0.38},
+ },
+ },
+})
+
+minetest.register_node("celevator:guide_rail_bracket",{
+ description = "Elevator Guide Rail with Bracket",
+ groups = {
+ choppy = 1,
+ },
+ paramtype = "light",
+ paramtype2 = "4dir",
+ tiles = {
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_guide_rail_edge.png^[transformFX",
+ "celevator_guide_rail_edge.png",
+ "celevator_guide_rail.png",
+ },
+ drawtype = "nodebox",
+ node_box = {
+ type = "fixed",
+ fixed = {
+ {-0.015,-0.5,-0.48,0.015,0.5,-0.39},
+ {-0.09,-0.5,-0.39,0.09,0.5,-0.38},
+ {-0.25,-0.1,-0.38,0.25,0.1,-0.35},
+ {-0.28,-0.1,-0.38,-0.25,0.1,0.5},
+ {0.25,-0.1,-0.38,0.28,0.1,0.5},
+ {-0.5,-0.1,0.47,-0.28,0.1,0.5},
+ {0.28,-0.1,0.47,0.5,0.1,0.5},
+ },
+ },
+})
diff --git a/textures/celevator_guide_rail.png b/textures/celevator_guide_rail.png
new file mode 100644
index 0000000..75f1c0f
--- /dev/null
+++ b/textures/celevator_guide_rail.png
Binary files differ
diff --git a/textures/celevator_guide_rail_edge.png b/textures/celevator_guide_rail_edge.png
new file mode 100644
index 0000000..d851565
--- /dev/null
+++ b/textures/celevator_guide_rail_edge.png
Binary files differ