execute as @s[scores={svm_ep.selected_ability=1}] run function svm_ep:power/slime/ability/ui/1
execute as @s[scores={svm_ep.selected_ability=2},advancements={svm_ep:unlocked_ability/slime/2=true}] run function svm_ep:power/slime/ability/ui/2
execute as @s[scores={svm_ep.selected_ability=4},advancements={svm_ep:unlocked_ability/slime/3=true}] run function svm_ep:power/slime/ability/ui/4
execute as @s[scores={svm_ep.selected_ability=5},advancements={svm_ep:unlocked_ability/slime/4=true}] run function svm_ep:power/slime/ability/ui/5
execute as @s[scores={svm_ep.selected_ability=6},advancements={svm_ep:unlocked_ability/slime/5=true}] run function svm_ep:power/slime/ability/ui/6
execute as @s[scores={svm_ep.selected_ability=3},advancements={svm_ep:unlocked_ability/slime/6=true}] run function svm_ep:power/slime/ability/ui/3
execute as @s[scores={svm_ep.selected_ability=7},advancements={svm_ep:unlocked_ability/slime/7=true}] run function svm_ep:power/slime/ability/ui/7
execute as @s[scores={svm_ep.selected_ability=8},advancements={svm_ep:unlocked_ability/slime/8=true}] run function svm_ep:power/slime/ability/ui/8










#title @s[nbt={SelectedItemSlot:0},scores={svm_ep.ability0=0,svm_ep.level=5..}] actionbar ["",{"text":"|","color":"#878787"},{"text":" M","color":"#FFBB2B"},{"text":"a","color":"#FFD35E"},{"text":"n","color":"#FFBB2B"},{"text":"a","color":"gold"},{"text":":","color":"#8E8E8E"},{"text":" ","color":"gray"},{"score":{"name":"@s","objective":"svm_ep.mana"},"color":"gold"},{"text":"/","color":"#FFC13E"},{"score":{"name":"@s","objective":"svm_ep.mana_max"},"color":"#FFC750"},{"text":" |","color":"#858585"},{"text":" S","color":"#8EFF54"},{"text":"li","color":"#BFFF6F"},{"text":"my R","color":"#DBF78A"},{"text":"ai","color":"#BFFF6F"},{"text":"n ","color":"#8EFF54"},{"text":"|","color":"gray"}]
#title @s[nbt={SelectedItemSlot:0},scores={svm_ep.ability0=0,svm_ep.level=5..,svm_ep.p.slime_ability_02_delay=1..}] actionbar ["",{"text":"|","color":"#878787"},{"text":" M","color":"#FFBB2B"},{"text":"a","color":"#FFD35E"},{"text":"n","color":"#FFBB2B"},{"text":"a","color":"gold"},{"text":":","color":"#8E8E8E"},{"text":" ","color":"gray"},{"score":{"name":"@s","objective":"svm_ep.mana"},"color":"gold"},{"text":"/","color":"#FFC13E"},{"score":{"name":"@s","objective":"svm_ep.mana_max"},"color":"#FFC750"},{"text":" |","color":"#858585"},{"text":" S","strikethrough":true,"color":"#99AA84"},{"text":"l","strikethrough":true,"color":"#9EB280"},{"text":"im","strikethrough":true,"color":"#AABA91"},{"text":"y ","strikethrough":true,"color":"#C0C8AF"},{"text":"R","strikethrough":true,"color":"#AABA91"},{"text":"ai","strikethrough":true,"color":"#9EB280"},{"text":"n ","strikethrough":true,"color":"#99AA84"},{"text":"|","color":"gray"}]

#title @s[nbt={SelectedItemSlot:1},scores={svm_ep.level=10..}] actionbar ["",{"text":"|","color":"#878787"},{"text":" M","color":"#FFBB2B"},{"text":"a","color":"#FFD35E"},{"text":"n","color":"#FFBB2B"},{"text":"a","color":"gold"},{"text":":","color":"#8E8E8E"},{"text":" ","color":"gray"},{"score":{"name":"@s","objective":"svm_ep.mana"},"color":"gold"},{"text":"/","color":"#FFC13E"},{"score":{"name":"@s","objective":"svm_ep.mana_max"},"color":"#FFC750"},{"text":" |","color":"#858585"}
#title @s[nbt={SelectedItemSlot:1},scores={svm_ep.level=10..,svm_ep.p.slime_ability_03_delay=1..}] actionbar ["",{"text":"|","color":"#878787"},{"text":" M","color":"#FFBB2B"},{"text":"a","color":"#FFD35E"},{"text":"n","color":"#FFBB2B"},{"text":"a","color":"gold"},{"text":":","color":"#8E8E8E"},{"text":" ","color":"gray"},{"score":{"name":"@s","objective":"svm_ep.mana"},"color":"gold"},{"text":"/","color":"#FFC13E"},{"score":{"name":"@s","objective":"svm_ep.mana_max"},"color":"#FFC750"},{"text":" |","color":"#858585"}

#["",{"text":"|","color":"#878787"},{"text":" M","color":"#FFBB2B"},{"text":"a","color":"#FFD35E"},{"text":"n","color":"#FFBB2B"},{"text":"a","color":"gold"},{"text":":","color":"#8E8E8E"},{"text":" ","color":"gray"},{"score":{"name":"@s","objective":"svm_ep.mana"},"color":"gold"},{"text":"/","color":"#FFC13E"},{"score":{"name":"@s","objective":"svm_ep.mana_max"},"color":"#FFC750"},{"text":" |","color":"#858585"}
