Get and Set max health of entity

Started by Silverslayer547 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get and Set max health of entity

I am trying to create a potion effect that slowly drains the max health of the player up until 5 hearts, but I can't seem to access the max health of the player/entity. Is there a possible way to do this, or will I have to rethink the effect of this potion?