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