Neat (Fabric/Quilt)

Neat (Fabric/Quilt)

112k Downloads

Dynamic Max Health

NathZen opened this issue ยท 2 comments

commented

Hello, is it possible to modify the max health of an entity for above 1024?

I was using Orderly, but it was for 1.16.5 and it said it was ported from Neat. But now I'm moving to 1.19.2, which is Orderly not supported again, and I use Neat instead because this mod looks very useful. But the problem is, the health bar is capped at 1024.

Is it possible to set the max health into more than 1024?
Or maybe can you limit the max HP into 1024 instead? The bar is overflowing ๐Ÿ˜†

Base Profile Screenshot 2022 11 26 - 08 12 28 11

Base Profile Screenshot 2022 11 26 - 08 12 53 10

Thank you

commented

the maximum health an entity can have in vanilla is 1024, I'm not sure how you're getting this to happen

commented

Additionally, Neat does query the entity's max health properly (it's not hardcoded):

float healthHalfSize = halfSize * (living.getHealth() / living.getMaxHealth());

In this case an entity somehow has a current health higher than its max health, though I guess we can handle that better.