mirror of
https://github.com/minetest/minetest_game.git
synced 2025-02-22 02:30:23 +01:00
Add door and trapdoor models to api
This commit is contained in:
parent
da937a2289
commit
ef15d03fca
@ -213,6 +213,8 @@ The doors mod allows modders to register custom doors and trapdoors.
|
|||||||
description = "Door description",
|
description = "Door description",
|
||||||
inventory_image = "mod_door_inv.png",
|
inventory_image = "mod_door_inv.png",
|
||||||
groups = {choppy = 2},
|
groups = {choppy = 2},
|
||||||
|
model = "NAME", -- (optional)
|
||||||
|
-- Model name without prefix ("big_door" not "big_door_a.obj", "big_door_b.obj")
|
||||||
tiles = {"mod_door.png"}, -- UV map.
|
tiles = {"mod_door.png"}, -- UV map.
|
||||||
-- The front and back of the door must be identical in appearence as they swap on
|
-- The front and back of the door must be identical in appearence as they swap on
|
||||||
-- open/close.
|
-- open/close.
|
||||||
@ -228,6 +230,9 @@ The doors mod allows modders to register custom doors and trapdoors.
|
|||||||
|
|
||||||
description = "Trapdoor description",
|
description = "Trapdoor description",
|
||||||
inventory_image = "mod_trapdoor_inv.png",
|
inventory_image = "mod_trapdoor_inv.png",
|
||||||
|
closed = {} -- Nodebox for closed model
|
||||||
|
opened = {} -- Nodebox for opened model
|
||||||
|
-- (see https://github.com/minetest/minetest_game/pull/2371 for furthur info)
|
||||||
groups = {choppy = 2},
|
groups = {choppy = 2},
|
||||||
tile_front = "doors_trapdoor.png", -- the texture for the front and back of the trapdoor
|
tile_front = "doors_trapdoor.png", -- the texture for the front and back of the trapdoor
|
||||||
tile_side = "doors_trapdoor_side.png",
|
tile_side = "doors_trapdoor_side.png",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user