$advancement grant @s only svm_ep:unlocked_ability/$(ability)
$xp add @s -$(cost) levels

execute at @s run particle minecraft:flash ~ ~1 ~
execute at @s run particle minecraft:enchanted_hit ~ ~1 ~ 0 0 0 1 30
execute at @s run playsound minecraft:entity.firework_rocket.twinkle master @a ~ ~ ~ 1 1.3
execute at @s run playsound minecraft:ui.cartography_table.take_result master @a ~ ~ ~ 1 2
tag @s add unlocked_ability