GUI Bug?

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

Kirishigarin

Member
Dec 14, 2018
4
0
0
21
Sup
im trying to make a GUI with GameModes that changes your Gamemode.

i tried but skript says "set slot 1 is not an Entity Type"

the Version of the Server is 1.8.8

Here the full Code

code_language.skript:
command /menu:
    trigger:
        open chest with 3 rows named "&8»&c Gamemodes" to player
        wait 2 ticks
        set slot 1 with grass named "Creative" to close
 
Sup
im trying to make a GUI with GameModes that changes your Gamemode.

i tried but skript says "set slot 1 is not an Entity Type"

the Version of the Server is 1.8.8

Here the full Code

code_language.skript:
command /menu:
    trigger:
        open chest with 3 rows named "&8»&c Gamemodes" to player
        wait 2 ticks
        set slot 1 with grass named "Creative" to close

You have to do:
set slot X to X named X

On inventory click:
cancel event
 
Sup
im trying to make a GUI with GameModes that changes your Gamemode.

i tried but skript says "set slot 1 is not an Entity Type"

the Version of the Server is 1.8.8

Here the full Code

code_language.skript:
command /menu:
    trigger:
        open chest with 3 rows named "&8»&c Gamemodes" to player
        wait 2 ticks
        set slot 1 with grass named "Creative" to close

Just do this:
code_language.skript:
command /menu:
    trigger:
        wait a tick
        open chest with 3 rows named "&8»&c Gamemodes" to player
        set slot 1 of player's current inventory to grass named "Creative"
on inventory click:
    if clicked inventory is not player's inventory:
        if name of player's current inventory is "&8»&c Gamemodes":
            if clicked slot is 1:
                cancel event
                set player's gamemode to creative
 
Last edited:
There's absolutely no need for SkStuff in your code.
Vanilla Skript contains the Clicked Inventory expression .
 
Status
Not open for further replies.