From 14d7a65eb8aaf98ba0c61ac1e30087ddb814e4eb Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 18 Mar 2017 01:04:45 +0100 Subject: [PATCH] Adjust crafting of lookup tool --- mods/HELP/doc/doc_identifier/depends.txt | 2 +- mods/HELP/doc/doc_identifier/init.lua | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/mods/HELP/doc/doc_identifier/depends.txt b/mods/HELP/doc/doc_identifier/depends.txt index b5ad06b062..b4a65e0db8 100644 --- a/mods/HELP/doc/doc_identifier/depends.txt +++ b/mods/HELP/doc/doc_identifier/depends.txt @@ -1,5 +1,5 @@ doc doc_items doc_basics? -default? +mcl_core? intllib? diff --git a/mods/HELP/doc/doc_identifier/init.lua b/mods/HELP/doc/doc_identifier/init.lua index 5824d47a20..bb38f0e4d8 100644 --- a/mods/HELP/doc/doc_identifier/init.lua +++ b/mods/HELP/doc/doc_identifier/init.lua @@ -170,18 +170,19 @@ minetest.register_tool("doc_identifier:identifier_liquid", { on_secondary_use = doc_identifier.solid_mode, }) -minetest.register_craft({ - output = "doc_identifier:identifier_solid", - recipe = { {"group:stick", "group:stick" }, - {"", "group:stick"}, - {"group:stick", ""} } -}) - -if minetest.get_modpath("default") ~= nil then +-- TODO: These crafting recipes are temporary. Add a different way to obtain the lookup tool +if minetest.get_modpath("mcl_core") ~= nil then minetest.register_craft({ output = "doc_identifier:identifier_solid", - recipe = { { "default:glass" }, - { "group:stick" } } + recipe = { {"mcl_core:stick", "mcl_core:stick" }, + {"", "mcl_core:stick"}, + {"mcl_core:stick", ""} } + }) + + minetest.register_craft({ + output = "doc_identifier:identifier_solid", + recipe = { { "mcl_core:glass" }, + { "mcl_core:stick" } } }) end