forked from VoxeLibre/VoxeLibre
Some Crossbow Fixes
This commit is contained in:
parent
0cb72cdbab
commit
0261978f2d
|
@ -64,6 +64,7 @@ mcl_bows.shoot_arrow = function(arrow_item, pos, dir, yaw, shooter, power, damag
|
|||
le._startpos = pos
|
||||
le._knockback = knockback
|
||||
le._collectable = collectable
|
||||
minetest.sound_play("mcl_bows_bow_shoot", {pos=pos, max_hear_distance=16}, true)
|
||||
if shooter ~= nil and shooter:is_player() then
|
||||
if obj:get_luaentity().player == "" then
|
||||
obj:get_luaentity().player = shooter
|
||||
|
@ -119,7 +120,6 @@ local player_shoot_arrow = function(itemstack, player, power, damage, is_critica
|
|||
local dir = player:get_look_dir()
|
||||
local yaw = player:get_look_horizontal()
|
||||
|
||||
minetest.sound_play("mcl_bows_bow_shoot", {pos=playerpos, max_hear_distance=16}, true)
|
||||
mcl_bows.shoot_arrow(arrow_itemstring, {x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, dir, yaw, player, power, damage, is_critical, player:get_wielded_item(), not infinity_used)
|
||||
return true
|
||||
end
|
||||
|
|
|
@ -410,7 +410,8 @@ if minetest.get_modpath("mcl_core") and minetest.get_modpath("mcl_mobitems") the
|
|||
output = 'mcl_bows:crossbow',
|
||||
recipe = {
|
||||
{'mcl_core:stick', 'mcl_core:iron_ingot', 'mcl_core:stick'},
|
||||
{'mcl_mobitems:string', 'mcl_mobitems:string', 'mcl_mobitems:string'},
|
||||
{'mcl_mobitems:string', 'mcl_core:iron_ingot', 'mcl_mobitems:string'},
|
||||
--TODO make this^^ trip wire (as of now no such thing exists)
|
||||
{'', 'mcl_core:stick', ''},
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue