execute at @s run data modify entity @s Item.tag merge value {kyudamagespeedmodule:1b}
data modify entity @s Item.tag.display.Lore append value '{"text":"Damage and Attack Speed ","color":"#DCFF2E"}'

data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:1,Slot:"head",Operation:0,UUID:[I;6969,6969,6968,1150]}
data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:.15,Slot:"head",Operation:1,UUID:[I;6969,6969,6968,1151]}


execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your helmet now has the 'Damage and Attack Speed' module!","color":"gold","italic":true}]
execute at @s run kill @e[distance=..5,nbt={Item:{id:"minecraft:blaze_powder",Count:1b}},tag=!SaveMe,limit=1]
execute at @s run kill @e[distance=..5,nbt={Item:{id:"minecraft:gold_block",Count:1b}},tag=!SaveMe,limit=1]