Make a mob with over 100 health?

Started by 9Tea on Fri, 12/30/2016 - 00:37

Topic category: Help with MCreator modding

Last seen on 02:46, 3. May 2018
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Make a mob with over 100 health?
Fri, 12/30/2016 - 00:37

in the current version of the mob creation screen, if i try and go ove 100 health it just resets me back to 5, any way to fix this?

Last seen on 23:21, 14. Apr 2019
Joined Jul 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
yeah, you need to code it in.
Fri, 12/30/2016 - 01:10

yeah, you need to code it in.  for ex:

this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(399D);

this line with the number 399 makes my mob have 500 health

play around with numbers until you get what you want.  Only edit this line.

Last seen on 02:46, 3. May 2018
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:yeah, you need to code it in.
Fri, 12/30/2016 - 01:13

@#1 can you change the max health of single mosnter with this? or do you know another method?

Last seen on 23:21, 14. Apr 2019
Joined Jul 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:RE:yeah, you need to code it in.
Fri, 12/30/2016 - 03:15

@#1.1 this changes the mob's max health, Hmm, what version are you using? I'm using 1.7.10.  The format of the code is probably the same.  Do you mind posting the code?

Last seen on 19:38, 5. Oct 2018
Joined Apr 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You can edit mobs health at
Fri, 12/30/2016 - 18:11

You can edit mobs health at the code.