From d8d2f9c7a4559583c28f8cf888ecc9eb415f2d7e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 29 Nov 2016 23:22:26 +0100 Subject: Add optional encyclopedia recipe --- depends.txt | 1 + init.lua | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/depends.txt b/depends.txt index 0256ff1..fc3de77 100644 --- a/depends.txt +++ b/depends.txt @@ -17,4 +17,5 @@ wool xpanes doc_items doc_identifier? +doc_encyclopedia? intllib? diff --git a/init.lua b/init.lua index 29a01bd..43893a5 100644 --- a/init.lua +++ b/init.lua @@ -262,8 +262,23 @@ if minetest.get_modpath("doc_identifier") ~= nil then doc.sub.identifier.register_object("boats:boat", "craftitems", "boats:boat") end +-- Add another craft for encyclopedia +if minetest.get_modpath("doc_encyclopedia") ~= nil then + minetest.register_craft({ + output = "doc_encyclopedia:encyclopedia", + recipe = { + { "default:book" }, + { "default:book" }, + { "default:book" }, + } + }) +end + + + -- Remove the “helper” comment from screwdriver description since the help is -- provided by this mod minetest.override_item("screwdriver:screwdriver", {description = item_name_overrides["screwdriver:screwdriver"]}) + -- TODO: Maybe add achievement for discovering all Minetest Game node entries -- cgit v1.2.3