tag @s add SpellUpdate
execute as @s[nbt={SelectedItem:{id:"minecraft:paper",tag:{HideFlags:1,Enchantments:[{id:"minecraft:lure"}]}}}] run function zzzzdonotuse:spell/consumepagenormal
execute as @s[nbt={SelectedItem:{id:"minecraft:paper",tag:{HideFlags:1,Enchantments:[{id:"minecraft:unbreaking"}]}}}] run function zzzzdonotuse:spell/consumepagespecial
execute as @s[nbt={SelectedItem:{id:"minecraft:paper",tag:{kyuspellupgrade:1b}}}] run function zzzzdonotuse:spell/consumepagegilded