diff --git a/bows.lua b/bows.lua index 36c38d1..c690bd7 100644 --- a/bows.lua +++ b/bows.lua @@ -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