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 modding (Java Edition)

Last seen on 16:04, 5. Dec 2020
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?

Last seen on 18:23, 31. Jan 2024
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Last seen on 19:46, 3. Mar 2024
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.

Last seen on 16:04, 5. Dec 2020
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?

Last seen on 02:05, 30. May 2021
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.

Last seen on 19:46, 3. Mar 2024
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.

Last seen on 16:04, 5. Dec 2020
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

Last seen on 22:01, 18. Aug 2022
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.

Last seen on 00:27, 14. Jan 2022
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

Last seen on 08:14, 28. Nov 2023
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

Last seen on 00:27, 14. Jan 2022
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

Last seen on 08:14, 28. Nov 2023
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

Last seen on 14:53, 23. Aug 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Keewin,
Sun, 10/17/2021 - 13:45

Keewin,

Press on the "variables tab" on the left side of the screen

Press on "Add new variable" button

Choose player_persistent and number, enter the name for a variable

Last seen on 23:16, 12. Nov 2023
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!