diff options
author | cheapie <no-email-for-you@example.com> | 2024-04-27 23:46:45 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-04-27 23:46:45 -0500 |
commit | 0b5f729aa89b83286ef31d190b9dee8ec4782bd6 (patch) | |
tree | 76c4d5db82623dd0551876f653e039492feeac47 | |
parent | 7077022b3e565664bc1d59770cc33a892762cec9 (diff) | |
download | celevator-0b5f729aa89b83286ef31d190b9dee8ec4782bd6.tar celevator-0b5f729aa89b83286ef31d190b9dee8ec4782bd6.tar.gz celevator-0b5f729aa89b83286ef31d190b9dee8ec4782bd6.tar.bz2 celevator-0b5f729aa89b83286ef31d190b9dee8ec4782bd6.tar.xz celevator-0b5f729aa89b83286ef31d190b9dee8ec4782bd6.zip |
Add guide rails
-rw-r--r-- | decorations.lua | 53 | ||||
-rw-r--r-- | textures/celevator_guide_rail.png | bin | 0 -> 2289 bytes | |||
-rw-r--r-- | textures/celevator_guide_rail_edge.png | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000..75f1c0f --- /dev/null +++ b/textures/celevator_guide_rail.png diff --git a/textures/celevator_guide_rail_edge.png b/textures/celevator_guide_rail_edge.png Binary files differnew file mode 100644 index 0000000..d851565 --- /dev/null +++ b/textures/celevator_guide_rail_edge.png |