how can i add a gui when a player dies in mcreator?. version 2023.4

Started by mizuku on

Topic category: Help with MCreator software

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how can i add a gui when a player dies in mcreator?. version 2023.4

im not that good with code so i dont actually know how to detect if a player dies

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a new procedure that…
Thu, 09/19/2024 - 21:51

Create a new procedure that has a global trigger of on player death and add the open gui block.

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If the gui closes itself…
Thu, 09/26/2024 - 00:08

If the gui closes itself after opening when the player dies. Cancel the global event that triggered the procedure, ie stop the player dying. Then check when the player closes the gui and kill them manually.

Or the gui might open after the player respawns. If you want that then no need.