Solved GUI count

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

Aralwen

Active Member
May 26, 2017
164
14
18
25
Hello, I'm looking for a way to define the number of items by a variable.

Work :

code_language.skript:
command /chest:
    trigger:
        wait 1 tick
        open virtual chest with 4 rows named "test" to player
        format gui slot 1 of player with 5 item_frame named "test"

Doesn't work :

code_language.skript:
command /chest:
    trigger:
        wait 1 tick
        open virtual chest with 4 rows named "test" to player
        set {_count} to 5
        format gui slot 1 of player with {_count} item_frame named "test"

Thank's in advance.
 
Status
Not open for further replies.