Add Minetest Game recipe
This commit is contained in:
parent
b2d71eebb9
commit
01084f7f24
11
README.md
11
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`.
|
||||
|
@ -1,2 +1,3 @@
|
||||
doc
|
||||
intllib?
|
||||
default?
|
||||
|
12
init.lua
12
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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user