Warp GUI help

  • 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 our Wiki for downloads and any other information about Skript!

Status
Not open for further replies.

GiorgixPRO

Member
Jul 29, 2017
44
0
0
25
Hello guys I've created a warp GUI but when the player clicks on the item the command doesnt run.
This is the code:

Code:
command /warps:
    trigger:
        open chest with 6 row named "&bWarps" to player
        wait 1 tick
        format slot 0 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 1 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 2 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 3 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 4 of player with red glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 5 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 6 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 7 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 8 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 11 of player with diamond sword named "&c&lWarp War" with lore "&bMondo Fazione [30000x30000]||&cPVP Attivo!" to close then run "warp war"
        format slot 13 of player with item frame named "&a&lWarp Info" with lore "&aImpara i &dcomandi &ae le &6meccaniche &adel server" to close then run "warp info"
        format slot 15 of player with obsidian named "&d&lWarp Portali" with lore "&6Avventuratevi nel &cNether & End!" to close then run "Warp Portali"
        format slot 21 of player with diamond pickaxe named "&b&lWarp Enchant & Fabbro" with lore "&dIncanta Armi, Armature e Picconi." to close then run "Warp Enchant"
        format slot 23 of player with pink wool named "&e&lWarp Parkour" with lore "&aCompleta tutti i parkours con diverse difficolta,vincerai fantastici premi!!" to be unstealable
        format slot 38 of player with coal block named "&a&lWarp Miniera Pubblica" with lore "&aScava e Vendi per ottenere Soldi + Tokens.||&aMiniera NO PVP." to be unstealable
        format slot 39 of player with redstone block named "&c&lWarp MinieraWar" with lore "&aScava e vendi per ottenere Soldi + Tokens||&cPVP Attivo" to be unstealable
        format slot 41 of player with diamond block named "&b&lWarp Miniere VIP" with lore "&4Accesso alle miniere vip||VIP necessario per scavare in queste miniere. &a(&9/Warp VIP&a)" to be unstealable
        format slot 42 of player with diamond named "&9&lWarp VIP" with lore "&6Acquista il VIP per avere &7comandi e vantaggi unici nel server!" to be unstealable
        format slot 45 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 46 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 47 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 48 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 49 of player with red glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 50 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 51 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 52 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 53 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
 
Hello guys I've created a warp GUI but when the player clicks on the item the command doesnt run.
This is the code:

Code:
command /warps:
    trigger:
        open chest with 6 row named "&bWarps" to player
        wait 1 tick
        format slot 0 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 1 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 2 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 3 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 4 of player with red glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 5 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 6 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 7 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 8 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 11 of player with diamond sword named "&c&lWarp War" with lore "&bMondo Fazione [30000x30000]||&cPVP Attivo!" to close then run "warp war"
        format slot 13 of player with item frame named "&a&lWarp Info" with lore "&aImpara i &dcomandi &ae le &6meccaniche &adel server" to close then run "warp info"
        format slot 15 of player with obsidian named "&d&lWarp Portali" with lore "&6Avventuratevi nel &cNether & End!" to close then run "Warp Portali"
        format slot 21 of player with diamond pickaxe named "&b&lWarp Enchant & Fabbro" with lore "&dIncanta Armi, Armature e Picconi." to close then run "Warp Enchant"
        format slot 23 of player with pink wool named "&e&lWarp Parkour" with lore "&aCompleta tutti i parkours con diverse difficolta,vincerai fantastici premi!!" to be unstealable
        format slot 38 of player with coal block named "&a&lWarp Miniera Pubblica" with lore "&aScava e Vendi per ottenere Soldi + Tokens.||&aMiniera NO PVP." to be unstealable
        format slot 39 of player with redstone block named "&c&lWarp MinieraWar" with lore "&aScava e vendi per ottenere Soldi + Tokens||&cPVP Attivo" to be unstealable
        format slot 41 of player with diamond block named "&b&lWarp Miniere VIP" with lore "&4Accesso alle miniere vip||VIP necessario per scavare in queste miniere. &a(&9/Warp VIP&a)" to be unstealable
        format slot 42 of player with diamond named "&9&lWarp VIP" with lore "&6Acquista il VIP per avere &7comandi e vantaggi unici nel server!" to be unstealable
        format slot 45 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 46 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 47 of player with light green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 48 of player with blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 49 of player with red glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 50 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 51 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 52 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to be unstealable
        format slot 53 of player with green glass pane named "&b&lGalactic&a&lFuture" to be unstealable
I do not recommend that you use the SkQuery GUI. Instead, use TuSKe GUIs, since they are free of errors.

code_language.skript:
command /warps:
    trigger:
        open chest with 6 row named "&bWarps" to player
        wait 1 tick
        format a gui slot 0 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 1 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 2 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 3 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 4 of player with red glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 5 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 6 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 7 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 8 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 11 of player with diamond sword named "&c&lWarp War" with lore "&bMondo Fazione [30000x30000]||&cPVP Attivo!" to close:
            player command "warp war"
        format a gui slot 13 of player with item frame named "&a&lWarp Info" with lore "&aImpara i &dcomandi &ae le &6meccaniche &adel server" to close:
            player command "warp info"
        format a gui slot 15 of player with obsidian named "&d&lWarp Portali" with lore "&6Avventuratevi nel &cNether & End!" to close:
            player command "Warp Portali"
        format a gui slot 21 of player with diamond pickaxe named "&b&lWarp Enchant & Fabbro" with lore "&dIncanta Armi, Armature e Picconi." to close:
            player command "Warp Enchant"
        format a gui slot 23 of player with pink wool named "&e&lWarp Parkour" with lore "&aCompleta tutti i parkours con diverse difficolta,vincerai fantastici premi!!" to do nothing
        format a gui slot 38 of player with coal block named "&a&lWarp Miniera Pubblica" with lore "&aScava e Vendi per ottenere Soldi + Tokens.||&aMiniera NO PVP." to do nothing
        format a gui slot 39 of player with redstone block named "&c&lWarp MinieraWar" with lore "&aScava e vendi per ottenere Soldi + Tokens||&cPVP Attivo" to do nothing
        format a gui slot 41 of player with diamond block named "&b&lWarp Miniere VIP" with lore "&4Accesso alle miniere vip||VIP necessario per scavare in queste miniere. &a(&9/Warp VIP&a)" to do nothing
        format a gui slot 42 of player with diamond named "&9&lWarp VIP" with lore "&6Acquista il VIP per avere &7comandi e vantaggi unici nel server!" to do nothing
        format a gui slot 45 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 46 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 47 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 48 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 49 of player with red glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 50 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 51 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 52 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 53 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
[doublepost=1564098384,1564098258][/doublepost]Also, I don't know if you realized that in your code, in lines you put "to be unstealable" when (from what I see) a command should go.
For example:
upload_2019-7-25_19-46-18.png
 
Off-Topic: Please use loops when you want to decorate your things with useless items that just have the same name...

Example
Code:
format a gui slot 0 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 1 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 2 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 3 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 4 of player with red glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 5 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 6 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 7 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 8 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing

Loop 9 times, set slot loop-value - 1 and boom
 
Off-Topic: Please use loops when you want to decorate your things with useless items that just have the same name...

Example
Code:
format a gui slot 0 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 1 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 2 of player with green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 3 of player with light blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 4 of player with red glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 5 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 6 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 7 of player with blue glass pane named "&b&lGalactic&a&lFuture" to do nothing
        format a gui slot 8 of player with light green glass pane named "&b&lGalactic&a&lFuture" to do nothing

Loop 9 times, set slot loop-value - 1 and boom
I don't know if you noticed that each crystal is "blue-green-blue-red". I think that is the reason why this guy didn't make the code that way.
 
Status
Not open for further replies.