Jump to content

gui


KILLERSCHEP

Recommended Posts

I don't know how to make a second slot in my gui.

This is what I have:

command /menu:
  trigger:
    open virtual chest inventory with size 3 named "Menu" to player
    format gui slot 0 of player with egg named "&aSpawn egg-_-" to run:
      wait 5 seconds
      teleport player to location(-888, 70, 585)
      broadcast "teleporting you to spawn"
  trigger:
    open virtual chest inventory with size 3 named "Menu" to player
    format gui slot 1 of player with enderchest named "&asethome" to run:
     set {home.%uuid of player%} to location of block at location of player
     send "Set home to: %{home.%uuid of player%}%" to player

I get the error that it doesn't understand slot 1

Edited by KILLERSCHEP
Link to comment
Share on other sites

Remove the 2nd trigger:

Vertex Minehut Community. Discord, Forums Club. We make games. View more info on our most recent game HERE

image.png.14ed1ea60b5d4a3fc8d76bc712d3c2f5.png       image.png.f999a5fc4fc73f126ebb33d5da655ee7.png

Creating unique games with cool textures since 3/21/2021

Currently working on: SkTuber; Youtubers Life OMG in mc, and VertexGens; Unique gen server with less afking

Looking for developers. Contact Colton#4708

Leave a reaction such as a trophy or a heart if I helped you!

Link to comment
Share on other sites

On 4/6/2021 at 8:24 PM, KILLERSCHEP said:

    open virtual chest inventory with size 3 named "Menu" to player
    format gui slot 0 of player with egg named "&aSpawn egg-_-" to run:
      wait 5 seconds
      teleport player to location(-888, 70, 585)
      broadcast "teleporting you to spawn"
  trigger:
    open virtual chest inventory with size 3 named "Menu" to player
    format gui slot 1 of player with enderchest named "&asethome" to run:
     set {home.%uuid of player%} to location of block at location of player
     send "Set home to: %{home.%uuid of player%}%" to player

You are making 2 different menu's with tthe same name but it is actually creating 2 different gui's. Try this out and tell me how it goes.

command /menu:
  trigger:
    open virtual chest inventory with size 3 named "Menu" to player
    format gui slot 0 of player with egg named "&aSpawn egg-_-" to run:
      wait 5 seconds
      teleport player to location(-888, 70, 585)
      broadcast "teleporting you to spawn"
    format gui slot 1 of player with enderchest named "&asethome" to run:
     set {home.%uuid of player%} to location of block at location of player
     send "Set home to: %{home.%uuid of player%}%" to player

 

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

For some GUIs, you will need Skript addons. I suggest SkQuery or TusKe.

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...