I need help creating a GUI

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

May 15, 2024
3
0
1
14
So im using the skript-gui plugin and i tryed to create a GUI:

Code:
command /energyShop:
    aliases: /es
    trigger:
        create a gui with virtual chest inventory with 9 rows named "Energy Shop":
            if {class::%player's uuid%} is 1:
                make gui slot 10 with paper named "Movement upgrade I" with lore "&4Cost: 30 Levels":
                    if {energy::%player's uuid%} is greater than 300:
                        if {teir::%player's uuid%} = 1:
                            remove 30 levels from player
                            send "Item has been perchased for 30 levels"
                            add swiftness 1 to {potions::%player's uuid%}
                            apply infinite potion of swiftness of tier 1 to the player
                make gui slot 19 with paper named "Movement upgrade II" with lore "&4Cost: 50 Levels":
                    if {energy::%player's uuid%} is greater than 500:
                        if {teir::%player's uuid%} = 2:
                            remove 50 levels from player
                            send "Item has been perchased for 50 levels"
                            add jump boost 1 to {potions::%player's uuid%}
                            apply infinite potion of jump boost of tier 1 to the player
                make gui slot 28 with paper named "Movement upgrade III" with lore "&4Cost: 75 Levels":
                    if {energy::%player's uuid%} is greater than 750:
                        if {teir::%player's uuid%} = 3:
                            remove 75 levels from player
                            send "Item has been perchased for 75 levels"
                            add swiftness 2 to {potions::%player's uuid%}
                            apply infinite potion of swiftness of tier 2 to the player
                make gui slot 37 with paper named "Dash rod" with lore "&4Cost: 50 Levels":
                    if {energy::%player's uuid%} is greater than 500:
                        if {teir::%player's uuid%} = 4:
                            remove 50 levels from player
                            send "Item has been perchased for 50 levels"
                            give player fishing rod
            else:
                make gui slot 10 with bedrock named "&4Movment Class item" with lore "&4You are not the correct class!"
                make gui slot 19 with bedrock named "&4Movment Class item" with lore "&4You are not the correct class!"
                make gui slot 28 with bedrock named "&4Movment Class item" with lore "&4You are not the correct class!"
                make gui slot 37 with bedrock named "&4Movment Class item" with lore "&4You are not the correct class!"
        open the last gui to player

However when I open the GUI it only has one row? Help please?
 
So im using the skript-gui plugin and i tryed to create a GUI:

Code:
command /energyShop:
    aliases: /es
    trigger:
        create a gui with virtual chest inventory with 9 rows named "Energy Shop":
            if {class::%player's uuid%} is 1:
                make gui slot 10 with paper named "Movement upgrade I" with lore "&4Cost: 30 Levels":
                    if {energy::%player's uuid%} is greater than 300:
                        if {teir::%player's uuid%} = 1:
                            remove 30 levels from player
                            send "Item has been perchased for 30 levels"
                            add swiftness 1 to {potions::%player's uuid%}
                            apply infinite potion of swiftness of tier 1 to the player
                make gui slot 19 with paper named "Movement upgrade II" with lore "&4Cost: 50 Levels":
                    if {energy::%player's uuid%} is greater than 500:
                        if {teir::%player's uuid%} = 2:
                            remove 50 levels from player
                            send "Item has been perchased for 50 levels"
                            add jump boost 1 to {potions::%player's uuid%}
                            apply infinite potion of jump boost of tier 1 to the player
                make gui slot 28 with paper named "Movement upgrade III" with lore "&4Cost: 75 Levels":
                    if {energy::%player's uuid%} is greater than 750:
                        if {teir::%player's uuid%} = 3:
                            remove 75 levels from player
                            send "Item has been perchased for 75 levels"
                            add swiftness 2 to {potions::%player's uuid%}
                            apply infinite potion of swiftness of tier 2 to the player
                make gui slot 37 with paper named "Dash rod" with lore "&4Cost: 50 Levels":
                    if {energy::%player's uuid%} is greater than 500:
                        if {teir::%player's uuid%} = 4:
                            remove 50 levels from player
                            send "Item has been perchased for 50 levels"
                            give player fishing rod
            else:
                make gui slot 10 with bedrock named "&4Movment Class item" with lore "&4You are not the correct class!"
                make gui slot 19 with bedrock named "&4Movment Class item" with lore "&4You are not the correct class!"
                make gui slot 28 with bedrock named "&4Movment Class item" with lore "&4You are not the correct class!"
                make gui slot 37 with bedrock named "&4Movment Class item" with lore "&4You are not the correct class!"
        open the last gui to player

However when I open the GUI it only has one row? Help please?
Max is 6 rows, unless you have mods and add-ons, 9 is impossible.