tag @s[nbt={Inventory:[{Slot:-106b,tag:{kyuankhshield:1b}}]}] add KyuAnkh
effect clear @s minecraft:slowness
effect clear @s minecraft:poison
effect clear @s minecraft:wither
effect clear @s minecraft:hunger
effect clear @s minecraft:weakness
effect clear @s minecraft:levitation
effect clear @s minecraft:blindness
effect clear @s minecraft:mining_fatigue
effect clear @s minecraft:unluck
effect clear @s minecraft:nausea
tag @s remove KyuAnkh
#/execute as @a[nbt={Inventory:[{Slot:-106b,tag:{kyuankhshield:1b}}]}] run function zzzzdonotuse:trinketeffect/ankh