My teleportation arrow has a broken angle

shooting the arrow in +z and -z directions works, but in +x and -x, the direction will flip. when tp-ing the player to the arrow, it inherits this odd behavior.

we can work around this by setting up command blocks like so: enter image description here

the repeating command block on the left will tp the player to the arrow, without changing direction, like so:

/execute at <arrow> run tp <player> ~ ~ ~

then, a comparator leads out to a normal command block, that makes the player face the arrow:

/execute at @p run tp <player> ~ ~ ~ facing entity <arrow> eyes

for this one, the arrow will need to include the "limit=1" tag to work.

this is a smoother way to have the arrow perspective, and fixes the odd camera stuff.