Solved Switched from SkQuery GUI's to skript-gui's, but it's throwing errors I don't understand.

  • 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
23
2
3
23
I switched from SkQuery's GUI creation system to skript-gui's, but since I tried to change the formatting to support skript-gui, it is throwing errors I haven't ever seen (attached below)

My skript might be completely broken, but i'm not sure as this is my first time using skript-gui

Skript Addons: SkBee, Skellet, skRayFall, skript-gui

Skript:
Code:
command /gui:
    trigger:
        create a gui with virtual chest named "&c&lCOMPACTOR" with 1 rows:
        make gui slot 0 to red glass pane named " "
        make gui slot 8 to red glass pane named " "
        if {compactors::%player's uuid%::*} contains "stone":
            make gui slot 1 to stone named "&2&lSTONE ✔"
        else:
            make gui slot 1 to grey wool of infinity 1 to item flag hide enchants named "&4&lSTONE ❌"
           
        if {compactors::%player's uuid%::*} contains "coal":
            make gui slot 2 to coal block named "&2&lCOAL ✔"
        else:
            make gui slot 2 to grey wool of infinity 1 to item flag hide enchants named "&4&lCOAL ❌"
           
        if {compactors::%player's uuid%::*} contains "iron":
            make gui slot 3 to iron block named "&2&lIRON ✔"
        else:
            make gui slot 3 to grey wool of infinity 1 to item flag hide enchants named "&4&lIRON ❌"
           
        if {compactors::%player's uuid%::*} contains "gold":
            make gui slot 4 to gold block named "&2&lGOLD ✔"
        else:
            make gui slot 4 to grey wool of infinity 1 to item flag hide enchants named "&4&lGOLD ❌"
           
        if {compactors::%player's uuid%::*} contains "diamond":
            make gui slot 5 to diamond block named "&2&lDIAMOND ✔"
        else:
            make gui slot 5 to grey wool of infinity 1 to item flag hide enchants named "&4&lDIAMOND ❌"
           
        if {compactors::%player's uuid%::*} contains "emerald":
            make gui slot 6 to emerald block named "&2&lEMERALD ✔"
        else:
            make gui slot 6 to grey wool of infinity 1 to item flag hide enchants named "&4&lEMERALD ❌"
            open last gui to player
 
Last edited:
You didnt indent.
Code:
create gui:
    make gui slot...
open last gui to player

If thats not it send your errors
 
You didnt indent.
Code:
create gui:
    make gui slot...
open last gui to player

If thats not it send your errors
Thanks for the help, most of my errors are gone, but I am still getting these errors shown in the attached screenshot

New Code:
Code:
command /gui:
    trigger:
        create a gui with virtual chest named "&c&lCOMPACTOR" with 1 rows:
            make gui slot 0 to red glass pane named " "
            make gui slot 8 to red glass pane named " "
            if {compactors::%player's uuid%::*} contains "stone":
                make gui slot 1 to stone named "&2&lSTONE ✔"
            else:
                make gui slot 1 to grey wool of infinity 1 to item flag hide enchants named "&4&lSTONE ❌"
            
            if {compactors::%player's uuid%::*} contains "coal":
                make gui slot 2 to coal block named "&2&lCOAL ✔"
            else:
                make gui slot 2 to grey wool of infinity 1 to item flag hide enchants named "&4&lCOAL ❌"
            
            if {compactors::%player's uuid%::*} contains "iron":
                make gui slot 3 to iron block named "&2&lIRON ✔"
            else:
                make gui slot 3 to grey wool of infinity 1 to item flag hide enchants named "&4&lIRON ❌"
            
            if {compactors::%player's uuid%::*} contains "gold":
                make gui slot 4 to gold block named "&2&lGOLD ✔"
            else:
                make gui slot 4 to grey wool of infinity 1 to item flag hide enchants named "&4&lGOLD ❌"
            
            if {compactors::%player's uuid%::*} contains "diamond":
                make gui slot 5 to diamond block named "&2&lDIAMOND ✔"
            else:
                make gui slot 5 to grey wool of infinity 1 to item flag hide enchants named "&4&lDIAMOND ❌"
            
            if {compactors::%player's uuid%::*} contains "emerald":
                make gui slot 6 to emerald block named "&2&lEMERALD ✔"
            else:
                make gui slot 6 to grey wool of infinity 1 to item flag hide enchants named "&4&lEMERALD ❌"
            open last gui to player
            stop
 

Attachments

  • problem.png
    problem.png
    78.2 KB · Views: 30
do you mean

Ah, okay, my code was fine when using skquery, but maybe that was a feature specific to it, thank you for the reply.
No it's not.

Gui's, opening them, editing them, enchant gleen items, etc are all doable with vanilla skript.

Furthermore, if you want to make a glowing item you can literally just write "glowing gray wool"
 
No it's not.

Gui's, opening them, editing them, enchant gleen items, etc are all doable with vanilla skript.

Furthermore, if you want to make a glowing item you can literally just write "glowing gray wool"
Thank you, I will use this instead.
 
Ah, okay, my code was fine when using skquery, but maybe that was a feature specific to it, thank you for the reply.
Hide enchants flag is a skbee thing.

There is also the glowing thing that nix mentioned
 
No it's not.

Gui's, opening them, editing them, enchant gleen items, etc are all doable with vanilla skript.

Furthermore, if you want to make a glowing item you can literally just write "glowing gray wool"
Thank you so much for helping me again today, my skript is fixed now.
 
  • Like
Reactions: NixTer
Hide enchants flag is a skbee thing.

There is also the glowing thing that nix mentioned
Yeah, I was confused with the error message, thanks for all the help.