Playing with a mod that can modify your health, like Difficult Life? It can be a bit annoying when Minecraft doesn’t display your hearts correctly (this happens often after crossing dimensions). The hearts can also be a bit small on high resolution displays, so I lose track of my health very easily.
So here’s a health bar that pops up when you are hurt, and gets out of your face after you have healed! It will always display your correct health, even if a mod has modified it. Of course, it’s highly configurable. Adjust the size of the bar and text independently, or get rid of them entirely. You can even make the bar display when you are not hurt, if you want to.
The bar also begins shaking as your health gets low, giving you an additional warning that you might want to run for it. This can be tweaked or disabled entirely.
Perhaps not the best image, since this is a 480p window (GUI scale auto, I think). The bar is a bit higher up and larger compared to hearts on larger windows and different GUI scales. Again, you can adjust the scale and positioning to your liking.