Hello, wondering why this code doesn't work?
Everything in the code works until it gets to the "Wood Pickaxe named "&f[1] Pickaxe":" bit. If I removed that, it works just fine. Why?
EDIT:
Skript GUI checked the entire NBT, so I just needed to include the lore of the item
Code:
on inventory click:
if name of current inventory of event-player is "TEMP":
if event-slot is 2:
wait 1 tick
if slot 2 of player's current inventory is Wood Pickaxe:
broadcast "%event-slot%"
format slot 4 of player with lime glass pane named "&a&lUPGRADE &7>" to be unstealable
if slot 2 of player's current inventory is Wood Pickaxe named "&f[1] Pickaxe":
broadcast "Upgrade"
else:
format slot 4 of player with red glass pane named "&7&l< &fEnter Pickaxe" to be unstealable
EDIT:
Skript GUI checked the entire NBT, so I just needed to include the lore of the item
Last edited: