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