# SetEntityMaxHealth

TIP

  • setEntityMaxHealth(<entity_ID>, <health>)
  • Sets the maximum health of an entity.

# Parameters

  • <entity_ID> The entity ID as int
  • <health> The maximum health to set to the entity as int or float

# Example

1: $id$ = spawnEntity("Chicken", $world$, $x$, $y$, $z$)
2: setEntityMaxHealth($id$, 40)