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