summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-22 14:20:53 +0100
committerWuzzy <almikes@aol.com>2016-12-22 14:20:53 +0100
commit01084f7f2425f9862adb4e9bf2f981b16bc65b19 (patch)
treeef9f63db029e8b18bb77ca8b2dd91402a783dd98
parentb2d71eebb9f297aa9340071956c14650301f8677 (diff)
Add Minetest Game recipe
-rw-r--r--README.md11
-rw-r--r--depends.txt1
-rw-r--r--init.lua12
3 files changed, 23 insertions, 1 deletions
diff --git a/README.md b/README.md
index beda292..61cf0e7 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,16 @@ The encyclopedia is crafted with this shaped recipe:
S S
SS
-* S = Any item in group “stick”
+* `S`: Any item in group “stick”
+
+If you use Minetest Game (mod `default`), there's another recipe
+possible:
+
+ B
+ B
+ B
+
+* `B`: Book
## Itemstring
The itemstring of this item is `doc_encyclopedia:encyclopedia`.
diff --git a/depends.txt b/depends.txt
index 31aa390..c8f3ef6 100644
--- a/depends.txt
+++ b/depends.txt
@@ -1,2 +1,3 @@
doc
intllib?
+default?
diff --git a/init.lua b/init.lua
index 7ac77e2..53e4562 100644
--- a/init.lua
+++ b/init.lua
@@ -28,6 +28,18 @@ minetest.register_craft({
}
})
+-- Bonus recipe for Minetest Game
+if minetest.get_modpath("default") then
+ minetest.register_craft({
+ output = "doc_encyclopedia:encyclopedia",
+ recipe = {
+ { "default:book" },
+ { "default:book" },
+ { "default:book" },
+ }
+ })
+end
+
minetest.register_craft({
type = "fuel",
recipe = "doc_encyclopedia:encyclopedia",