From 453a59d19e8c16c3d2fe22e56a3031727c9ea0e3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 21 Mar 2017 04:03:33 +0100 Subject: [PATCH] Add identifier support for armor stand --- mods/ITEMS/minetest-3d_armor/3d_armor_stand/depends.txt | 1 + mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/mods/ITEMS/minetest-3d_armor/3d_armor_stand/depends.txt b/mods/ITEMS/minetest-3d_armor/3d_armor_stand/depends.txt index 88d41c1adf..f850654c28 100644 --- a/mods/ITEMS/minetest-3d_armor/3d_armor_stand/depends.txt +++ b/mods/ITEMS/minetest-3d_armor/3d_armor_stand/depends.txt @@ -2,3 +2,4 @@ mcl_core mcl_sounds stairs +doc_identifier? diff --git a/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua b/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua index 79090f2685..75cf5e0757 100644 --- a/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua +++ b/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua @@ -216,6 +216,10 @@ minetest.register_entity("3d_armor_stand:armor_entity", { end, }) +if minetest.get_modpath("doc_identifier") ~= nil then + doc.sub.identifier.register_object("3d_armor_stand:armor_entity", "nodes", "3d_armor_stand:armor_stand") +end + minetest.register_craft({ output = "3d_armor_stand:armor_stand", recipe = {