title @p actionbar "You have the stand tower of gray"
tag @p[tag=getting_stand,sort=nearest,limit=1] remove spp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove mrp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove sunp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove hgp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove dbmp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove scp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove tohthp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove setp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove hp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove hps
tag @p[tag=getting_stand,sort=nearest,limit=1] remove tfp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove ep
tag @p[tag=getting_stand,sort=nearest,limit=1] remove anubisp
tag @p[tag=getting_stand,sort=nearest,limit=1] remove cmp
tag @p[tag=getting_stand,sort=nearest,limit=1] add togp
give @p[tag=togp,sort=nearest,limit=1] minecraft:gray_dye[minecraft:custom_name="tower of gray",minecraft:piercing_weapon={},custom_data={tog:true},enchantments={"template:pierce": 1 },minecraft:consumable={consume_seconds:0.05,sound:{sound_id:""}},minecraft:use_cooldown={seconds: 5}] 1