Add wood frame door
This commit is contained in:
parent
4d5ac605b0
commit
446f7d9158
34
mods/lzr_doors/init.lua
Normal file
34
mods/lzr_doors/init.lua
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
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",
|
||||||
|
})
|
||||||
|
|
3
mods/lzr_doors/mod.conf
Normal file
3
mods/lzr_doors/mod.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name = lzr_doors
|
||||||
|
description = Very basic doors
|
||||||
|
depends = lzr_panes
|
BIN
mods/lzr_doors/textures/lzr_doors_door_wood_frame_bottom.png
Normal file
BIN
mods/lzr_doors/textures/lzr_doors_door_wood_frame_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 594 B |
BIN
mods/lzr_doors/textures/lzr_doors_door_wood_frame_sides.png
Normal file
BIN
mods/lzr_doors/textures/lzr_doors_door_wood_frame_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 453 B |
BIN
mods/lzr_doors/textures/lzr_doors_door_wood_frame_top.png
Normal file
BIN
mods/lzr_doors/textures/lzr_doors_door_wood_frame_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 589 B |
Loading…
x
Reference in New Issue
Block a user