Jump to content

[1.8.9] Mob Health Capped at 1024?


HappleAcks

Recommended Posts

Hi,

 

So I just noticed when testing out a new mob of mine, that the health is capped at 1024. When I enter this line:

this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(2000F);

 

If I put the number above 1024 it won't go higher (I tested with print-outs of the health) but it works at lesser values. In 1.7 the health like this was not capped, so is there something new in 1.8 I'm supposed to do to get around this because it seems obsurd that the health would be capped at such a low value now.

 

This points to saying the max value is 1024 in the SharedMonsterAttribute class:

(new RangedAttribute((IAttribute)null, "generic.maxHealth", 20.0D, 0.0D, 1024.0D)

 

Whereas before it was set to Double.MAX_VALUE which is basically unreachable. I'm aware I can modify damage and whatnot to try to work around the 1024 but this is such a ridiculously low number (especially when damage is 2048) that I'm not sure what to do. Is there a workaround for this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.