execute if entity @s[tag=!critlaser] run particle dust{color:[1,0,0],scale:.5} ^ ^ ^-.25 0 0 0 0 1 force
execute if entity @s[tag=!critlaser] run particle dust{color:[1,0,0],scale:.5} ~ ~ ~ 0 0 0 0 1 force
execute if entity @s[tag=!critlaser] run particle dust{color:[1,0,0],scale:.5} ^ ^ ^.25 0 0 0 0 1 force

execute if entity @s[tag=critlaser] run particle crit ^ ^ ^-.25 0 0 0 0 1 force
execute if entity @s[tag=critlaser] run particle crit ~ ~ ~ 0 0 0 0 1 force
execute if entity @s[tag=critlaser] run particle crit ^ ^ ^.25 0 0 0 0 1 force
execute unless block ~ ~ ~ #survivalplus:nobounce run particle firework ~ ~ ~ 0 0 0 .1 10 force
execute unless block ~ ~ ~ #survivalplus:nobounce run playsound minecraft:entity.arrow.hit neutral @a ~ ~ ~ .6 1.5

#execute positioned ~-0.99 ~-0.99 ~-0.99 if entity @e[nbt={HurtTime:0s},dx=0,tag=!ignorelaser] run tag @s add hittarget
#execute if entity @s[tag=lightlaser] as @a[dx=0,tag=!ignorelaser] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run effect give @s glowing 10
execute if entity @e[dx=0,tag=!ignorelaser] positioned ~-0.99 ~-0.99 ~-0.99 if entity @e[dx=0,tag=!ignorelaser] run tag @s add hittarget
execute if entity @e[dx=0,tag=!ignorelaser] positioned ~-0.99 ~-0.99 ~-0.99 if entity @e[dx=0,tag=!ignorelaser] run particle firework ~.99 ~.99 ~.99 0 0 0 .1 10 force
execute if entity @e[dx=0,tag=!ignorelaser] positioned ~-0.99 ~-0.99 ~-0.99 if entity @e[dx=0,tag=!ignorelaser] run playsound minecraft:entity.arrow.hit neutral @a ~.99 ~.99 ~.99 .6 1.5

execute if entity @e[dx=0,tag=!ignorelaser] positioned ~-0.99 ~-0.99 ~-0.99 if entity @e[dx=0] run function survivalplus:tools/archer/arrow/laser_powerscale
#execute as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run function survivalplus:tools/archer/arrow/laser_powerscale

execute if entity @s[distance=..80,tag=!hittarget] if block ^ ^ ^.5 #survivalplus:nobounce positioned ^ ^ ^.5 run function survivalplus:tools/archer/arrow/laser
execute unless entity @s[distance=..80] run particle firework ~ ~ ~ 0 0 0 .1 10 force
execute unless block ^ ^ ^.5 #survivalplus:nobounce run particle firework ~ ~ ~ 0 0 0 .1 10 force
tag @s remove hittarget
tag @s remove critlaser
tag @s remove ignorelaser
#tag @s remove lightlaser