#data modify entity @s Item set value {id:"minecraft:paper",Count:1b,tag:{}}
#data modify entity @s Item set value {id:"minecraft:glowstone_dust",Count:1b,tag:{kyutrinket:1b,kyuspices:1b,display:{Name:"{\"text\":\"Suspicious Spices\"}",Lore:['[{"text":"Effect 1 - ","color":"dark_aqua"},{"text":"Saturation","color":"gold"}]','{"text":"All food items grant a tiny bit of extra saturation/hunger restoration.","color":"gold"}','{"text":"Zombie flesh in particular gains a massive boost,","color":"gold"}','{"text":"and the hunger effect it sometimes gives will be removed.","color":"gold"}','{"text":""}','[{"text":"Effect 2 - ","color":"dark_aqua"},{"text":"Health Boost","color":"light_purple"}]','{"text":"Golden apples additionally grant ","color":"light_purple"}','{"text":"Health Boost I for 2 minutes.","color":"light_purple"}']},HideFlags:1,Enchantments:[{id:"minecraft:lure",lvl:2}]}}

data modify entity @s Item set value {id:"minecraft:paper",Count:1b,tag:{kyuspellupgrade:1b,kyulocatorupgrade:1b,Enchantments:[{id:"minecraft:blast_protection",lvl:1s}],HideFlags:1,display:{Name:"{\"text\":\"Gilded Spell Sheet: Enchanted Cavern Locator Upgrade \",\"color\":\"#FFFF0D\"}",Lore:['{"text":"Upgrades the \'Enchanted Cavern Locator\' spell when held,","color":"#BDE7FC"}','{"text":"if the corresponding spell is already unlocked.","color":"#BDE7FC"}','{"text":""}','{"text":"Upgrade: Now gives exact coords instead of vague hints.","color":"#BA0404"}']}}}


execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Item crafted: Enchanted Cavern Locator Upgrade.","color":"#8B59FF","italic":true}]

execute at @s run kill @e[limit=8,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:gold_ingot",Count:1b}}]