Hi!
I've been troubleshooting this skript for quite a while now and can't seem to get the items in the menu to show up. Any help would be appreciated, thanks!
Code:
I've been troubleshooting this skript for quite a while now and can't seem to get the items in the menu to show up. Any help would be appreciated, thanks!
Code:
Code:
command /upgrade:
cooldown: 1 second
cooldown message: &cSlow Down!
trigger:
if player is holding stone pickaxe:
open chest with 3 rows named "Pickaxe Upgrade" to player
wait 1 tick
format gui slot 10 of player with prismarine shard named "&e&lENCHANT: &fEfficiency" with lore "&e- &f&oAbility To Break Blocks Faster" and "&r" and "&e- &fCost &e$200" and "&e- &fMax: &e5" to run:
set {_i} to level of efficiency of {_p}'s tool
set {_i} to 0 if {_i} is not set
if {_i} < 10:
if {_p}'s balance >= 200:
remove 200 from {_p}'s balance
enchant {_p}'s held item with "efficiency %level of efficiency of tool + 1%" parsed as enchantment type
set line 3 of lore of player's tool to "&e&l| &fEfficiency: &f%level of efficiency of tool%"
send "&a&l[!] &aUpgraded Efficiency Level" to {_p}
else:
send "&c&l[!] &cInsufficent Funds" to {_p}
else:
send "&c&l[!] &cMax Level Reached" to {_p}
else:
send "&fHold The default pickaxe"