Paste #130873: Unnamed Denizen Script Paste

Date: 2025/02/14 09:15:26 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


gotospelllvlmenu:
    type: item
    material: spyglass
    Display Name: <&c>LVL your Skills
spelllvlmenu:
                type: inventory
                inventory: chest
                title: <&6><bold>   --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 <player.has_flag[spellown<[count]>]>:
                - inventory set o:itemspell slot:<[count]> d:<player.open_inventory>
                - 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 <context.item.material>
            - repeat 30 as:count:
                - if <context.item.material> != m@air:
                    - if <context.item.material> != m@barrier[waterlogged=false]:
                        - if <context.item.material> != m@ender_eye:
                            - if <context.slot> == <[count]>:
                                - if <player.flag[spellpoints]> > 0:
                                    - flag <player> spellpoints:-:1
                                    - flag <player> spelllvl<[count]>:+:1
                                    - inventory set o:Howmanyspellpoints slot:20 d:<player.open_inventory>
                                - inventory set o:itemspell slot:<[count]> d:<player.open_inventory>
                                - stop
itemspell:
    type: item
    material: spyglass
    Display Name: <[spellname<[count]>]>
    lore:
        - <&r>Spell LVL: <&a><player.flag[spelllvl<[count]>].if_null[0]>