need help with opening player gui at spawn

Started by Ashores on Sun, 04/17/2022 - 22:04

Topic category: Help with modding (Java Edition)

Last seen on 00:05, 18. Jun 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
need help with opening player gui at spawn
Sun, 04/17/2022 - 22:04

so i am trying to make a procedure to open a welcome GUI that i made, but how would the GUI open for the player when they spawn in? if you can help me with this much thanks :)

Last seen on 15:54, 5. Jun 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Create a new procedure andā€¦
Sun, 05/01/2022 - 09:20

Create a new procedure and select in the trigger "when a player join the world". Add the code "open screen for envent/target entity from xyz GUI : [your custom gui]"

If you want the GUI open only the first time a player join, create a number variable that increase of 1 when a player join the world and say in your procedure : "if [your variable] = 1, open screen..."