particle minecraft:dust{color:[0.67,0.0,0.0],scale:1} ~ ~ ~ 0.2 0.2 0.2 0 15 force
execute if entity @s[tag=rayglock] run return run damage @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0}] 2.5 minecraft:arrow by @a[scores={invulnerable=1..},limit=1,nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"glock"}}}}]
execute if entity @s[tag=rayspas12] run return run damage @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0}] 2 minecraft:arrow by @a[scores={invulnerable=1..},limit=1,nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"spas12"}}}}]
execute if entity @s[tag=raydusk] run return run damage @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0}] 3 minecraft:arrow by @a[scores={invulnerable=1..},limit=1,nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"duskshotgun"}}}}]
execute if entity @s[tag=raymp5] run return run damage @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0}] 2 minecraft:arrow by @a[scores={invulnerable=1..},limit=1,nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"mp5"}}}}]
execute if entity @s[tag=raysniper] as @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0},distance=..1.4] run return run damage @s 8.5 minecraft:arrow by @a[scores={invulnerable=1..},limit=1,nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"scoutrifle"}}}}]
execute if entity @s[tag=raysniper] if entity @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0},distance=1.41..2] run particle minecraft:block{block_state:"minecraft:redstone_block"} ~ ~ ~ 0.1 0.1 0.1 2 40 force
execute if entity @s[tag=raysniper] as @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0},distance=1.41..] run return run damage @s 17 minecraft:arrow by @a[scores={invulnerable=1..},limit=1,nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"scoutrifle"}}}}]
execute if entity @s[tag=rayplasmarifle] run return run damage @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0}] 0.75 minecraft:arrow by @a[scores={invulnerable=1..},limit=1,nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"plasmarifle"}}}}]
execute if entity @s[tag=raybison] run return run damage @e[tag=hitable,sort=nearest,limit=1,scores={invulnerable=0}] 5 minecraft:arrow