Custom Health

Started by ImDaMilan on Sat, 07/31/2021 - 20:01

Topic category: Help with MCreator software

Last seen on 19:51, 22. Sep 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Health
Sat, 07/31/2021 - 20:09 (edited)

I'm working on a mod that has custom stats like strenght, damage, etc. that make a calculation on how much custom damage it would deal, but I don't know a way do make custom health, similar to the one on Hypixel Skyblock. I want to see how to make a custom health stat, that players can have and increase, but that also mobs will have, for example, a player would start out with 100 health, and an enderman will have, for example, 150 health, zombie will have 50 health, and so on, and weapons would deal damage based on that health, not the normal one. For example, a diamond sword, without any enchants or anything, would deal 25 health, and with enchants, for example (i know, i've said FOR EXAMPLE so many times), 70 health.

 

Edited by ImDaMilan on Sat, 07/31/2021 - 20:09
Last seen on 10:46, 15. Sep 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you can use the health boost…
Tue, 08/10/2021 - 13:01

you can use the health boost effect, which increases max health.

only problem though is that each level increases strictly increases max health by 2 hearts (4 health)