Solved Gui Help

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 26, 2019
29
0
1
23
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).
 
Last edited:
Status
Not open for further replies.