gotospelllvlmenu: type: item material: spyglass Display Name: <&c>LVL your Skills spelllvlmenu: type: inventory inventory: chest title: <&6> --Level up Spells-- gui: true slots: - [] [] [] [] [] [] [] [] [] - [] [] [] [] [] [] [] [] [] - [spellmenuback] [Howmanyspellpoints] [] [] [] [] [] [] [] tospelllvlmenu: type: world events: on player clicks gotospelllvlmenu in inventory: - define spellname1 "<&4>Furystorm<&r>" - define spellname2 "<&4>Berserk<&r>" - define spellname3 "<&6>Holo Ramb<&r>" - define spellname4 "<&4>Explode<&r>" - define spellname5 "<&5>Runic Dash<&r>" - define spellname6 "<&6>Brucher Stab<&r>" - define spellname7 "<&3>Reoa´s Speed<&r>" - define spellname8 "<&4>EXPLOSION<&r>" - define spellname9 "<&d>Aura Totem<&r>" - define spellname10 "<&b>Mana Blast<&r>" - define spellname11 "<&a>Lifebloom<&r>" - define spellname12 "<&4>Magic Frog Toss<&r>" - define spellname13 "<&4>Furystorm<&r>" - define spellname14 " " - define spellname15 " " - define spellname16 " " - define spellname17 " " - define spellname18 " " - define spellname19 " " - define spellname20 " " - define spellname21 " " - inventory open d:spelllvlmenu - repeat 30 as:count: - if ]>: - inventory set o:itemspell slot:<[count]> d: - wait 1t after player right clicks item in spelllvlmenu: - define spellname1 "<&4>Furystorm<&r>" - define spellname2 "<&4>Berserk<&r>" - define spellname3 "<&6>Holo Ramb<&r>" - define spellname4 "<&4>Explode<&r>" - define spellname5 "<&5>Runic Dash<&r>" - define spellname6 "<&6>Brucher Stab<&r>" - define spellname7 "<&3>Reoa´s Speed<&r>" - define spellname8 "<&4>EXPLOSION<&r>" - define spellname9 "<&d>Aura Totem<&r>" - define spellname10 "<&b>Mana Blast<&r>" - define spellname11 "<&a>Lifebloom<&r>" - define spellname12 "<&4>Magic Frog Toss<&r>" - define spellname13 "<&4>Furystorm<&r>" - define spellname14 " " - define spellname15 " " - define spellname16 " " - define spellname17 " " - define spellname18 " " - define spellname19 " " - define spellname20 " " - define spellname21 " " - narrate - repeat 30 as:count: - if != m@air: - if != m@barrier[waterlogged=false]: - if != m@ender_eye: - if == <[count]>: - if > 0: - flag spellpoints:-:1 - flag spelllvl<[count]>:+:1 - inventory set o:Howmanyspellpoints slot:20 d: - inventory set o:itemspell slot:<[count]> d: - stop itemspell: type: item material: spyglass Display Name: <[spellname<[count]>]> lore: - <&r>Spell LVL: <&a>].if_null[0]>