#execute as @s[nbt={Item:{tag:{kyulavaboots:1b}}}] run function zzzzdonotuse:modifyarmor/modules/checkhelmetmodules
#execute at @s[nbt=!{Item:{tag:{kyugoggles:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyugoggles:1b}}},limit=1,distance=..5] run 

execute at @s[nbt=!{Item:{tag:{kyugoggles:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyugoggles:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the 'Night Vision Goggles ' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyugoggles:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyugoggles:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Night Vision Goggles ","color":"#17FFB2"}'
execute at @s[nbt=!{Item:{tag:{kyugoggles:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyugoggles:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyugoggles:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyugoggles:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyugoggles:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyugoggles:1b}


execute at @s[nbt=!{Item:{tag:{kyudayextender:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyudayextender:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the ''Dawn's Daylight '' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyudayextender:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyudayextender:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Dawn\'s Daylight ","color":"#E0A212"}'
execute at @s[nbt=!{Item:{tag:{kyudayextender:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyudayextender:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyudayextender:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyudayextender:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyudayextender:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyudayextender:1b}


execute at @s[nbt=!{Item:{tag:{kyuxptrinket:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuxptrinket:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the 'Pure Unrefined Knowledge ' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyuxptrinket:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuxptrinket:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Pure Unrefined Knowledge ","color":"#8B59FF"}'
execute at @s[nbt=!{Item:{tag:{kyuxptrinket:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuxptrinket:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyuxptrinket:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyuxptrinket:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuxptrinket:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyuxptrinket:1b}


execute at @s[nbt=!{Item:{tag:{kyunaturegift:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyunaturegift:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the ''Nature's Gift '' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyunaturegift:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyunaturegift:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Nature\'s Gift ","color":"#3EFF29"}'
execute at @s[nbt=!{Item:{tag:{kyunaturegift:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyunaturegift:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyunaturegift:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyunaturegift:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyunaturegift:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyunaturegift:1b}


execute at @s[nbt=!{Item:{tag:{kyuspices:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuspices:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the 'Suspicious Spices ' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyuspices:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuspices:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Suspicious Spices ","color":"#FF4E33"}'
execute at @s[nbt=!{Item:{tag:{kyuspices:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuspices:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyuspices:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyuspices:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuspices:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyuspices:1b}


execute at @s[nbt=!{Item:{tag:{kyuslowfall:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuslowfall:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the 'Slowfall ' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyuslowfall:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuslowfall:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Slowfall(when in mainhand) ","color":"#E0AFE0"}'
execute at @s[nbt=!{Item:{tag:{kyuslowfall:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuslowfall:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyuslowfall:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyuslowfall:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuslowfall:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyuslowfall:1b}


execute at @s[nbt=!{Item:{tag:{kyudubloon:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyudubloon:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the 'Lucky Dubloon ' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyudubloon:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyudubloon:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Lucky Dubloon ","color":"#FFEE00"}'
execute at @s[nbt=!{Item:{tag:{kyudubloon:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyudubloon:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyudubloon:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyudubloon:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyudubloon:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyudubloon:1b}


execute at @s[nbt=!{Item:{tag:{kyuenchantedshard:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuenchantedshard:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the 'Enchanted Shard ' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyuenchantedshard:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuenchantedshard:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Enchanted Shard ","color":"#08B5FF"}'
execute at @s[nbt=!{Item:{tag:{kyuenchantedshard:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuenchantedshard:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyuenchantedshard:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyuenchantedshard:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuenchantedshard:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyuenchantedshard:1b}


execute at @s[nbt=!{Item:{tag:{kyuvoidtrinket:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuvoidtrinket:1b}}},limit=1,distance=..5] run execute at @s run execute at @e[name=CadeyrnCrafting,sort=nearest,limit=1] run tellraw @a[distance=..4] ["",{"text":"Your trinket holder now has the 'Eye of the Void ' effect!","color":"#8B59FF","italic":true}]
execute at @s[nbt=!{Item:{tag:{kyuvoidtrinket:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuvoidtrinket:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag.display.Lore append value '{"text":"Eye of the Void ","color":"#7300B5"}'
execute at @s[nbt=!{Item:{tag:{kyuvoidtrinket:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuvoidtrinket:1b}}},limit=1,distance=..5] run tag @e[limit=1,distance=..5,type=item,nbt={Item:{tag:{kyuvoidtrinket:1b}}}] add KILLMENOW
execute at @s[nbt=!{Item:{tag:{kyuvoidtrinket:1b}}}] run execute if entity @e[nbt={Item:{tag:{kyuvoidtrinket:1b}}},limit=1,distance=..5] run data modify entity @s Item.tag merge value {kyuvoidtrinket:1b}



kill @e[type=item,tag=KILLMENOW]


