execute as @s[scores={spas12CD=7},nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"spas12"}}}}] at @s run playsound minecraft:weapon_spas12_cock player @s ~ ~ ~
scoreboard players operation @s animation.calculator = .spas12shoot animation.calculator
scoreboard players operation @s animation.calculator -= @s spas12CD
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"spas12"}}}},scores={spas12CD=2..}] run item modify entity @s weapon.mainhand ray_demo:animate