summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-05-04 22:27:36 -0500
committercheapie <no-email-for-you@example.com>2024-05-04 22:27:36 -0500
commit785edbd5fd2e38872d431b647d215d24d2632350 (patch)
tree07ad6238b87833878e5c64c4b5d762b1bc56e41a
parente26a90f00ab07432ed1dc5dd374241800626475a (diff)
downloadcelevator-785edbd5fd2e38872d431b647d215d24d2632350.tar
celevator-785edbd5fd2e38872d431b647d215d24d2632350.tar.gz
celevator-785edbd5fd2e38872d431b647d215d24d2632350.tar.bz2
celevator-785edbd5fd2e38872d431b647d215d24d2632350.tar.xz
celevator-785edbd5fd2e38872d431b647d215d24d2632350.zip
Add more decorations
Adds (decorative) tape, including variants with magnets or brackets, and new textures for the outside of the car.
-rw-r--r--car.lua36
-rw-r--r--decorations.lua77
-rw-r--r--textures/celevator_car_bottom.pngbin0 -> 5264 bytes
-rw-r--r--textures/celevator_car_bottom_center.pngbin0 -> 5167 bytes
-rw-r--r--textures/celevator_car_side_center2_overlay.pngbin0 -> 652 bytes
-rw-r--r--textures/celevator_car_side_center_overlay.pngbin0 -> 588 bytes
-rw-r--r--textures/celevator_car_side_overlay.pngbin0 -> 681 bytes
-rw-r--r--textures/celevator_car_top_center_overlay.pngbin0 -> 635 bytes
-rw-r--r--textures/celevator_car_top_hatch.pngbin0 -> 756 bytes
-rw-r--r--textures/celevator_car_top_misc.pngbin0 -> 844 bytes
-rw-r--r--textures/celevator_positioning_tape.pngbin0 -> 609 bytes
-rw-r--r--textures/celevator_positioning_tape_bracket.pngbin0 -> 882 bytes
-rw-r--r--textures/celevator_positioning_tape_bracket_back.pngbin0 -> 865 bytes
-rw-r--r--textures/celevator_positioning_tape_magnets.pngbin0 -> 4347 bytes
14 files changed, 97 insertions, 16 deletions
diff --git a/car.lua b/car.lua
index 1144e3d..1e3d2be 100644
--- a/car.lua
+++ b/car.lua
@@ -69,8 +69,9 @@ local pieces = {
},
tiles = {
"celevator_car_floor.png^celevator_door_sill_single.png",
- "celevator_cabinet_sides.png",
+ "celevator_car_bottom.png",
"celevator_car_wallpaper.png^celevator_car_wall_bottom.png^celevator_car_switch_panel.png",
+ "celevator_cabinet_sides.png^celevator_car_side_overlay.png^[transformR90",
"celevator_cabinet_sides.png",
},
on_timer = function(pos)
@@ -115,8 +116,9 @@ local pieces = {
},
tiles = {
"celevator_car_floor.png",
- "celevator_cabinet_sides.png",
+ "celevator_car_bottom_center.png",
"celevator_car_wallpaper.png^celevator_car_wall_bottom.png^celevator_car_wall_vent.png",
+ "celevator_cabinet_sides.png^celevator_car_side_center_overlay.png",
"celevator_cabinet_sides.png",
},
},
@@ -132,9 +134,9 @@ local pieces = {
},
tiles = {
"celevator_car_floor.png",
- "celevator_cabinet_sides.png",
+ "celevator_car_bottom.png",
"celevator_car_wallpaper.png^celevator_car_wall_bottom.png",
- "celevator_cabinet_sides.png",
+ "celevator_cabinet_sides.png^celevator_car_side_overlay.png",
"celevator_cabinet_sides.png",
"celevator_car_wallpaper.png^celevator_car_wall_bottom.png",
},
@@ -151,8 +153,8 @@ local pieces = {
},
tiles = {
"celevator_car_floor.png^celevator_door_sill_double.png",
- "celevator_cabinet_sides.png",
- "celevator_cabinet_sides.png",
+ "celevator_car_bottom.png",
+ "celevator_cabinet_sides.png^celevator_car_side_overlay.png",
"celevator_car_wallpaper.png^celevator_car_wall_bottom.png",
"celevator_cabinet_sides.png",
},
@@ -168,8 +170,8 @@ local pieces = {
},
tiles = {
"celevator_car_floor.png",
- "celevator_cabinet_sides.png",
- "celevator_cabinet_sides.png",
+ "celevator_car_bottom_center.png^[transformFX",
+ "celevator_cabinet_sides.png^celevator_car_side_center_overlay.png",
"celevator_car_wallpaper.png^celevator_car_wall_bottom.png^celevator_car_wall_vent.png",
"celevator_cabinet_sides.png",
},
@@ -186,8 +188,8 @@ local pieces = {
},
tiles = {
"celevator_car_floor.png",
- "celevator_cabinet_sides.png",
- "celevator_cabinet_sides.png",
+ "celevator_car_bottom.png",
+ "celevator_cabinet_sides.png^celevator_car_side_overlay.png^[transformR90",
"celevator_car_wallpaper.png^celevator_car_wall_bottom.png",
"celevator_cabinet_sides.png",
"celevator_car_wallpaper.png^celevator_car_wall_bottom.png",
@@ -220,6 +222,7 @@ local pieces = {
"celevator_cabinet_sides.png",
"celevator_cabinet_sides.png",
"celevator_car_wallpaper.png^celevator_car_handrail_end.png",
+ "celevator_cabinet_sides.png^celevator_car_side_center2_overlay.png",
"celevator_cabinet_sides.png",
},
},
@@ -268,7 +271,7 @@ local pieces = {
tiles = {
"celevator_cabinet_sides.png",
"celevator_cabinet_sides.png",
- "celevator_cabinet_sides.png",
+ "celevator_cabinet_sides.png^celevator_car_side_center2_overlay.png",
"celevator_car_wallpaper.png^celevator_car_handrail_center.png",
"celevator_cabinet_sides.png",
},
@@ -320,9 +323,10 @@ local pieces = {
},
},
tiles = {
- "celevator_cabinet_sides.png",
+ "celevator_cabinet_sides.png^celevator_car_top_center_overlay.png",
"celevator_car_ceiling.png",
"celevator_car_wallpaper.png",
+ "celevator_cabinet_sides.png^celevator_car_side_center_overlay.png",
"celevator_cabinet_sides.png",
},
on_rightclick = function(pos,node,clicker)
@@ -371,7 +375,7 @@ local pieces = {
},
},
tiles = {
- "celevator_cabinet_sides.png",
+ "celevator_cabinet_sides.png^celevator_car_top_hatch.png",
"celevator_car_ceiling.png",
"celevator_car_wallpaper.png",
"celevator_cabinet_sides.png",
@@ -408,9 +412,9 @@ local pieces = {
},
},
tiles = {
- "celevator_cabinet_sides.png",
+ "celevator_cabinet_sides.png^celevator_car_top_center_overlay.png^[transformFX",
"celevator_car_ceiling.png",
- "celevator_cabinet_sides.png",
+ "celevator_cabinet_sides.png^celevator_car_side_center_overlay.png",
"celevator_car_wallpaper.png",
"celevator_cabinet_sides.png",
},
@@ -426,7 +430,7 @@ local pieces = {
},
},
tiles = {
- "celevator_cabinet_sides.png",
+ "celevator_cabinet_sides.png^celevator_car_top_misc.png",
"celevator_car_ceiling.png",
"celevator_cabinet_sides.png",
"celevator_car_wallpaper.png",
diff --git a/decorations.lua b/decorations.lua
index b218c0b..0728ba2 100644
--- a/decorations.lua
+++ b/decorations.lua
@@ -168,3 +168,80 @@ minetest.register_node("celevator:guide_rail_bracket",{
},
},
})
+
+minetest.register_node("celevator:tape",{
+ description = "Elevator Positioning System Tape",
+ groups = {
+ choppy = 1,
+ },
+ paramtype = "light",
+ paramtype2 = "4dir",
+ tiles = {
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_positioning_tape.png",
+ "celevator_positioning_tape.png",
+ },
+ drawtype = "nodebox",
+ use_texture_alpha = "clip",
+ node_box = {
+ type = "fixed",
+ fixed = {
+ {-0.09,-0.5,-0.3,0.09,0.5,-0.299},
+ },
+ },
+})
+
+minetest.register_node("celevator:tape_magnets",{
+ description = "Elevator Positioning System Tape with Magnets",
+ groups = {
+ choppy = 1,
+ },
+ paramtype = "light",
+ paramtype2 = "4dir",
+ tiles = {
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_positioning_tape.png",
+ "celevator_positioning_tape_magnets.png",
+ },
+ drawtype = "nodebox",
+ use_texture_alpha = "clip",
+ node_box = {
+ type = "fixed",
+ fixed = {
+ {-0.09,-0.5,-0.3,0.09,0.5,-0.299},
+ },
+ },
+})
+
+minetest.register_node("celevator:tape_bracket",{
+ description = "Elevator Positioning System Tape with Bracket",
+ groups = {
+ choppy = 1,
+ },
+ paramtype = "light",
+ paramtype2 = "4dir",
+ tiles = {
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_guide_rail.png",
+ "celevator_positioning_tape_bracket_back.png",
+ "celevator_positioning_tape_bracket.png",
+ },
+ drawtype = "nodebox",
+ use_texture_alpha = "clip",
+ node_box = {
+ type = "fixed",
+ fixed = {
+ {-0.09,-0.5,-0.3,0.09,0.5,-0.299},
+ {-0.5,-0.05,-0.3,0.12,0.08,-0.25},
+ {-0.5,-0.05,-0.25,-0.45,0.08,0},
+ },
+ },
+})
diff --git a/textures/celevator_car_bottom.png b/textures/celevator_car_bottom.png
new file mode 100644
index 0000000..e5f5d6b
--- /dev/null
+++ b/textures/celevator_car_bottom.png
Binary files differ
diff --git a/textures/celevator_car_bottom_center.png b/textures/celevator_car_bottom_center.png
new file mode 100644
index 0000000..b1c6012
--- /dev/null
+++ b/textures/celevator_car_bottom_center.png
Binary files differ
diff --git a/textures/celevator_car_side_center2_overlay.png b/textures/celevator_car_side_center2_overlay.png
new file mode 100644
index 0000000..77b7e6c
--- /dev/null
+++ b/textures/celevator_car_side_center2_overlay.png
Binary files differ
diff --git a/textures/celevator_car_side_center_overlay.png b/textures/celevator_car_side_center_overlay.png
new file mode 100644
index 0000000..57efe18
--- /dev/null
+++ b/textures/celevator_car_side_center_overlay.png
Binary files differ
diff --git a/textures/celevator_car_side_overlay.png b/textures/celevator_car_side_overlay.png
new file mode 100644
index 0000000..9ba3937
--- /dev/null
+++ b/textures/celevator_car_side_overlay.png
Binary files differ
diff --git a/textures/celevator_car_top_center_overlay.png b/textures/celevator_car_top_center_overlay.png
new file mode 100644
index 0000000..1e4e3a4
--- /dev/null
+++ b/textures/celevator_car_top_center_overlay.png
Binary files differ
diff --git a/textures/celevator_car_top_hatch.png b/textures/celevator_car_top_hatch.png
new file mode 100644
index 0000000..7a4c08d
--- /dev/null
+++ b/textures/celevator_car_top_hatch.png
Binary files differ
diff --git a/textures/celevator_car_top_misc.png b/textures/celevator_car_top_misc.png
new file mode 100644
index 0000000..7aecbd0
--- /dev/null
+++ b/textures/celevator_car_top_misc.png
Binary files differ
diff --git a/textures/celevator_positioning_tape.png b/textures/celevator_positioning_tape.png
new file mode 100644
index 0000000..dbb58ce
--- /dev/null
+++ b/textures/celevator_positioning_tape.png
Binary files differ
diff --git a/textures/celevator_positioning_tape_bracket.png b/textures/celevator_positioning_tape_bracket.png
new file mode 100644
index 0000000..1995882
--- /dev/null
+++ b/textures/celevator_positioning_tape_bracket.png
Binary files differ
diff --git a/textures/celevator_positioning_tape_bracket_back.png b/textures/celevator_positioning_tape_bracket_back.png
new file mode 100644
index 0000000..9d5cbf5
--- /dev/null
+++ b/textures/celevator_positioning_tape_bracket_back.png
Binary files differ
diff --git a/textures/celevator_positioning_tape_magnets.png b/textures/celevator_positioning_tape_magnets.png
new file mode 100644
index 0000000..7c474a8
--- /dev/null
+++ b/textures/celevator_positioning_tape_magnets.png
Binary files differ