Simple Armor Hud

Simple Armor Hud

78.1k Downloads

Ridable mount health overwites the Armor HUD in version 1.18.1

Scarlaid opened this issue ยท 9 comments

commented

Description
Like the title said
I used both BetterMountHUD and this ArmorHUD mod

Reproduction
Steps to reproduce the bug:

  1. Install both the mod

  2. Ride a horse

  3. You will get the under issue

Screenshots
image

commented

I had some more thoughts about this and here is what you could do to fix this issue:

1. Dynamically adjust the height (y) of your armor hud depending on which bars are visible

On the right side above the hotbar, there can be the player's food, the mount health and the oxygen. All of these bars can be visible or hidden, depending on what the player is currently doing and in which state he is. For example, the oxygen is only visible when the player is underwater. Additionally, the mount health consists of two bars if the mount has more than 20 health (this can be seen in the screenshot above). When Better Mount HUD is installed, the food and mount health can both be visible at the same time, which is not possible in vanilla Minecraft. Now, to actually implement this, you would have to get the height (y) of the upmost bar, and place your armor hud above that bar.

2. Move your armor hud to another place

I don't know if this is an option, but moving your armor hud to another place would be a workaround for issues like this.

Since BetterMountHUD isn't toggleable, I recently changed to SomeOrdinaryTweaks, which has the same function, but toggleable
image
But then again, the ArmorHUD overwrites in front of the mount health instead of behind it
image

Thanks for the fixes, I can only follow the second one by just gonna turn off the MountHUD then

commented

@Scarlaid My reply was actually addressed to the creator of this mod, sorry if that wasn't clear.

commented

oh okay, sorry bout that
I didn't see the tag

commented

just contacted the owner of bettermounthud, will work on a fix as fast as possible!

commented

@legoraft I had some more thoughts about this and here is what you could do to fix this issue:

1. Dynamically adjust the height (y) of your armor hud depending on which bars are visible

On the right side above the hotbar, there can be the player's food, the mount health and the oxygen. All of these bars can be visible or hidden, depending on what the player is currently doing and in which state he is. For example, the oxygen is only visible when the player is underwater. Additionally, the mount health consists of two bars if the mount has more than 20 health (this can be seen in the screenshot above).
When Better Mount HUD is installed, the food and mount health can both be visible at the same time, which is not possible in vanilla Minecraft.
Now, to actually implement this, you would have to get the height (y) of the upmost bar, and place your armor hud above that bar.

2. Move your armor hud to another place

I don't know if this is an option, but moving your armor hud to another place would be a workaround for issues like this.

commented

@Lortseam, thanks for all the help! will try to fix this as soon as possible. Do you know a quick way of checking if any bars are visible or do I have to look at that for myself?

commented

I don't really know what's the best way to do this, you proabably need to create a mixin method for each of the bars and check that by yourself.

commented

As I don't have a lot of time to do a lot of research pn this problem and don't have the experience to fix this quickly, this fix will take some time, but I'll put all the free time I have into this bug report

commented

This issue has been resolved in commit a1e6b02, by adding a config file option for better mount hud