Add torch crafting recipe

Added a crafting recipe to be able to craft torches using charcoal instead of coal lumps.
master^2
braydofficial 2022-08-06 18:40:44 +02:00
parent 92e8f4b4cf
commit f377373cf5
No known key found for this signature in database
GPG Key ID: 5FF25C7F086FE217
2 changed files with 12 additions and 1 deletions

8
crafting/craft_torch.lua Normal file
View File

@ -0,0 +1,8 @@
minetest.register_craft({
type = "shaped",
output = "default:torch 4",
recipe = {
{"minetest_additions:charcoal"},
{"default:stick"}
}
})

View File

@ -3,7 +3,10 @@ print("[Minetest Additions] Source Code: https://code.canreal.net/braydofficial/
print("[Minetest Additions] Loading mod...")
local modpath = minetest.get_modpath(minetest.get_current_modname());
dofile(modpath.."/crafting/tree_to_charcoal.lua"); --Crafting recipes to be able to burn tree-blocks to coal
--Load crafting recipes
dofile(modpath.."/crafting/craft_tree_to_charcoal.lua");
dofile(modpath.."/crafting/craft_torch.lua");
--Load items
dofile(modpath.."/items/charcoal.lua");
print("[Minetest Additions] Finished loading!")