scoreboard players operation @s animation.calculator = .duskshotgunshoot animation.calculator
scoreboard players operation @s animation.calculator -= @s duskCD
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"duskshotgun"}}}},scores={duskCD=1..}] run item modify entity @s weapon.mainhand ray_demo:animate