Add hoistway door nodes

No motion or other functionality yet
This commit is contained in:
cheapie 2023-08-11 22:27:14 -05:00
parent dcf53af2d2
commit 88653b432e
5 changed files with 150 additions and 0 deletions

149
doors.lua Normal file
View File

@ -0,0 +1,149 @@
minetest.register_node("celevator:hwdoor_fast_glass_bottom",{
description = "Glass Hoistway Door (fast, bottom)",
tiles = {
"celevator_transparent.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_topbottom.png^[transformFY",
"celevator_door_glass_topbottom.png^[transformFY",
},
groups = {
dig_immediate = 2,
},
paramtype = "light",
paramtype2 = "4dir",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,0.4,0.5,0.5,0.5},
},
},
})
minetest.register_node("celevator:hwdoor_fast_glass_middle",{
description = "Glass Hoistway Door (fast, middle)",
tiles = {
"celevator_transparent.png",
"celevator_transparent.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_middle.png",
"celevator_door_glass_middle.png",
},
groups = {
dig_immediate = 2,
},
paramtype = "light",
paramtype2 = "4dir",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,0.4,0.5,0.5,0.5},
},
},
})
minetest.register_node("celevator:hwdoor_fast_glass_top",{
description = "Glass Hoistway Door (fast, top)",
tiles = {
"celevator_door_glass_edge.png",
"celevator_transparent.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_topbottom.png",
"celevator_door_glass_topbottom.png",
},
groups = {
dig_immediate = 2,
},
paramtype = "light",
paramtype2 = "4dir",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,0.4,0.5,0.5,0.5},
},
},
})
minetest.register_node("celevator:hwdoor_slow_glass_bottom",{
description = "Glass Hoistway Door (slow, bottom)",
tiles = {
"celevator_transparent.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_topbottom.png^[transformFY",
"celevator_door_glass_topbottom.png^[transformFY",
},
groups = {
dig_immediate = 2,
},
paramtype = "light",
paramtype2 = "4dir",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,0.3,0.5,0.5,0.4},
},
},
})
minetest.register_node("celevator:hwdoor_slow_glass_middle",{
description = "Glass Hoistway Door (slow, middle)",
tiles = {
"celevator_transparent.png",
"celevator_transparent.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_middle.png",
"celevator_door_glass_middle.png",
},
groups = {
dig_immediate = 2,
},
paramtype = "light",
paramtype2 = "4dir",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,0.3,0.5,0.5,0.4},
},
},
})
minetest.register_node("celevator:hwdoor_slow_glass_top",{
description = "Glass Hoistway Door (slow, top)",
tiles = {
"celevator_door_glass_edge.png",
"celevator_transparent.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_edge.png",
"celevator_door_glass_topbottom.png",
"celevator_door_glass_topbottom.png",
},
groups = {
dig_immediate = 2,
},
paramtype = "light",
paramtype2 = "4dir",
drawtype = "nodebox",
use_texture_alpha = "clip",
node_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,0.3,0.5,0.5,0.4},
},
},
})

View File

@ -1,6 +1,7 @@
local components = {
"framework",
"car",
"doors",
"drive_null",
"drive_entity",
"controller",

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B