#data modify entity @s Item set value
#data modify entity @s Item set value {id:"minecraft:turtle_helmet",Count:1b,tag:{kyutrinket:1b,kyugoggles:1b,display:{Name:"{\"text\":\"Night Vision Goggles\"}",Lore:["\"Grants night vision, even when not worn...Odd.\""]},HideFlags:1,Enchantments:[{id:"minecraft:lure",lvl:6}]}}
execute at @s positioned ~ ~4504 ~ run loot spawn ~ ~ ~ loot minecraft:customitems/nightvisiongoggles
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: Night Vision Goggles.","color":"#8B59FF","italic":true}]


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