35 lines
1.4 KiB
Lua
35 lines
1.4 KiB
Lua
local S = minetest.get_translator("lzr_doors")
|
|
|
|
-- Basic doors for Lazarr!
|
|
|
|
-- The doors in Lazarr! are much simpler than in other games. This
|
|
-- is neccessary to ensure laser compatibility.
|
|
|
|
-- A major limitation is that doors cannot be opened or closed.
|
|
|
|
-- A door is basically just 2 panes (using `lzr_panes`),
|
|
-- with a top segment and a bottom one. Panes are useful because
|
|
-- they are laser-compatible.
|
|
|
|
-- Door segments are completely standalone, it is the reponsibility
|
|
-- of the map author to construct correct doors.
|
|
|
|
|
|
lzr_panes.register_pane("lzr_doors:door_wood_frame_frame_top", {
|
|
description = S("Top Wood Frame Door Segment"),
|
|
textures = {"lzr_doors_door_wood_frame_top.png", "lzr_doors_door_wood_frame_sides.png", "lzr_doors_door_wood_frame_sides.png"},
|
|
inventory_image = "lzr_doors_door_wood_frame_top.png",
|
|
wield_image = "lzr_doors_door_wood_frame_top.png",
|
|
sounds = lzr_sounds.node_sound_wood_defaults(),
|
|
element_group = "laser_element_door_wood_frame_top",
|
|
})
|
|
lzr_panes.register_pane("lzr_doors:door_wood_frame_frame_bottom", {
|
|
description = S("Bottom Wooden Frame Door Segment"),
|
|
textures = {"lzr_doors_door_wood_frame_bottom.png", "lzr_doors_door_wood_frame_sides.png", "lzr_doors_door_wood_frame_sides.png"},
|
|
inventory_image = "lzr_doors_door_wood_frame_bottom.png",
|
|
wield_image = "lzr_doors_door_wood_frame_bottom.png",
|
|
sounds = lzr_sounds.node_sound_wood_defaults(),
|
|
element_group = "laser_element_door_wood_frame_bottom",
|
|
})
|
|
|