How do I add a new component to a vanilla GUI? Is it even possible?

Started by The1GiantWalrus on Tue, 09/03/2019 - 09:27

Topic category: Help with MCreator software

Last seen on 16:03, 19. Oct 2019
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I add a new component to a vanilla GUI? Is it even possible?
Tue, 09/03/2019 - 09:27

I want to add a new button to the death screen GUI. You know, the screen that shows the death message and all that?

Anyway, is this possible to do? And, how? If not on the death screen, then is it possible at all?

Last seen on 15:36, 30. Sep 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can do this, but will…
Tue, 09/03/2019 - 11:10

You can do this, but will make your mod incompatible with other mods that do this. Example for the code for this can be found in our Minecraft Link main screen overlay code: https://github.com/Pylo/MinecraftLink/blob/master/src/main/java/net/mcreator/minecraft/link/gui/ScreenEventHandler.java

Last seen on 16:03, 19. Oct 2019
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Where do I put that code in…
Tue, 09/03/2019 - 12:13

Where do I put that code in and how do I make it show on the death screen?

Last seen on 15:36, 30. Sep 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You will need to detect…
Tue, 09/03/2019 - 17:46

You will need to detect death screen render event and build from there. You will need some Java knowledge for this, though.