function main:mechanics/interaction/weapon/clear

execute as @s[scores={player_id=1}] run function main:mechanics/interaction/weapon/2 with storage player_data 1
# execute as @s[scores={player_id=2}] run function main:mechanics/interaction/weapon/2 with storage player_data 1
# execute as @s[scores={player_id=3}] run function main:mechanics/interaction/weapon/2 with storage player_data 3
# execute as @s[scores={player_id=4}] run function main:mechanics/interaction/weapon/2 with storage player_data 4

scoreboard players set @s charged_attack_speed 0