execute as @s[nbt={Item:{tag:{kyugotarmorbonus:1b}}}] run tag @s add NoGo
execute as @s[nbt={Item:{tag:{kyugotarmorbonus:1b}}}] run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..10] ["",{"text":"Your helmet has already been upgraded with max health!","color":"yellow","italic":true}]


execute at @s[tag=!NoGo] run data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.max_health",Name:"generic.max_health",Amount:2,Slot:"head",Operation:0,UUID:[I;6969,6969,6968,1146]}
execute at @s[tag=!NoGo] run data modify entity @s Item.tag merge value {kyugotarmorbonus:1b}
execute at @s[tag=!NoGo] run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..10] ["",{"text":"Your helmet has been upgraded with max health!","color":"aqua","italic":true}]
execute at @s[tag=!NoGo] run kill @e[distance=..5,nbt={Item:{id:"minecraft:gold_block",Count:1b}},tag=!SaveMe,limit=1]
execute at @s[tag=!NoGo] run kill @e[distance=..5,nbt={Item:{id:"minecraft:ghast_tear",Count:1b}},tag=!SaveMe,limit=1]