1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Prison /Upgrade Skript.

Discussion in 'Requests' started by Valentin95, May 16, 2019.

  1. V

    Valentin95 Member

    Joined:
    May 16, 2019
    Messages:
    2
    Likes Received:
    0
    Category: Skripts;

    Suggested name: Upgrade skript;

    Spigot/Skript Version: Latest;

    What I want:
    Hello, I want a /upgrade skript for pickaxe custom enchants. I want it to have GUI that opens when you run the command and I want it to have blocks that when you click to enchant your pickaxe enchant level by one. I want it to have: Efficiency, Fortune, Unbreaking, Explosive, Haste, JackHammer(Like in VanityMC) and MultiDirectional(Like in VanityMC). I want them to cost 5000 coins for each level and the max level to be 5000.

    Ideas for commands: /upgrade

    Ideas for permissions: prison.upgrade

    When I'd like it by:
    A week.
     
  2. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    711
    Likes Received:
    53
    This seems more like it is a paid request.
     
  3. V

    Valentin95 Member

    Joined:
    May 16, 2019
    Messages:
    2
    Likes Received:
    0
    No cuz I have it 50% done
    --- Double Post Merged, May 16, 2019, Original Post Date: May 16, 2019 ---
    Code (Text):
    1. command /upgrade:
    2.   trigger:
    3.     if player's tool is not a pickaxe:
    4.       message "&cYou must hold a pickaxe!"
    5.       stop
    6.     else:
    7.       open chest with 3 rows named "&6&lEnchants" to player
    8.       format slot 10 of player with stone named "&7Fortune&b (%level of fortune of tool of player%)" to run [execute console command "fortune %player%"]
    9.       format slot 13 of player with stone named "&7Unbreaking&b (%level of unbreaking of tool of player%)" to run [execute console command "unbreaking %player%"]
    10.       format slot 16 of player with stone named "&7Efficiency&b (%level of efficiency of tool of player%)" to run [execute console command "efficiency %player%"]
    11.  
    12. command /fortune <player>:
    13.  executable by: console
    14.  trigger:
    15.   if {token::balance::%arg-1%} is greater or equal to 5000:
    16.    subtract 5000 from {token::balance::%arg-1%}
    17.    set {Fortune.%arg-1%} to "fortune %level of fortune of tool of arg 1 + 1%"
    18.    enchant arg-1's tool with "%{Fortune.%arg-1%}%" parsed as enchantment type
    19.    message "&a&l(!)&a You have upgraded fortune to &b%{Fortune.%arg-1%}%&a!" to arg 1
    20.   else:
    21.    close inventory of arg 1
    22.    message "&cInsufficient Funds!" to arg 1
    23.  
    24. command /efficiency <player>:
    25.  executable by: console
    26.  trigger:
    27.   if {token::balance::%arg-1%} is greater or equal to 5000:
    28.    subtract 5000 from {token::balance::%arg-1%}
    29.    set {Efficiency.%arg-1%} to "efficiency %level of efficiency of tool of arg 1 + 1%"
    30.    enchant arg-1's tool with "%{Efficiency.%arg-1%}%" parsed as enchantment type
    31.    message "&a&l(!)&a You have upgraded efficiency to &b%{Efficiency.%arg-1%}%&a!" to arg 1
    32.   else:
    33.    close inventory of arg 1
    34.    message "&cInsufficient Funds!" to arg 1
    35.  
    36. command /unbreaking <player>:
    37.  executable by: console
    38.  trigger:
    39.   if {token::balance::%arg-1%} is greater or equal to 5000:
    40.    subtract 5000 from {token::balance::%arg-1%}
    41.    set {unbreaking.%arg-1%} to "unbreaking %level of unbreaking of tool of arg 1 + 1%"
    42.    enchant arg-1's tool with "%{unbreaking.%arg-1%}%" parsed as enchantment type
    43.    message "&a&l(!)&a You have upgraded unbreaking to &b%{unbreaking.%arg-1%}%&a!" to arg 1
    44.   else:
    45.    close inventory of arg 1
    46.    message "&cInsufficient Funds!" to arg 1
    47.    
     
  4. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    711
    Likes Received:
    53
    Use uuid of arg-1.
     
Loading...