From ef15d03fcac15cb7458a39516e14dfa86d30db09 Mon Sep 17 00:00:00 2001 From: An0n3m0us Date: Wed, 29 May 2019 23:03:10 +0100 Subject: [PATCH] Add door and trapdoor models to api --- game_api.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game_api.txt b/game_api.txt index 841c6e20..a58e5cfc 100644 --- a/game_api.txt +++ b/game_api.txt @@ -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",