1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-18 07:40:22 +01:00

Add door and trapdoor models to api

This commit is contained in:
An0n3m0us 2019-05-29 23:03:10 +01:00
parent da937a2289
commit ef15d03fca

View File

@ -213,6 +213,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 = "NAME", -- (optional)
-- Model name without prefix ("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.
@ -228,6 +230,9 @@ The doors mod allows modders to register custom doors and trapdoors.
description = "Trapdoor description",
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},
tile_front = "doors_trapdoor.png", -- the texture for the front and back of the trapdoor
tile_side = "doors_trapdoor_side.png",