Merge pull request 'Add torch crafting recipe' (#2) from develop into main

Reviewed-on: https://code.canreal.net/braydofficial/minetest-additions/pulls/2
master
Brayd 2022-08-06 18:43:24 +02:00
commit 086b374d9a
3 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!")