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 legs have already been upgraded with movement speed!","color":"yellow","italic":true}]



execute at @s[tag=!NoGo] run data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.movement_speed",Name:"generic.movement_speed",Amount:.1,Slot:"legs",Operation:1,UUID:[I;6969,6969,6968,1144]}
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 legs have been upgraded with movement speed!","color":"aqua","italic":true}]
execute at @s[tag=!NoGo] run kill @e[distance=..5,tag=SpeedPoot]