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).
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: