particle crit ~ ~ ~ 0 0 0 0 1 force

execute if entity @e[type=spectral_arrow,tag=velocitybullet] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run effect give @s glowing 10
execute as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 10 arrow by @n[tag=ignoredmg]
#execute as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] as @e[tag=velocitybullet] run function survivalplus:tools/archer/arrow/exitvelocity

execute if entity @s[distance=..70] if block ^ ^ ^.5 #survivalplus:nobounce positioned ^ ^ ^.5 run function survivalplus:tools/archer/arrow/velocitybullet
execute unless entity @s[distance=..70] as @e[tag=velocitybullet] run function survivalplus:tools/archer/arrow/exitvelocity
execute unless block ^ ^ ^.5 #survivalplus:nobounce as @e[tag=velocitybullet] run function survivalplus:tools/archer/arrow/exitvelocity
tag @s remove ignoredmg