tag @s add usedgrave
tag @s add graved
effect give @s resistance 5 255
effect give @s fire_resistance 15
effect give @s slow_falling 10
summon marker ~ ~ ~ {Tags:[gravemarker]}
playsound minecraft:entity.evoker.cast_spell player @a ~ ~ ~
particle soul ~ ~1 ~ .2 .3 .2 .1 30
particle explosion ~ ~1 ~ .2 .3 .2 .1 5
execute as @e[tag=gravemarker] at @s run function survivalplus:tools/tomes/gravemarker
tag @s remove graved