on leftclick holding bow:
set {_x} to x-coordinate of player
set {_y} to y-coordinate of player + 1.6
set {_z} to z-coordinate of player
set {_world} to world of player
set {_yaw} to player's yaw
set {_pitch} to player's pitch
shoot arrow from player and location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch}) at speed 2.8
set {arrow::%last shot entity's uuid%} to 300
on damage:
attacker is player
victim is not player
projectile is set
set damage to {arrow::%projectile's uuid%}
on leftclick holding bow:
set {_x} to x-coordinate of player
set {_y} to y-coordinate of player + 1.6
set {_z} to z-coordinate of player
set {_world} to world of player
set {_yaw} to player's yaw
set {_pitch} to player's pitch
shoot arrow from player and location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch}) at speed 2.8
set {arrow::%last shot entity's uuid%} to 300
on damage:
attacker is player
victim is not player
projectile is set
set damage to {arrow::%projectile's uuid%}