how to make a gui not able to be closed

Started by Biscuit_Blender on

Topic category: Help with modding (Java Edition)

Last seen on 06:42, 21. Apr 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make a gui not able to be closed

i'm trying to make a gui that pops up on screen for a few seconds, but the player can just press escape to close it before its supposed to be closed, how can i make it so it can't be closed by a player?

Last seen on 00:36, 27. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When you are inside of the…
Thu, 03/28/2024 - 13:21

When you are inside of the GUI menu there is a "GUI procedure triggers [Click to expand]" text.

Click on click to expand and there is a trigger triggered when gui is closed.

Click add new one and make it open the same gui when the player closes it.

That's only 1 tick difference so there will be so little period between its opening and closing it might even be seemless.

Last seen on 08:13, 15. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can use variables and…
Thu, 03/28/2024 - 13:50

you can use variables and the wait () ticks block to make it closeable after a amount of time, you can use this to calculate seconds to minecraft ticks (the link is a fork of a codepen project, the original was broken so i made this fork to fix it)