So I've seen a post asking for a Shotgun spread with a bow, but I can't seem to make it work properly.
It works just fine when shooting straight (north, west, east or south), but when i try to shoot diagonally (northwest, southeast, etc.) all of the arrow just go in weird locations, like this
[doublepost=1608995850,1608995817][/doublepost]the image: https://imgur.com/a/pPcLNOi
[doublepost=1608995915][/doublepost]how it works when shooting straight: https://imgur.com/a/zbC3p2z
Code:
on shoot:
shooter is a player
set {_arrowSpeed} to {arrowSpeed::%shooter%} * 2
set {_entity} to "%shooter%" parsed as entity type
{trishot.dontshoot::%shooter%} is not true
"%shooter%" = "tentotu"
set {trishot.dontshoot::%shooter%} to true
make shooter shoot arrow at velocity {_arrowSpeed}
push last shot projectile left at speed 0.3
make shooter shoot arrow at velocity {_arrowSpeed}
push last shot projectile right at speed 0.3
wait 1 tick
clear {trishot.dontshoot::%shooter%}
[doublepost=1608995850,1608995817][/doublepost]the image: https://imgur.com/a/pPcLNOi
[doublepost=1608995915][/doublepost]how it works when shooting straight: https://imgur.com/a/zbC3p2z