forked from mtcontrib/throwing
Added Royal bow
This commit is contained in:
parent
96e2d0f799
commit
e6ba4d35af
42
bows.lua
42
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
|
||||
|
Loading…
Reference in New Issue
Block a user