How do I make a Gui that opens when a player loads into the world the first time

Started by Enderdragonspy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a Gui that opens when a player loads into the world the first time

So I am making  a mod and want to make a Gui that opens when a player joins the world for the first time only I figured out how to add a Gui that opens upon entry to a world but not how to on the first time How could i do this?

Try creating a global…
Wed, 10/28/2020 - 15:04

Try creating a global variable that is set to 1 the first time the player joins the world and then the GUI only opens if the variable is 0. Obviously you'll need to make sure the GUI opens before the variable is changed, or else the GUI would never open. Then make it not open if the variable is 1.

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Logic PLAYER_PERSISTENT…
Wed, 10/28/2020 - 15:33

Logic PLAYER_PERSISTENT variable would be enough.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If I may ask where could I…
Wed, 10/28/2020 - 16:43

If I may ask where could I find logic PLAYER_PERSISTENT?

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use global trigger "on world…
Wed, 10/28/2020 - 18:07

Use global trigger "on world loaded" - open gui. then you could use a variable to make it so the menu only opens once.

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
where could I find logic…
Fri, 10/30/2020 - 05:09

where could I find logic PLAYER_PERSISTENT?

Man, just update your MCreator to 2020.4 or 2020.5.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ye im doing that now lol I…
Mon, 11/02/2020 - 19:18

ye im doing that now lol I dident relise a new version was out

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It lets you search for…
Mon, 11/23/2020 - 20:17

It lets you search for blocks.

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so i tried making this, and…
Fri, 08/27/2021 - 23:31

so i tried making this, and i made this

if: get local:WorldLoadedbefore = 0

do: Open screen for event/target entity pass location... gui: kitgui

set local WorldLoadedBefore to 1

and its not working, how do i fix this

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
don't use local variables…
Sat, 08/28/2021 - 00:12

don't use local variables smh, they don't get saved in this case

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
its just that i cant find…
Sat, 08/28/2021 - 01:57

its just that i cant find the global variables

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i think you might not have…
Sat, 08/28/2021 - 07:50

i think you might not have been looking around the app well enough, there's literally a "Variables" tab on the workspace where you can create global variables and then in procedure editor a "Custom Variables" category on the sidebar which contains procedures for getting & setting both global & local variables

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is very helpful thanks!
Thu, 06/02/2022 - 01:02

This is very helpful thanks!