execute if entity @e[tag=shotgunbullet,distance=0..1] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 45 arrow by @n[tag=ignoredmg]
execute if entity @e[tag=shotgunbullet,distance=1..2] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 40 arrow by @n[tag=ignoredmg]
execute if entity @e[tag=shotgunbullet,distance=2..3] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 35 arrow by @n[tag=ignoredmg]
execute if entity @e[tag=shotgunbullet,distance=3..4] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 30 arrow by @n[tag=ignoredmg]
execute if entity @e[tag=shotgunbullet,distance=4..5] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 25 arrow by @n[tag=ignoredmg]
execute if entity @e[tag=shotgunbullet,distance=5..6] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 20 arrow by @n[tag=ignoredmg]
execute if entity @e[tag=shotgunbullet,distance=6..7] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 15 arrow by @n[tag=ignoredmg]
execute if entity @e[tag=shotgunbullet,distance=7..8] 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 if entity @e[tag=shotgunbullet,distance=8..9] as @e[dx=0,tag=!ignoredmg,type=!#survivalplus:notalive] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run damage @s 5 arrow by @n[tag=ignoredmg]