execute as @a[predicate=survivalplus:tomes/xp] run tag @s add xptome
execute as @a[tag=xptome,scores={usetome=1..}] at @s run function survivalplus:tools/tomes/xp
execute as @a[scores={usetome=1..}] run scoreboard players reset @s usetome