execute as @a[predicate=survivalplus:tomes/weak] run tag @s add weaktome
execute as @a[predicate=survivalplus:tomes/weak] at @s at @e[type=!#survivalplus:notalive,type=!creeper,type=!player,distance=..10] run particle minecraft:smoke ~ ~2.6 ~ 0 0 0 0 1 force @s
execute at @a[tag=weaktome,scores={usetome=1..}] run function survivalplus:tools/tomes/weak
execute as @a[scores={usetome=1..}] run scoreboard players reset @s usetome