1
0
Fork 0

Fix torch craft

This commit is contained in:
Wuzzy 2017-01-04 04:47:36 +01:00
parent e8e011b7cc
commit 5c90c404d2
3 changed files with 24 additions and 23 deletions

View File

@ -74,22 +74,6 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = 'torches:torch 4',
recipe = {
{'default:coal_lump'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'torches:torch 4',
recipe = {
{'default:charcoal_lump'},
{'default:stick'},
}
})
minetest.register_craft({ minetest.register_craft({
output = 'default:pick_wood', output = 'default:pick_wood',
recipe = { recipe = {
@ -736,12 +720,6 @@ minetest.register_craft({
burntime = 60, burntime = 60,
}) })
minetest.register_craft({
type = "fuel",
recipe = "torches:torch",
burntime = 4,
})
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "signs:sign_wall", recipe = "signs:sign_wall",
@ -809,4 +787,4 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
output = "default:string", output = "default:string",
recipe = {{"default:paper", "default:paper"}}, recipe = {{"default:paper", "default:paper"}},
}) })

21
mods/torches/crafting.lua Normal file
View File

@ -0,0 +1,21 @@
minetest.register_craft({
type = "fuel",
recipe = "torches:torch",
burntime = 4,
})
minetest.register_craft({
output = 'torches:torch 4',
recipe = {
{'default:coal_lump'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'torches:torch 4',
recipe = {
{'default:charcoal_lump'},
{'default:stick'},
}
})

View File

@ -223,3 +223,5 @@ minetest.register_on_dignode(function(pos, oldnode, digger)
end end
end end
end) end)
dofile(minetest.get_modpath("torches") .. "/crafting.lua")