Add trapdoor/door model specification (#2371)
This commit is contained in:
parent
a5547a3a76
commit
172b62f802
2 changed files with 21 additions and 8 deletions
|
@ -218,6 +218,8 @@ The doors mod allows modders to register custom doors and trapdoors.
|
|||
description = "Door description",
|
||||
inventory_image = "mod_door_inv.png",
|
||||
groups = {choppy = 2},
|
||||
model = "mod_door", -- (optional)
|
||||
-- Model name without a suffix ("big_door" not "big_door_a.obj", "big_door_b.obj")
|
||||
tiles = {"mod_door.png"}, -- UV map.
|
||||
-- The front and back of the door must be identical in appearence as they swap on
|
||||
-- open/close.
|
||||
|
@ -236,6 +238,9 @@ The doors mod allows modders to register custom doors and trapdoors.
|
|||
|
||||
description = "Trapdoor description",
|
||||
inventory_image = "mod_trapdoor_inv.png",
|
||||
nodebox_closed = {} -- Nodebox for closed model
|
||||
nodebox_opened = {} -- Nodebox for opened model
|
||||
-- (optional) both nodeboxes must be used, not one only
|
||||
groups = {choppy = 2},
|
||||
tile_front = "doors_trapdoor.png", -- the texture for the front and back of the trapdoor
|
||||
tile_side = "doors_trapdoor_side.png",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue