Jump to content

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 post
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 post
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


Date format: [DD/MM/YYYY]

Minehut Status:

- First join: March 29th, 2020

- Member: (29/03/2020 --> 07/04/2021)

- VIP: (07/04/2021 --> Current)

 

If you have any questions contact my discord!
BanditEagle#2481

Link to post
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...