add recipe to 'repair' throwned torches to default torches

master
xisd 2019-05-22 14:00:39 +02:00
parent d665cc9046
commit bacd1fd94c
1 changed files with 9 additions and 1 deletions

View File

@ -68,9 +68,10 @@ local torch = "default:torch"
throwing.register_arrow(arrow_torch, {
description = "Torch arrow (throwned)",
description = "Broken Throwned Torch",
tiles = {'default_torch_on_floor.png'},
on_hit_sound = "throwing_arrow",
drop = "default:torch",
on_hit = function(self, pos, last_pos, node, object, hitter, data)
if last_pos and node then
last_pos = vector.round(last_pos)
@ -134,6 +135,13 @@ if minetest.registered_nodes[arrow_torch] then
}
})
end
minetest.register_craft({
output = "default:torch",
type = "shapeless",
recipe = { arrow_torch },
})
if minetest.registered_entities[arrow_torch] then
minetest.registered_entities[arrow_torch].visual_size = {x = 0.9, y = 0.9}
end