execute store result score power burst run data get entity @s SelectedItem.components."minecraft:enchantments"."minecraft:power"

execute unless entity @e[tag=critlaser] unless data entity @s SelectedItem.components."minecraft:enchantments"."minecraft:power" as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 6 arrow by @n[tag=ignorelaser]
execute unless entity @e[tag=critlaser] if score power burst matches 1 as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 8 arrow by @n[tag=ignorelaser]
execute unless entity @e[tag=critlaser] if score power burst matches 2 as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 9 arrow by @n[tag=ignorelaser]
execute unless entity @e[tag=critlaser] if score power burst matches 3 as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 10 arrow by @n[tag=ignorelaser]
execute unless entity @e[tag=critlaser] if score power burst matches 4 as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 11 arrow by @n[tag=ignorelaser]
execute unless entity @e[tag=critlaser] if score power burst matches 5.. as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 12 arrow by @n[tag=ignorelaser]

execute if entity @e[tag=critlaser] unless data entity @s SelectedItem.components."minecraft:enchantments"."minecraft:power" as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 10 arrow by @n[tag=ignorelaser]
execute if entity @e[tag=critlaser] if score power burst matches 1 as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 13 arrow by @n[tag=ignorelaser]
execute if entity @e[tag=critlaser] if score power burst matches 2 as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 15 arrow by @n[tag=ignorelaser]
execute if entity @e[tag=critlaser] if score power burst matches 3 as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 18 arrow by @n[tag=ignorelaser]
execute if entity @e[tag=critlaser] if score power burst matches 4 as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 21 arrow by @n[tag=ignorelaser]
execute if entity @e[tag=critlaser] if score power burst matches 5.. as @e[dx=0,tag=!ignorelaser,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] if score power burst matches 1 run damage @s 25 arrow by @n[tag=ignorelaser]

scoreboard players reset power