scoreboard players set @s svm_ep.using_move 31514357
execute as @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.power_ability_to_apply:1b}}}]}] run item modify entity @s weapon.mainhand svm_ep:ability/phasing_distortion
execute as @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.power_ability_to_apply:2b}}}]}] run item modify entity @s weapon.mainhand svm_ep:ability/lightning_flash
execute as @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.power_ability_to_apply:3b}}}]}] run item modify entity @s weapon.mainhand svm_ep:ability/piercing_thorns
execute as @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.power_ability_to_apply:4b}}}]}] run item modify entity @s weapon.mainhand svm_ep:ability/weight_neutralizer
execute as @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.power_ability_to_apply:5b}}}]}] run item modify entity @s weapon.mainhand svm_ep:ability/gravity_inverter
execute as @s[nbt={Inventory:[{Slot:-106b,components:{"minecraft:custom_data":{svm_ep.power_ability_to_apply:6b}}}]}] run item modify entity @s weapon.mainhand svm_ep:ability/thunder_shot









#CONSUME
execute as @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{svm_ep.has_power_ability:1b}}}}] run item modify entity @s weapon.offhand svm_ep:consume
