summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkilbith <kilbith@users.noreply.github.com>2016-02-29 17:21:06 +0100
committerkilbith <kilbith@users.noreply.github.com>2016-02-29 17:21:06 +0100
commitc129894942a2695f299ff0bc4c311ad1bcc7759f (patch)
tree39bd1639af9a41782db39e8efcdd44fcfdc3936c
parent3ffc1d9bdcdf5d247d4814ad6ba675d0943b4717 (diff)
Change recipe to prevent conflicts and add book group in nodedef
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index f443d8c..ab2727c 100644
--- a/init.lua
+++ b/init.lua
@@ -144,6 +144,7 @@ minetest.register_craftitem(":xdecor:crafting_guide", {
inventory_image = "crafting_guide.png",
wield_image = "crafting_guide.png",
stack_max = 1,
+ groups = {book=1},
on_use = function(itemstack, user)
local player_name = user:get_player_name()
datas[player_name] = {}
@@ -156,6 +157,6 @@ minetest.register_craftitem(":xdecor:crafting_guide", {
minetest.register_craft({
output = "xdecor:crafting_guide",
type = "shapeless",
- recipe = {"default:book", "dye:blue"}
+ recipe = {"default:book"}
})