1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Can't understand this condition/effect: format slot 14 of player with barrier named "Leave" to close

Discussion in 'Skript' started by Rares1337, Feb 1, 2021.

Thread Status:
Not open for further replies.
  1. Rares1337

    Rares1337 New Member

    Joined:
    Jan 27, 2021
    Messages:
    6
    Likes Received:
    0
    I have made this skript, that is basically a gui so my players can join bedwars, skywars etc
    It gives me this huge error,
    Code (Text):
    1.  
    2. [09:37:30 ERROR]: Could not load the english aliases config: plugins/Skript/aliases-english.sk (No such file or directory)
    3. [09:37:30 ERROR]: indentation error: expected 1 tab, but found 2 tabs (gui.sk, line 11: make player execute "9863969828"')
    4. [09:37:30 ERROR]: Can't understand this condition/effect: format slot 12 of player with diamond sword named "Duels" to close then run "say I wanna duel, do /duel %player% to duel me!" (gui.sk, line 5: format slot 12 of player with diamond sword named "Duels" to close then run "say I wanna duel, do /duel %player% to duel me!"')
    5. [09:37:31 ERROR]: Can't understand this condition/effect: format slot 13 of player with bed named "BedWars" to close then run "6345031976" (gui.sk, line 6: format slot 13 of player with bed named "BedWars" to close then run "6345031976"')
    6. [09:37:31 ERROR]: Can't understand this condition/effect: format slot 14 of player with bow named "SkyWars" to close then run "2624272824" (gui.sk, line 7: format slot 14 of player with bow named "SkyWars" to close then run "2624272824"')
    7. [09:37:31 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please create an alias for '345' (COMPASS) in aliases-english.sk or the script's aliases section and use that instead. (gui.sk, line 9: on rightclick with 345:')
    8. [09:37:31 ERROR]: Can't compare 'if evnt-world' with a text (gui.sk, line 10: if evnt-world is "world"
    9. [09:37:31 ERROR]: Can't understand this condition/effect: format slot 12 of player with bed named "5 teams out of 1 player each" to close then run "bw join 5x1" (gui.sk, line 16: format slot 12 of player with bed named "5 teams out of 1 player each" to close then run "bw join 5x1"')
    10. [09:37:31 ERROR]: Can't understand this condition/effect: format slot 13 of player with bed named "BedWars" to close then run "6345031976" (gui.sk, line 17: format slot 13 of player with bed named "BedWars" to close then run "6345031976"')
    11. [09:37:31 ERROR]: Can't understand this condition/effect: format slot 14 of player with barrier named "Leave" to close then run "9863969828" (gui.sk, line 18: format slot 14 of player with barrier named "Leave" to close then run "9863969828"')
    12.  
    My skript is the following
    Code (Text):
    1.  
    2. command /9863969828:
    3.    trigger:
    4.        open chest with 3 rows named "Games" to player
    5.        format slot 12 of player with diamond sword named "Duels" to close then run "say I wanna duel, do /duel %player% to duel me!"
    6.        format slot 13 of player with bed named "BedWars" to close then run "6345031976"
    7.        format slot 14 of player with bow named "SkyWars" to close then run "2624272824"
    8.  
    9. on rightclick with 345:
    10.    if evnt-world is "world"
    11.        make player execute "9863969828"
    12.      
    13. command /6345031976:
    14.    trigger:
    15.        open chest with 3 rows named "BedWars" to player
    16.        format slot 12 of player with bed named "5 teams out of 1 player each" to close then run "bw join 5x1"
    17.        format slot 13 of player with bed named "BedWars" to close then run "6345031976"
    18.        format slot 14 of player with barrier named "Leave" to close then run "9863969828"
    19.  
     
  2. Marc

    Marc Active Member

    Joined:
    Nov 27, 2020
    Messages:
    94
    Likes Received:
    0
    Code (Text):
    1. command /9863969828:
    2.    trigger:
    3.        open chest with 3 rows named "Games" to player
    4.        format slot 12 of player with diamond sword named "Duels" to close then run [make player execute command "/duel %player% (<- this wont work btw)  "]
    5.        format slot 13 of player with bed named "BedWars" to close then run [make player execute command "/6345031976"]
    6.        format slot 14 of player with bow named "SkyWars" to close then run [make player execute command "/2624272824"]
    7.  
    8. on right click:
    9.     if name of player's held item is "345"
    10.        if name of world "world":
    11.            make player execute command "/9863969828"
    12.    
    13. command /6345031976:
    14.    trigger:
    15.        open chest with 3 rows named "BedWars" to player
    16.        format slot 12 of player with bed named "5 teams out of 1 player each" to close then run [make player execute command "/bw join 5x1"]
    17.        format slot 13 of player with bed named "BedWars" to close then run [make player execute command "/6345031976"]
    18.        format slot 14 of player with barrier named "Leave" to close then run [make player execute command "/9863969828"]
    I suggest you Learn SkQuery and TuSKe, as when using them together makes it way easier for gui's
    and Just learn skript overall
     
  3. sql

    sql Member

    Joined:
    Feb 1, 2021
    Messages:
    1
    Likes Received:
    1
    In my opinion you should use vanilla GUIs. They are faster.

    example:
    Code (Text):
    1. set {_i} to chest inventory with 3 rows
    2. set slot 0 of {_i} to stone named "Stone"
    3. open {_i} to player
     
    • Like Like x 1
  4. Rares1337

    Rares1337 New Member

    Joined:
    Jan 27, 2021
    Messages:
    6
    Likes Received:
    0
    Thanks! It really helped me a lot!:emoji_grinning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...