How to add more than 1024 hp to entity?

Started by vlonabuser on

Topic category: Help with modding (Java Edition)

Last seen on 15:46, 28. Jan 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add more than 1024 hp to entity?

I tred to add more hp by on initial spawn procedure, but it doesnt seem to be working

Last seen on 15:21, 16. Oct 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
From what i know, minecraft…
Tue, 08/02/2022 - 14:30

From what i know, minecraft limits max health to 1024 hp. 

Last seen on 01:56, 16. Jan 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add another mod called …
Tue, 08/30/2022 - 20:18

Add another mod called "Attributes Fix". It will allow you to go higher than 1024 to up 64K i believe?

But that's only in-game, MCreator will still only allow you to 1024. So spawn your mob with the /summon command and set its HP to whatever you want.

 

Ex: /summon creeper ~ ~ ~ {Health:30000,Attributes:[{Name:"generic.maxHealth",Base:30000b}]}
I think this is right.