1
0
mirror of https://gitlab.com/echoes91/throwing.git synced 2024-11-14 14:00:21 +01:00

Added Royal bow

This commit is contained in:
echoes91 2015-03-24 12:48:05 +01:00
parent 96e2d0f799
commit e6ba4d35af

View File

@ -265,45 +265,3 @@ if not DISABLE_ROYAL_BOW then
}
})
end
if not DISABLE_CROSSBOW then
minetest.register_tool("throwing:crossbow", {
description = "Crossbow",
inventory_image = "throwing_crossbow.png",
wield_scale = {x=1, y=1, z=1},
stack_max = 1,
on_use = function(itemstack, user, pointed_thing)
minetest.sound_play("throwing_crossbow_sound", {pos=playerpos})
stiffness = 27
reload = 8
if throwing_shoot_arrow(itemstack, user, pointed_thing) then
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535/100)
end
end
return itemstack
end,
on_place = function(itemstack, placer, pointed_thing)
reloading(placer)
return itemstack
end,
})
minetest.register_craft({
output = 'throwing:crossbow',
recipe = {
{'group:wood', 'farming:string', ''},
{'default:steel_ingot', 'farming:string', 'group:wood'},
{'group:wood', 'farming:string', ''},
}
})
minetest.register_craft({
output = 'throwing:crossbow',
recipe = {
{'', 'farming:string', 'group:wood'},
{'group:wood', 'farming:string', 'default:steel_ingot'},
{'', 'farming:string', 'group:wood'},
}
})
end