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

#data modify entity @s Item set value {id:"minecraft:potion",Count:1b,tag:{kyuoverload:1b,nocrossbowpot:1b,display:{Name:'{"text":"Overload","color":"dark_purple"}'},HideFlags:1,Enchantments:[{id:"minecraft:respiration",lvl:1s}],custom_potion_effects:[{id:"minecraft:speed",amplifier:1b,duration:6600},{id:"minecraft:haste",amplifier:0b,duration:6600},{id:"minecraft:strength",amplifier:1b,duration:6600},{id:"minecraft:instant_damage",amplifier:1b,duration:9},{id:"minecraft:fire_resistance",amplifier:0b,duration:6600},{id:"minecraft:water_breathing",amplifier:0b,duration:6600},{id:"minecraft:blindness",amplifier:0b,duration:200},{id:"minecraft:poison",amplifier:4b,duration:200},{id:"minecraft:saturation",amplifier:10b,duration:100}],Potion:"minecraft:water",CustomPotionColor:1048852}}
execute at @s positioned ~ ~4504 ~ run loot spawn ~ ~ ~ loot minecraft:customitems/overload
execute at @s positioned ~ ~4504 ~ run data modify entity @s Item set from entity @e[type=item,limit=1,sort=nearest,distance=..5] Item
execute at @s positioned ~ ~4504 ~ run kill @e[type=item,sort=nearest,distance=..5]

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

execute at @s run kill @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:golden_pickaxe",Count:1b}}]
execute at @s run kill @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:anvil",Count:1b}}]
execute at @s run kill @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:iron_sword",Count:1b}}]
execute at @s run kill @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:lava_bucket",Count:1b}}]
execute at @s run kill @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:kelp",Count:1b}}]
execute at @s run kill @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:glowstone",Count:1b}}]
execute at @s run kill @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:redstone_block",Count:1b}}]
execute at @s run kill @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:fermented_spider_eye",Count:1b}}] 