From d9bf394b22edf4cf0cd24524a54bec7457c0b5ee Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 7 Jan 2017 23:56:52 +0100 Subject: [PATCH] Fix torch crafting --- mods/default/crafting.lua | 8 +++++++- mods/default/craftitems.lua | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index eb68135f71..363d66bf37 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -32,7 +32,13 @@ minetest.register_craft({ } }) - +minetest.register_craft({ + output = "default:torch 4", + recipe = { + { "group:coal" }, + { "default:stick" }, + } +}) minetest.register_craft({ output = 'default:mossycobble', diff --git a/mods/default/craftitems.lua b/mods/default/craftitems.lua index 6d63f8a19b..6b82b35698 100644 --- a/mods/default/craftitems.lua +++ b/mods/default/craftitems.lua @@ -24,12 +24,14 @@ minetest.register_craftitem("default:book", { minetest.register_craftitem("default:coal_lump", { description = "Coal", + groups = { coal=1 }, inventory_image = "default_coal_lump.png", stack_max = 64, }) minetest.register_craftitem("default:charcoal_lump", { description = "Charcoal", + groups = { coal=1 }, inventory_image = "default_charcoal_lump.png", stack_max = 64, })