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

execute as @a[c=1,scores={ph_cd=-1000..-1}] run scoreboard players set @s ph_cd 0

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

execute as @a[c=1,scores={katar_cd=-1000..-1}] run scoreboard players set @s katar_cd 0

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

execute as @a[c=1,scores={spint=-1000..-1}] run scoreboard players set @s spint 0

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

execute as @a[c=1,scores={grtswrd_cd=-1000..-1}] run scoreboard players set @s grtswrd_cd 0

execute as @a[c=1,scores={halberd_cd=-1000..-1}] run scoreboard players set @s halberd_cd 0

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

execute as @a[c=1,scores={saber_cd=-1000..-1}] run scoreboard players set @s saber_cd 0

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

execute as @a[c=1,scores={bdc_cd=-1000..-1}] run scoreboard players set @s bdc_cd 0

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

execute as @a[c=1,scores={pcharge=-1000..-1}] run scoreboard players set @s pcharge 0

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

execute as @a[c=1,scores={lance_cd=-1000..-1}] run scoreboard players set @s lance_cd 0

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

execute as @a[c=1,scores={ls_cd=-1000..-1}] run scoreboard players set @s ls_cd 0

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

execute as @a[c=1,scores={glaive_cd=-1000..-1}] run scoreboard players set @s glaive_cd 0

execute as @a[c=1,scores={glvabl_cd=-10001..-1}] run scoreboard players set @s glvabl 0

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

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

execute as @a[c=1,scores={spear_cd=-1000..-1}] run scoreboard players set @s spear_cd 0

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

execute as @a[c=1,scores={mace_cd=-1000..-1}] run scoreboard players set @s mace_cd 0

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

execute as @a[c=1,scores={dagger_cd=-1000..-1}] run scoreboard players set @s dagger_cd 0

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

execute as @a[c=1,scores={hghmnd=-9999..-1}]  run scoreboard players set @s hghmnd 0

execute as @a[c=1,scores={hghmnd=0},tag=hghmnd] run gamerule randomtickspeed 1

execute as @a[c=1,scores={hghmnd=0},tag=hghmnd] run tag @s remove hghmnd

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

execute as @a[c=1,scores={katana_cd=-1000..-1}] run scoreboard players set @s katana_cd 0

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

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

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

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

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

execute as @a[c=1,scores={katana_cd=81..100}] run scoreboard players set @s ktn_tm 5