How to create a GUI on GUI item?

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

    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.

jovanmunja

Member
Jul 27, 2017
22
1
0
So, when I right click with a compass on my inventory, the gui shows up. There is an arrow in there.
What I want to do is, when I click that arrow, I want ANOTHER gui to be opened. How can I do that?
Thanks :emoji_slight_smile:

P.S. Don't reply that I need TuSke because I was making a GUI from compass on skript for an hour, I don't want to make it again.
 
[QUOTE = "jovanmunja, post: 28922, member: 4399"] Então, quando clico com o botão direito no compasso no meu inventário, o gui aparece. Há uma flecha ali.
O que eu quero fazer é, quando eu clicar nessa seta, eu quero mais um gui para ser aberto. Como eu posso fazer isso?
obrigado : emoji_slight_smile:

PS: Não responda que eu preciso do TuSke porque eu estava fazendo uma GUI de bússola por uma hora, não quero fazer de novo. [/ QUOTE]

If you do not want Tuske you can use SkQuery but Tuske is way better than SkQuery. Besides Tuske having a smooth GUI and with less problems already SkQuery it has so much lag.
 
Hello there,

Here is what you can do with SkQuery!

code_language.skript:
on right click:
    player is holding a compass
    open chest with 3 rows named "GUI 1" to player
    format slot 0 of player with arrow named "" with lore "CLICK ME" to close then run "skriptgui2 %player%"
    
command /skriptgui2 <player>:
    trigger:
        wait 3 ticks
        open chest with 3 rows named "GUI 2" to player
        format slot 0 of player with paper named "NAME" with lore "LORE" to close then run "COMMAND"

Possibly this could work. The main issue people have, is that it does not open. I have experienced this before. But make sure you have the wait 3 ticks for the second gui! This makes sure the other one closes completely before opening up a new gui.

Happy Skripting,
JTNCrafter
 
Hello there,

Here is what you can do with SkQuery!

code_language.skript:
on right click:
    player is holding a compass
    open chest with 3 rows named "GUI 1" to player
    format slot 0 of player with arrow named "" with lore "CLICK ME" to close then run "skriptgui2 %player%"
   
command /skriptgui2 <player>:
    trigger:
        wait 3 ticks
        open chest with 3 rows named "GUI 2" to player
        format slot 0 of player with paper named "NAME" with lore "LORE" to close then run "COMMAND"

Possibly this could work. The main issue people have, is that it does not open. I have experienced this before. But make sure you have the wait 3 ticks for the second gui! This makes sure the other one closes completely before opening up a new gui.

Happy Skripting,
JTNCrafter
You can take items from skquery guis. it isn't a good solution
 
Status
Not open for further replies.