summon minecraft:area_effect_cloud ~ ~ ~ {Radius:0.0f,Duration:2147483647,Particle:"take",Tags:["arrow_new"]}
summon arrow ~ ~1.5 ~ {Tags:["arrow","arrowN"],pickup:0b,Color:-1,damage:1.0d,life:1200s}
tag @s add temp
execute as @e[tag=arrow_new] at @s run tp @e[tag=arrow_new] @p[tag=temp]
execute as @e[tag=arrow_new] at @s store result score @s x run data get entity @s Pos[0] 50
execute as @e[tag=arrow_new] at @s store result score @s y run data get entity @s Pos[1] 50
execute as @e[tag=arrow_new] at @s store result score @s z run data get entity @s Pos[2] 50
execute as @e[tag=arrow_new] at @s run tp @s ^ ^ ^1
execute as @e[tag=arrow_new] at @s store result score @s xx run data get entity @s Pos[0] 50
execute as @e[tag=arrow_new] at @s store result score @s yx run data get entity @s Pos[1] 50
execute as @e[tag=arrow_new] at @s store result score @s zx run data get entity @s Pos[2] 50
scoreboard players operation @e[tag=arrow_new] x -= @e[tag=arrow_new] xx
scoreboard players operation @e[tag=arrow_new] y -= @e[tag=arrow_new] yx
scoreboard players operation @e[tag=arrow_new] z -= @e[tag=arrow_new] zx
execute as @e[tag=arrow_new] at @s run tp @s ^ ^ ^-1
execute as @e[tag=arrow_new] at @s store result entity @e[type=arrow,sort=nearest,limit=1,tag=arrowN] Motion[0] double -0.1 run scoreboard players get @s x
execute as @e[tag=arrow_new] at @s store result entity @e[type=arrow,sort=nearest,limit=1,tag=arrowN] Motion[1] double -0.1 run scoreboard players get @s y
execute as @e[tag=arrow_new] at @s store result entity @e[type=arrow,sort=nearest,limit=1,tag=arrowN] Motion[2] double -0.1 run scoreboard players get @s z
tag @e remove arrowN
tag @s remove temp
kill @e[tag=arrow_new]
