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

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

Rares1337

New Member
Jan 27, 2021
6
0
1
24
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:
[09:37:30 ERROR]: Could not load the english aliases config: plugins/Skript/aliases-english.sk (No such file or directory)
[09:37:30 ERROR]: indentation error: expected 1 tab, but found 2 tabs (gui.sk, line 11: make player execute "9863969828"')
[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!"')
[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"')
[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"')
[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:')
[09:37:31 ERROR]: Can't compare 'if evnt-world' with a text (gui.sk, line 10: if evnt-world is "world"
[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"')
[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"')
[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"')
My skript is the following
Code:
command /9863969828:
   trigger:
       open chest with 3 rows named "Games" to player
       format slot 12 of player with diamond sword named "Duels" to close then run "say I wanna duel, do /duel %player% to duel me!"
       format slot 13 of player with bed named "BedWars" to close then run "6345031976"
       format slot 14 of player with bow named "SkyWars" to close then run "2624272824"

on rightclick with 345:
   if evnt-world is "world"
       make player execute "9863969828"
      
command /6345031976:
   trigger:
       open chest with 3 rows named "BedWars" to player
       format slot 12 of player with bed named "5 teams out of 1 player each" to close then run "bw join 5x1"
       format slot 13 of player with bed named "BedWars" to close then run "6345031976"
       format slot 14 of player with barrier named "Leave" to close then run "9863969828"
 
Code:
command /9863969828:
   trigger:
       open chest with 3 rows named "Games" to player
       format slot 12 of player with diamond sword named "Duels" to close then run [make player execute command "/duel %player% (<- this wont work btw)  "]
       format slot 13 of player with bed named "BedWars" to close then run [make player execute command "/6345031976"]
       format slot 14 of player with bow named "SkyWars" to close then run [make player execute command "/2624272824"]
 
on right click:
    if name of player's held item is "345"
       if name of world "world":
           make player execute command "/9863969828"
   
command /6345031976:
   trigger:
       open chest with 3 rows named "BedWars" to player
       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"]
       format slot 13 of player with bed named "BedWars" to close then run [make player execute command "/6345031976"]
       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
 
In my opinion you should use vanilla GUIs. They are faster.

example:
Code:
set {_i} to chest inventory with 3 rows
set slot 0 of {_i} to stone named "Stone"
open {_i} to player
 
  • Like
Reactions: Marc
Status
Not open for further replies.