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 chestplate has already been upgraded with attack damage!","color":"yellow","italic":true}]


execute at @s[tag=!NoGo] run data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:1,Slot:"chest",Operation:0,UUID:[I;6969,6969,6968,1145]}
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 chestplate has been upgraded with attack damage!","color":"aqua","italic":true}]
execute at @s[tag=!NoGo] run kill @e[distance=..5,nbt={Item:{id:"minecraft:diamond_sword",Count:1b}},tag=!SaveMe,limit=1]