function svm_ep:system/get_motion
scoreboard players operation @s motion.x *= %-1 svm_ep.numbers
scoreboard players operation @s motion.y *= %-1 svm_ep.numbers
scoreboard players operation @s motion.z *= %-1 svm_ep.numbers
execute store result entity @s Motion[0] double 1 run scoreboard players get @s motion.x
execute store result entity @s Motion[1] double 1 run scoreboard players get @s motion.x
execute store result entity @s Motion[2] double 1 run scoreboard players get @s motion.x
tag @s add svm_ep.arrow_redirected

execute at @s run particle minecraft:crit ~ ~ ~ 0 0 0 1 20
execute at @s run playsound minecraft:entity.armor_stand.break master @a ~ ~ ~ 2 2
execute at @s run particle minecraft:sweep_attack ~ ~ ~ 0.05 0.05 0.05 0 1

execute positioned ^ ^ ^-1 run summon minecraft:marker ~ ~ ~ {Tags:[rotate_to]}
execute at @s run tp @s ~ ~ ~ facing entity @e[distance=..3,limit=1,tag=rotate_to]
kill @e[tag=rotate_to,distance=..3]