#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}]


scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:golden_pickaxe",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:anvil",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:iron_sword",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:lava_bucket",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:kelp",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:glowstone",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:redstone_block",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:fermented_spider_eye",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=8..}] run function zzzzdonotuse:modifyarmor/potions/makeoverload
