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