
#Revolver
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:0b}}}}}] at @s run playsound guns:revolver_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:0b}}}}}}] at @s run playsound guns:revolver_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Tommy Gun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:6b}}}}}] at @s run playsound guns:tommy_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:6b}}}}}}] at @s run playsound guns:tommy_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Pump Shotgun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:7b}}}}}] at @s run playsound guns:pump_reload master @a[distance=..3] ~ ~ ~ 10 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:7b}}}}}}] at @s run playsound guns:pump_reload master @a[distance=..3] ~ ~ ~ 10 1 0.1

#P90
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:8b}}}}}] at @s run playsound guns:p90_shoot master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:8b}}}}}}] at @s run playsound guns:p90_shoot master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Flare Gun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:9b}}}}}] at @s run playsound guns:flare_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:9b}}}}}}] at @s run playsound guns:flare_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#M1 Garand
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:10b}}}}}] at @s run playsound guns:m1_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:10b}}}}}}] at @s run playsound guns:m1_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#AWP
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:11b}}}}}] at @s run playsound guns:awp_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:11b}}}}}}] at @s run playsound guns:awp_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Supersizer
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:12b}}}}}] at @s run playsound guns:ray_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:12b}}}}}}] at @s run playsound guns:ray_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Shrink Ray
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:13b}}}}}] at @s run playsound guns:ray_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:13b}}}}}}] at @s run playsound guns:ray_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Dualies
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:15b}}}}}] at @s run playsound guns:dualies_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:15b}}}}}}] at @s run playsound guns:dualies_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#AR-15
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:16b}}}}}] at @s run playsound guns:ar_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:16b}}}}}}] at @s run playsound guns:ar_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#44 Magnum
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:17b}}}}}] at @s run playsound guns:six_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:17b}}}}}}] at @s run playsound guns:six_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Glock
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:18b}}}}}] at @s run playsound guns:pistol_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:18b}}}}}}] at @s run playsound guns:pistol_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Rocket Launcher
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:19b}}}}}] at @s run playsound guns:rocket_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:19b}}}}}}] at @s run playsound guns:rocket_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Tactical AR (m4a4)
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:20b}}}}}] at @s run playsound guns:tacar_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:20b}}}}}}] at @s run playsound guns:tacar_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Hunting Rifle
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:21b}}}}}] at @s run playsound guns:hunting_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:21b}}}}}}] at @s run playsound guns:hunting_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#SSG 08
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:22b}}}}}] at @s run playsound guns:awp_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:22b}}}}}}] at @s run playsound guns:awp_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#SSG 08 Suppressed
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:38b}}}}}] at @s run playsound guns:awp_reload master @a[distance=..3] ~ ~ ~ 1 2 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:38b}}}}}}] at @s run playsound guns:awp_reload master @a[distance=..3] ~ ~ ~ 1 2 0.1

#AK-47
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:23b}}}}}] at @s run playsound guns:ak_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:23b}}}}}}] at @s run playsound guns:ak_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#LMG
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:24b}}}}}] at @s run playsound guns:lmg_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:24b}}}}}}] at @s run playsound guns:lmg_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Deagle
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:26b}}}}}] at @s run playsound guns:deagle_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:26b}}}}}}] at @s run playsound guns:deagle_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Dragon Sniper
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:43b}}}}}] at @s run playsound guns:awp_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:43b}}}}}}] at @s run playsound guns:awp_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Grenade Launcher
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:44b}}}}}] at @s run playsound guns:grenade_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:44b}}}}}}] at @s run playsound guns:grenade_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Rapid Fire Flare Gun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:45b}}}}}] at @s run playsound guns:flare_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:45b}}}}}}] at @s run playsound guns:flare_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Automatic Sniper
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:46b}}}}}] at @s run playsound guns:autosniper_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:46b}}}}}}] at @s run playsound guns:autosniper_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Longarm Tac
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:47b}}}}}] at @s run playsound guns:tacshotgun_reload master @a[distance=..3] ~ ~ ~ 2 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:47b}}}}}}] at @s run playsound guns:tacshotgun_reload master @a[distance=..3] ~ ~ ~ 2 1 0.1

#Dragon Drum Shotgun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:48b}}}}}] at @s run playsound guns:drumshot_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:48b}}}}}}] at @s run playsound guns:drumshot_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Quad Launcher
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:49b}}}}}] at @s run playsound guns:quad_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:49b}}}}}}] at @s run playsound guns:quad_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Tactical Shotgun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:50b}}}}}] at @s run playsound guns:tacshotgun_reload master @a[distance=..3] ~ ~ ~ 2 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:50b}}}}}}] at @s run playsound guns:tacshotgun_reload master @a[distance=..3] ~ ~ ~ 2 1 0.1

#Scoped Revolver
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:51b}}}}}] at @s run playsound guns:revolver_reload master @a[distance=..3] ~ ~ ~ 2 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:51b}}}}}}] at @s run playsound guns:revolver_reload master @a[distance=..3] ~ ~ ~ 2 1 0.1

#Steyer AUG
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:53b}}}}}] at @s run playsound guns:aug_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:53b}}}}}}] at @s run playsound guns:aug_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#BFG 9000
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:54b}}}}}] at @s run playsound guns:bfg_reload master @a[distance=..3] ~ ~ ~ 10 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:54b}}}}}}] at @s run playsound guns:bfg_reload master @a[distance=..3] ~ ~ ~ 10 1 0.1


#Ranger Shotgun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:55b}}}}}] at @s run playsound guns:rangershotgun_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:55b}}}}}}] at @s run playsound guns:rangershotgun_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Boom Sniper
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:56b}}}}}] at @s run playsound guns:boomsniper_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:56b}}}}}}] at @s run playsound guns:boomsniper_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Sawed Off Shotgun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:57b}}}}}] at @s run playsound guns:breakaction_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:57b}}}}}}] at @s run playsound guns:breakaction_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Combat Shotgun
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:58b}}}}}] at @s run playsound guns:combat_reload master @a[distance=..3] ~ ~ ~ 5 1 1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:58b}}}}}}] at @s run playsound guns:combat_reload master @a[distance=..3] ~ ~ ~ 5 1 1

#Judge Revolver
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:59b}}}}}] at @s run playsound guns:judge_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:59b}}}}}}] at @s run playsound guns:judge_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Machine Pistol
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:60b}}}}}] at @s run playsound guns:machinepistol_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:60b}}}}}}] at @s run playsound guns:machinepistol_reload master @a[distance=..3] ~ ~ ~ 1 1 0.1

#RampUpRifle
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:61b}}}}}] at @s run playsound guns:rampup_cooldown master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:61b}}}}}}] at @s run playsound guns:rampup_cooldown master @a[distance=..3] ~ ~ ~ 1 1 0.1

#Blaster Pistol
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{gz_data:{id:63b}}}}}] at @s run playsound guns:blasterpistol_cooldown master @a[distance=..3] ~ ~ ~ 1 1 0.1
execute if entity @s[nbt={equipment:{offhand:{components:{"minecraft:custom_data":{gz_data:{id:63b}}}}}}] at @s run playsound guns:blasterpistol_cooldown master @a[distance=..3] ~ ~ ~ 1 1 0.1
