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

Started by Enderdragonspy on Wed, 10/28/2020 - 11:17

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make a Gui that opens when a player loads into the world the first time
Wed, 10/28/2020 - 11:17

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 03:36, 18. Sep 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 10:01, 31. Aug 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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 10:01, 31. Aug 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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 14:43, 18. Dec 2020
Joined Jun 2020
Points:

User statistics:

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

It lets you search for blocks.

Last seen on 00:35, 18. Sep 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 05:38, 18. Sep 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:35, 18. Sep 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 05:38, 18. Sep 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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