From daf4a6f5f2802b4a7ed98122997f423a2ca78195 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 21 Mar 2017 03:58:53 +0100 Subject: [PATCH] Make minecart entities identifiable --- mods/ITEMS/mcl_minecarts/depends.txt | 1 + mods/ITEMS/mcl_minecarts/init.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/mods/ITEMS/mcl_minecarts/depends.txt b/mods/ITEMS/mcl_minecarts/depends.txt index 33340b4bdb..5774b1e529 100644 --- a/mods/ITEMS/mcl_minecarts/depends.txt +++ b/mods/ITEMS/mcl_minecarts/depends.txt @@ -3,3 +3,4 @@ mcl_sounds mcl_player mcl_achievements mesecons? +doc_identifier? diff --git a/mods/ITEMS/mcl_minecarts/init.lua b/mods/ITEMS/mcl_minecarts/init.lua index 9ab3e28fd6..2f33e871c8 100644 --- a/mods/ITEMS/mcl_minecarts/init.lua +++ b/mods/ITEMS/mcl_minecarts/init.lua @@ -301,6 +301,10 @@ minetest.register_craftitem("mcl_minecarts:minecart", { groups = { minecart = 1, transport = 1}, }) +if minetest.get_modpath("doc_identifier") ~= nil then + doc.sub.identifier.register_object("mcl_minecarts:minecart", "craftitems", "mcl_minecarts:minecart") +end + minetest.register_craft({ output = "mcl_minecarts:minecart", recipe = {