How do I create a HUD?

Started by Ironcraft Animations on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I create a HUD?
Sun, 11/03/2019 - 01:22 (edited)

 

I want to create a HUD But I don't know how to do it, In the Comments please say how to Create a HUD step by step (But let it be from Mcreator 1.9.1)

Edited by Ironcraft Animations on Sun, 11/03/2019 - 01:22
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I haven't played around with…
Sat, 11/02/2019 - 03:37

I haven't played around with HUD's much, but I believe you create an "Overlay" mod element. :) Hope you can figure the rest out, because that's all I know XD

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
AHHHHH Overlay is to create…
Sat, 11/02/2019 - 03:55

AHHHHH Overlay is to create HUD!

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  ¿But how do I get…
Sat, 11/02/2019 - 04:09

 

¿But how do I get activated when I have a suit on and when I have an item in my hand?

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  I want the hand to…
Sat, 11/02/2019 - 19:47

 

I want the hand to disappear when the Overlay is activated (Image please)

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That isn't so easy to do…
Mon, 11/04/2019 - 02:08

That isn't so easy to do. You can only do that through coding. Pretty advanced coding as well I believe.

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fun fact - if you go into…
Sun, 11/10/2019 - 07:38

Fun fact - if you go into the text based editor and look at the general structure of it and create more then one overlay with small changes, you can look for the changes and compare them to a blank "control sample" overlay that has nothing in it,
to understand how things are added to the overlay in the code itself ;)

Its hard but once you kinda understand the general structure, you can learn off it!
and use it to insert values into areas they should not be ;)

like for instance, inserting an item id slot value from the player entity via a gui's bit of code, into a text display of an overlay, to display a really strange item id value as text!

lol!

You will have a lot of fun with this, who knows,
pehaps you will figure out how to make a health bar display with images via looking at the code of other mods!
 

the java format is the same with other mods!!!

use 7 Zip or something to view the contents of a jar file of a random non Mcreator mod

and look for some kind of HUD - Overlay - GUI
that has a health bar in it!
 

 

then just copy and paste, learn off, edit and add stuff to your code via the code of that mod's files ;)

 

its really cool and i really recommend messing around with it.

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for instance,    i made a…
Sun, 11/10/2019 - 07:39

for instance, 

 

i made a modeled 3D eatable food item of a tomato that has an ore table for other mod support and all!

but its eating effects are missing textures lmao...

but it still works :P