#data modify entity @s Item set value {id:"minecraft:paper",Count:1b,tag:{}}

data modify entity @s Item set value {id:"minecraft:paper",Count:1b,tag:{kyuspellupgrade:1b,kyuslowfallupgrade:1b,Enchantments:[{id:"minecraft:blast_protection",lvl:1s}],HideFlags:1,display:{Name:"{\"text\":\"Gilded Spell Sheet: Slowfall Upgrade \",\"color\":\"#FFFF0D\"}",Lore:['{"text":"Upgrades the \'Slowfall\' spell when held,","color":"#BDE7FC"}','{"text":"if the corresponding spell is already unlocked.","color":"#BDE7FC"}','{"text":""}','{"text":"Upgrade: Spell now has 3 daily uses.","color":"#BA0404"}']}}}


execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Item crafted: Slowfall 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}}]