Add wood frame door

This commit is contained in:
Wuzzy 2024-12-15 03:00:08 +01:00
parent 4d5ac605b0
commit 446f7d9158
5 changed files with 37 additions and 0 deletions

34
mods/lzr_doors/init.lua Normal file
View 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
View File

@ -0,0 +1,3 @@
name = lzr_doors
description = Very basic doors
depends = lzr_panes

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B