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, })