summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-11-29 23:22:26 +0100
committerWuzzy <almikes@aol.com>2016-11-29 23:22:26 +0100
commitd8d2f9c7a4559583c28f8cf888ecc9eb415f2d7e (patch)
treecb40038a8883289de0c470cb4faaab703f02c1c6
parent32b0f7d0a19a3a93f6c3db0dd6bbb472cee25e3a (diff)
Add optional encyclopedia recipe
-rw-r--r--depends.txt1
-rw-r--r--init.lua15
2 files changed, 16 insertions, 0 deletions
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