Solved Check GUI for named item

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

Blep

New Member
Jun 23, 2020
9
0
1
25
Hello, wondering why this code doesn't work?

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
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
 
Last edited:
Status
Not open for further replies.