Solved 'else' has to be placed just after another 'if' or 'else if' section

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

za_breado

Member
Apr 12, 2024
20
2
3
23
I was making a gui which shows which items you are able to compact, but I ran into this issue. No matter what I do, I cannot seem to find the isssue.

Skript Addons: Skbee, Skellet, SkQuery, skRayFall

Skript:

Code:
command /gui:

    trigger:

        wait 2 ticks

        open chest with 1 row named "&c&lAUTO COMPACTOR" to player

        if {compactors::%player's uuid%::*} contains "stone":

        format slot 0 of player with red wool named "red wool" to be unstealable

        else:

            format slot 0 of player with grey wool named "grey wool" to be unstealable
 

Attachments

  • problem.png
    problem.png
    6.2 KB · Views: 17