How To Add Custom Hearts/Heart Overlay

Started by VQuip on Sun, 08/07/2022 - 15:44

Topic category: Help with modding (Java Edition)

Last seen on 16:33, 28. Sep 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How To Add Custom Hearts/Heart Overlay
Sun, 08/07/2022 - 15:44

I am making a mod with different types of toxins/poisons and I want to add custom heart textures/overlay to the player when the effect is applied but I do not know how to.

Thanks in Advance

Last seen on 23:14, 2. Oct 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Try putting hearts images in…
Sun, 08/07/2022 - 19:52

Try putting hearts images in an overlay in a way that will cover the Minecraft hearts.

Make each half heart appear and disappear based on the amount of hp you have.

Give it a condition if you have the effect you want, then it returns true and shows it to the players covering the hearts.

Last seen on 10:37, 12. Sep 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Overlays dont seem to…
Tue, 08/09/2022 - 12:45

Overlays dont seem to respect the clients guy scale, they dont keep their relative position. I dont have any Idea to work around this

Last seen on 02:24, 1. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Unless they make a new mod…
Fri, 08/12/2022 - 00:19

Unless they make a new mod element for new types of damage/hearts, I don't think its possible to create a new heart texture without using code. You would have to change the Minecraft health elements.

Last seen on 23:14, 2. Oct 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It's offsetted because there…
Fri, 08/12/2022 - 10:41

It's offsetted because there is a bug in Mcreator. Apparently, this only works if your GUI scale is the default zoomed in scale.