execute as @a[c=1,tag=!joyloy] run scoreboard objectives add halberd_tm dummy
execute as @a[c=1,tag=!joyloy] run scoreboard objectives add hlbrablt dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s hlbrablt 0
execute as @a[c=1,scores={halberd_cd=0..2}] run scoreboard players set @s halberd_tm 0

execute as @a[c=1,scores={halberd_cd=3..20}] run scoreboard players set @s halberd_tm 1

execute as @a[c=1,scores={halberd_cd=21..40}] run scoreboard players set @s halberd_tm 2

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add mc_tm dummy
execute as @a[c=1,scores={mace_cd=0..2}] run scoreboard players set @s mc_tm 0

execute as @a[c=1,scores={mace_cd=3..20}] run scoreboard players set @s mc_tm 1

execute as @a[c=1,scores={mace_cd=21..40}] run scoreboard players set @s mc_tm 2

execute as @a[c=1,scores={mace_cd=41..60}] run scoreboard players set @s mc_tm 3

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add lngswrd_tm dummy
execute as @a[c=1,scores={ls_cd=0..2}] run scoreboard players set @s lngswrd_tm 0

execute as @a[c=1,scores={ls_cd=3..20}] run scoreboard players set @s lngswrd_tm 1

execute as @a[c=1,scores={ls_cd=21..40}] run scoreboard players set @s lngswrd_tm 2

execute as @a[c=1,scores={ls_cd=41..60}] run scoreboard players set @s lngswrd_tm 3

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add glv_tm dummy
execute as @a[c=1,scores={glaive_cd=0..2}] run scoreboard players set @s glv_tm 0

execute as @a[c=1,scores={glaive_cd=3..21}] run scoreboard players set @s glv_tm 1

execute as @a[c=1,scores={glaive_cd=21..40}] run scoreboard players set @s glv_tm 2

scoreboard objectives add spr_tm dummy
execute as @a[c=1,scores={spear_cd=0..2}] run scoreboard players set @s spr_tm 0

execute as @a[c=1,scores={spear_cd=3..20}] run scoreboard players set @s spr_tm 1

execute as @a[c=1,scores={spear_cd=21..40}] run scoreboard players set @s spr_tm 2

execute as @a[c=1,scores={spear_cd=41..60}] run scoreboard players set @s spr_tm 3

scoreboard objectives add lnc_tm dummy
execute as @a[c=1,scores={lance_cd=0..2}] run scoreboard players set @s lnc_tm 0

execute as @a[c=1,scores={lance_cd=3..20}] run scoreboard players set @s lnc_tm 1

execute as @a[c=1,scores={lance_cd=21..40}] run scoreboard players set @s lnc_tm 2

execute as @a[c=1,scores={lance_cd=41..60}] run scoreboard players set @s lnc_tm 3

execute as @a[c=1,scores={lance_cd=61..80}] run scoreboard players set @s lnc_tm 4

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add ktr_tm dummy
execute as @a[c=1,scores={katar_cd=0..2}] run scoreboard players set @s ktr_tm 0

execute as @a[c=1,scores={katar_cd=3..20}] run scoreboard players set @s ktr_tm 1

execute as @a[c=1,scores={katar_cd=21..40}] run scoreboard players set @s ktr_tm 2

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add rpr_tm dummy
execute as @a[c=1,tag=!joyloy] run scoreboard objectives add rprspd dummy
execute as @a[c=1,scores={rapier_cd=0..2}] run scoreboard players set @s rpr_tm 0

execute as @a[c=1,scores={rapier_cd=3..20}] run scoreboard players set @s rpr_tm 1

execute as @a[c=1,scores={rapier_cd=21..40}] run scoreboard players set @s rpr_tm 2

execute as @a[c=1,scores={rprspd=!0}] run scoreboard players remove @s rprspd 1

execute as @a[c=1,scores={rapier_cd=1..1000}] run scoreboard players remove @s rapier_cd 1

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add sbr_tm dummy
execute as @a[c=1,scores={saber_cd=0..2}] run scoreboard players set @s sbr_tm 0

execute as @a[c=1,scores={saber_cd=3..20}] run scoreboard players set @s sbr_tm 1

execute as @a[c=1,scores={saber_cd=21..40}] run scoreboard players set @s sbr_tm 2

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add grtswrd_tm dummy
execute as @a[c=1,scores={grtswrd_cd=0..2}] run scoreboard players set @s grtswrd_tm 0

execute as @a[c=1,scores={grtswrd_cd=3..20}] run scoreboard players set @s grtswrd_tm 1

execute as @a[c=1,scores={grtswrd_cd=21..40}] run scoreboard players set @s grtswrd_tm 2

execute as @a[c=1,scores={grtswrd_cd=41..60}] run scoreboard players set @a grtswrd_tm 3

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add hmr_tm dummy
execute as @a[c=1,scores={hammer_cd=0..2}] run scoreboard players set @s hmr_tm 0

execute as @a[c=1,scores={hammer_cd=3..20}] run scoreboard players set @s hmr_tm 1

execute as @a[c=1,scores={hammer_cd=21..40}] run scoreboard players set @s hmr_tm 2

execute as @a[c=1,scores={hammer_cd=41..60}] run scoreboard players set @s hmr_tm 3

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add bdc_tm dummy
execute as @a[c=1,scores={bdc_cd=0..2}] run scoreboard players set @s bdc_tm 0

execute as @a[c=1,scores={bdc_cd=3..20}] run scoreboard players set @s bdc_tm 1

execute as @a[c=1,scores={bdc_cd=21..40}] run scoreboard players set @s bdc_tm 2

execute as @a[c=1,scores={bdc_cd=41..60}] run scoreboard players set @s bdc_tm 3

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add ph_tm dummy
execute as @a[c=1,scores={ph_cd=0..2}] run scoreboard players set @s ph_tm 0

execute as @a[c=1,scores={ph_cd=3..20}] run scoreboard players set @s ph_tm 1

execute as @a[c=1,scores={ph_cd=21..40}] run scoreboard players set @s ph_tm 2

execute as @a[c=1,tag=!joyloy] run gamerule sendcommandfeedback false

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add exhaust dummy

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add exhaust_lim dummy

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add exhregen dummy

execute as @a[c=1,tag=!joyloy] run scoreboard players set @s exhregen 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add exhel dummy

execute as @a[c=1,tag=!joyloy] run scoreboard players set @s exhel 10

execute as @a[c=1,tag=!joyloy] run scoreboard players set @a[c=1,tag=!joyloy] exhaust_lim 150

execute as @a[c=1,tag=!joyloy] run scoreboard players set @s exhaust 150

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add grtwpn dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s grtwpn 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add grtwpnxp dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s grtwpnxp 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add lghtwpn dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s lghtwpn 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add lghtwpnxp dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s lghtwpnxp 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add plrm dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s plrm 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add plrmxp dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s plrmxp 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add swrdwpn dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s swrdwpn 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add swrdwpnxp dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s swrdwpnxp 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add attacking dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s attacking 0

execute as @a[c=1,tag=!joyloy] run scoreboard objectives add grt_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s grt_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add lng_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s lng_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add lnc_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s lnc_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add wkz_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s wkz_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add ktn_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s ktn_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add dch_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s dch_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add mc_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s mc_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add spr_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s spr_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add sbr_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s sbr_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add glv_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s glv_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add hlbrd_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s hlbrd_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add hmr_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s hmr_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add dgr_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s dgr_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add ktr_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s ktr_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add rpr_cmb dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s rpr_cmb 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add slshcd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s slshcd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add swngcd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s swngcd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add slshohcd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s slshohcd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add swngohcd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s swngohcd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add thrstcd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s thrstcd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add prccd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s prccd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add pnctcd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s pnctcd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add stbcd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s stbcd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add thrwcd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s thrwcd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add iaicd dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s iaicd 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add tgtr dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s tgtr 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add stunned dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s stunned 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add sprint dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s sprint 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add jump dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s jump 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add rider dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s rider 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add cddash dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s cddash 0


execute as @a[c=1,tag=!joyloy] run scoreboard objectives add fnlktn dummy
execute as @a[c=1,tag=!joyloy] run scoreboard players set @s fnlktn 0


execute as @a[c=1,tag=!joyloy] run tag @s add joyloy