Mob health capped at 1024

Published by indyjames on
Status
Works as designed
Issue description

I'm making a mob with 2500 hp and it's health was capped at 1024, so naturally I decided to go and change it in the code editor.

I set it to 2500 in the code and when I go to test it has 1024 health, but the code still says 2500.

Any help?

Issue comments

You might be able to alter it with Reflection Java system, but you will need to get some Java knowledge to do this, plus it is hacky and can lead to unpredicted results as the mob system seems to be designed with 1024 being a max value.

You might be able to alter it with Reflection Java system, but you will need to get some Java knowledge to do this, plus it is hacky and can lead to unpredicted results as the mob system seems to be designed with 1024 being a max value.

This is how other mods do it, but this is not really a correct solution.

If it's a limit in Minecraft, then they probably have 1024 health, even if code says they have more

Or maybe they have multiple stages (different mobs for each stage)