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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Solved Gui Help

Discussion in 'Skript' started by thomas_nietoke, Mar 31, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. thomas_nietoke

    Joined:
    Feb 26, 2019
    Messages:
    29
    Likes Received:
    0
    So i'm basically trying to make something to upgrade your pickaxe with efficiency.
    command /upgrade:
    trigger:
    open virtual hopper named "&aUpgrades" to player
    if {wooden_efficiency::%player's uuid%} = 0:
    create a gui slot 0 of player with wooden pickaxe named "&7Efficiency &91" with lore "&e$100" to run:
    if {Balance::%player's uuid%} >= 100:
    enchant player's tool with efficiency 1
    set {wooden_efficiency::%player's uuid%} to 1
    remove 100 from {Balance::%player's uuid%}
    if {wooden_efficiency::%player's uuid%} = 1:
    create a gui slot 0 of player with wooden pickaxe named "&7Efficiency &92" with lore "&e$250" to run:
    if {Balance::%player's uuid%} >= 250:
    enchant player's tool with efficiency 2
    set {wooden_efficiency::%player's uuid%} to 2
    remove 250 from {Balance::%player's uuid%}

    It works but the information in the gui only updates when i leave the menu and open it again
    (already fixed).
     
    #1 thomas_nietoke, Mar 31, 2020
    Last edited: Mar 31, 2020
Thread Status:
Not open for further replies.

Share This Page

Loading...