execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.power_ability:1b}}}}] run function svm_ep:items/power_ability/check_ability {"color":"white","ability_name":"Phasing Distortion","cost":"10"}
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.power_ability:2b}}}}] run function svm_ep:items/power_ability/check_ability {"color":"white","ability_name":"Lightning Flash","cost":"40"}
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.power_ability:3b}}}}] run function svm_ep:items/power_ability/check_ability {"color":"white","ability_name":"Piercing Thorns","cost":"35"}
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.power_ability:4b}}}}] run function svm_ep:items/power_ability/check_ability {"color":"white","ability_name":"Weight Neutralizer","cost":"75"}
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.power_ability:5b}}}}] run function svm_ep:items/power_ability/check_ability {"color":"white","ability_name":"Gravity Inverter","cost":"75"}
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.power_ability:6b}}}}] run function svm_ep:items/power_ability/check_ability {"color":"white","ability_name":"Thunder-Shot","cost":"75"}


scoreboard players set @s svm_ep.selected_ability 10000