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!

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

Solved Can someone make a skript gui where you can select server

Discussion in 'Requests' started by NickyNoo2011, May 23, 2021.

  1. NickyNoo2011

    NickyNoo2011 New Member

    Joined:
    Sep 1, 2020
    Messages:
    7
    Likes Received:
    0
    Can someone make a skript gui where you can open a gui and press servers then press a game like skyblock and then it will teleport you to a world. This is my code so far:

    Code (Text):
    1. command /Menu:
    2.  trigger:
    3.   open virtual chest inventory with 1 rows named "&aMenu" to player
    4.   format gui slot 0 of player with black stained glass pane named " " to do nothing
    5.   format gui slot 1 of player with black stained glass pane named " " to do nothing
    6.   format gui slot 2 of player with black stained glass pane named " " to do nothing
    7.   format gui slot 3 of player with black stained glass pane named " " to do nothing
    8.   format gui slot 4 of player with black concrete named "&3Servers" to do nothing
    9.   format gui slot 5 of player with black stained glass pane named " " to do nothing
    10.   format gui slot 6 of player with black stained glass pane named " " to do nothing
    11.   format gui slot 7 of player with black stained glass pane named " " to do nothing
    12.   format gui slot 8 of player with barrier named "&cClose the Menu" to close
    13.  
    14. on join:
    15.     give player 1 book named "&4Menu"
    16.  
    17. on rightclick:
    18.     player is holding book named "&4Menu":
    19.         cancel event
    20.         make player execute command "/menu"
    21.  
    22.  


     
    #1 NickyNoo2011, May 23, 2021
    Last edited: May 24, 2021
  2. Best Answer:
    Post #10 by Minecoll_YT, May 27, 2021
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    40
    1. Don't use SkQuery for GUIs use TuSKe or even better Vanilla GUIs
    2. Just teleport the player to a location you set, e.g.

    Code (Text):
    1. command /setwarp [<text>]:
    2.   trigger:
    3.     if arg-1 is set:
    4.       send "Warp %arg-1% set"
    5.       set {warp::%arg-1%} to player's location
    6.     else:
    7.       send "Enter a warp name"
    8.  
    9. command /warp [<text>]:
    10.   trigger:
    11.     if {warp::%arg-1%} is set:
    12.       send "teleported to %arg-1%"
    13.       teleport player to {warp::%arg-1%}
    14.     else:
    15.       send "Enter a valid warp name"
    3. Replace
    Code (Text):
    1. format gui slot 0
    2. format gui slot 1
    3. format gui slot 2
    4. format gui slot 3
    5. ...
    with
    Code (Text):
    1. format gui slot (integers from 0 to 3)
    but please use tuske or vanilla this time
     
  4. NickyNoo2011

    NickyNoo2011 New Member

    Joined:
    Sep 1, 2020
    Messages:
    7
    Likes Received:
    0
    That makes no senece + i want it as a gui so I can add other stuff like multiple hubs
     
  5. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    40
    ... it makes sense. The only thing left to do is creating a GUI via TuSKe and then letting the player execute the command /warp SkyBlock or whatever
     
  6. NickyNoo2011

    NickyNoo2011 New Member

    Joined:
    Sep 1, 2020
    Messages:
    7
    Likes Received:
    0
    But I want it as a gui so a player can rightclick an item then a menu will come up then they can press server or hub then select witch serer or hub they want to join. And I dont know how to make the gui.
     
  7. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    40
    You already made one, but with the wrong addon. Now just google "how to make a gui with tuske" or "skript vanilla guis", is it that difficult?
     
  8. NickyNoo2011

    NickyNoo2011 New Member

    Joined:
    Sep 1, 2020
    Messages:
    7
    Likes Received:
    0
    I've been searching it up and I cant find it so im asking people on here to make me the gui
    Also using Tuske breaks the guis
     
    #7 NickyNoo2011, May 26, 2021
    Last edited: May 26, 2021
  9. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    40
    I'm pretty sure no one will or can help you with SkQuery GUIs. This is a TuSKe GUI, I'm not making you a SkQuery GUI.

    Code (Text):
    1. command /servers [<text>]:
    2.   trigger:
    3.     open virtual chest inventory with size 1 named "Selector" to player
    4.     format gui slot (integers from 0 to 8) with gray stained glass pane named "&0"
    5.     format gui slot 1 of player with grass block named "SkyBlock" to close then execute player command "warp SkyBlock" with permission ""
    6.     format gui slot 3 of player with grass block named "BedWars" to close then execute player command "warp BedWars" with permission ""
    7.     format gui slot 6 of player with grass block named "CityBuild" to close then execute player command "warp CityBuild" with permission ""
     
  10. NickyNoo2011

    NickyNoo2011 New Member

    Joined:
    Sep 1, 2020
    Messages:
    7
    Likes Received:
    0
    I Want a gui where you can press servers or lobbys and then it will do what you said above!
     
  11. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    40
    Code (Text):
    1. command /servers [<text>]:
    2.   trigger:
    3.     open virtual chest inventory with size 1 named "Selector" to player
    4.     if arg-1 is "lobbys":
    5.       format gui slot 1 of player with gold block named "Lobby 1" to close then execute player command "warp lobby1" with permission ""
    6.       format gui slot 6 of player with gold block named "Lobvby 2" to close then execute player command "warp lobby2" with permission ""
    7.     else if arg-1 is "servers":
    8.       format gui slot (integers from 0 to 8) with gray stained glass pane named "&0"
    9.       format gui slot 1 of player with grass block named "SkyBlock" to close then execute player command "warp SkyBlock" with permission ""
    10.       format gui slot 3 of player with grass block named "BedWars" to close then execute player command "warp BedWars" with permission ""
    11.       format gui slot 6 of player with grass block named "CityBuild" to close then execute player command "warp CityBuild" with permission ""
    12.     else:
    13.       format gui slot 1 of player with dirt named "Lobbys" to close then execute player command "servers lobbys" with permission ""
    14.       format gui slot 6 of player with grass block named "Servers" to close then execute player command "servers servers" with permission ""  
     
  12. NickyNoo2011

    NickyNoo2011 New Member

    Joined:
    Sep 1, 2020
    Messages:
    7
    Likes Received:
    0
    Thank you so much for helping me!!!
     

Share This Page

Loading...