# advancement reward function
advancement revoke @s only energy_manipulation:spell/book/craft/ground
execute if score $energy_manipulation xvc.load_status matches 0 run return 0
#---------------------------

loot replace entity @s weapon.mainhand loot energy_manipulation:give/spell/book/ground

# advancement
advancement grant @s only energy_manipulation:tutorial/spell/book/craft/ground

# particles
execute anchored eyes rotated ~ 0 positioned ^-0.3 ^ ^0.45 run particle minecraft:dust 0.361 0.886 0.078 1 ~ ~-0.4 ~ 0.15 0.15 0.15 1 10 force