Change recipe to prevent conflicts and add book group in nodedef

This commit is contained in:
kilbith 2016-02-29 17:21:06 +01:00
parent 3ffc1d9bdc
commit c129894942

@ -144,6 +144,7 @@ minetest.register_craftitem(":xdecor:crafting_guide", {
inventory_image = "crafting_guide.png", inventory_image = "crafting_guide.png",
wield_image = "crafting_guide.png", wield_image = "crafting_guide.png",
stack_max = 1, stack_max = 1,
groups = {book=1},
on_use = function(itemstack, user) on_use = function(itemstack, user)
local player_name = user:get_player_name() local player_name = user:get_player_name()
datas[player_name] = {} datas[player_name] = {}
@ -156,6 +157,6 @@ minetest.register_craftitem(":xdecor:crafting_guide", {
minetest.register_craft({ minetest.register_craft({
output = "xdecor:crafting_guide", output = "xdecor:crafting_guide",
type = "shapeless", type = "shapeless",
recipe = {"default:book", "dye:blue"} recipe = {"default:book"}
}) })