title @p[tag=getting_stand,sort=nearest,limit=1] actionbar "You have the stand hermit purple"
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 togp
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] add hp
give @p[tag=hp,sort=nearest,limit=1] minecraft:diamond_sword[minecraft:custom_name="hermit purple",minecraft:piercing_weapon={},custom_data={hp:true},minecraft:consumable={consume_seconds:0.05,has_consume_particles:false,sound:{sound_id:""}},minecraft:use_cooldown={seconds: 15},item_model="template:hermit_purple",minecraft:unbreakable={}] 1