#execute if entity @a[tag=K,nbt={Inventory:[{tag:{kyujunkstash:69b}}]}] run function zzzzdonotuse:trinketeffect/junkstash
execute as @a[tag=K,nbt={Inventory:[{tag:{kyudubloon:1b}}]}] run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ gold_block run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ gold_block run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ gold_block run execute as @s run function zzzzdonotuse:trinketeffect/dubloon
execute as @a[tag=K,nbt={Inventory:[{tag:{kyugoggles:1b}}]}] run function zzzzdonotuse:trinketeffect/goggles
execute as @a[tag=K,nbt={Inventory:[{tag:{kyuenchantedshard:1b}}]}] run function zzzzdonotuse:trinketeffect/enchantedshard
execute as @a[tag=K,nbt={Inventory:{Inventory:[{tag:{kyupoisonimmune:1b}}]}}] run tag @s add KyuPI
execute as @a[tag=K,nbt={Inventory:[{tag:{kyuxptrinket:1b}}]}] run tag @s add KyuXpTrink

execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ gold_block run xp add @a[tag=KyuXpTrink] 4