From 785edbd5fd2e38872d431b647d215d24d2632350 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 4 May 2024 22:27:36 -0500 Subject: Add more decorations Adds (decorative) tape, including variants with magnets or brackets, and new textures for the outside of the car. --- car.lua | 36 +++++----- decorations.lua | 77 +++++++++++++++++++++ textures/celevator_car_bottom.png | Bin 0 -> 5264 bytes textures/celevator_car_bottom_center.png | Bin 0 -> 5167 bytes textures/celevator_car_side_center2_overlay.png | Bin 0 -> 652 bytes textures/celevator_car_side_center_overlay.png | Bin 0 -> 588 bytes textures/celevator_car_side_overlay.png | Bin 0 -> 681 bytes textures/celevator_car_top_center_overlay.png | Bin 0 -> 635 bytes textures/celevator_car_top_hatch.png | Bin 0 -> 756 bytes textures/celevator_car_top_misc.png | Bin 0 -> 844 bytes textures/celevator_positioning_tape.png | Bin 0 -> 609 bytes textures/celevator_positioning_tape_bracket.png | Bin 0 -> 882 bytes .../celevator_positioning_tape_bracket_back.png | Bin 0 -> 865 bytes textures/celevator_positioning_tape_magnets.png | Bin 0 -> 4347 bytes 14 files changed, 97 insertions(+), 16 deletions(-) create mode 100644 textures/celevator_car_bottom.png create mode 100644 textures/celevator_car_bottom_center.png create mode 100644 textures/celevator_car_side_center2_overlay.png create mode 100644 textures/celevator_car_side_center_overlay.png create mode 100644 textures/celevator_car_side_overlay.png create mode 100644 textures/celevator_car_top_center_overlay.png create mode 100644 textures/celevator_car_top_hatch.png create mode 100644 textures/celevator_car_top_misc.png create mode 100644 textures/celevator_positioning_tape.png create mode 100644 textures/celevator_positioning_tape_bracket.png create mode 100644 textures/celevator_positioning_tape_bracket_back.png create mode 100644 textures/celevator_positioning_tape_magnets.png 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 Binary files /dev/null and b/textures/celevator_car_bottom.png differ diff --git a/textures/celevator_car_bottom_center.png b/textures/celevator_car_bottom_center.png new file mode 100644 index 0000000..b1c6012 Binary files /dev/null and b/textures/celevator_car_bottom_center.png 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 Binary files /dev/null and b/textures/celevator_car_side_center2_overlay.png 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 Binary files /dev/null and b/textures/celevator_car_side_center_overlay.png differ diff --git a/textures/celevator_car_side_overlay.png b/textures/celevator_car_side_overlay.png new file mode 100644 index 0000000..9ba3937 Binary files /dev/null and b/textures/celevator_car_side_overlay.png 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 Binary files /dev/null and b/textures/celevator_car_top_center_overlay.png differ diff --git a/textures/celevator_car_top_hatch.png b/textures/celevator_car_top_hatch.png new file mode 100644 index 0000000..7a4c08d Binary files /dev/null and b/textures/celevator_car_top_hatch.png differ diff --git a/textures/celevator_car_top_misc.png b/textures/celevator_car_top_misc.png new file mode 100644 index 0000000..7aecbd0 Binary files /dev/null and b/textures/celevator_car_top_misc.png differ diff --git a/textures/celevator_positioning_tape.png b/textures/celevator_positioning_tape.png new file mode 100644 index 0000000..dbb58ce Binary files /dev/null and b/textures/celevator_positioning_tape.png differ diff --git a/textures/celevator_positioning_tape_bracket.png b/textures/celevator_positioning_tape_bracket.png new file mode 100644 index 0000000..1995882 Binary files /dev/null and b/textures/celevator_positioning_tape_bracket.png 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 Binary files /dev/null and b/textures/celevator_positioning_tape_bracket_back.png differ diff --git a/textures/celevator_positioning_tape_magnets.png b/textures/celevator_positioning_tape_magnets.png new file mode 100644 index 0000000..7c474a8 Binary files /dev/null and b/textures/celevator_positioning_tape_magnets.png differ -- cgit v1.2.3