Mechanic: Set Health

Sets the health of the target entity.

Attributes

Attribute Aliases Description Default Value
amount a Amount of health to set to. 1.0


Examples

This example will set the players' health to 6 (3 hearts) when they right-click the mob.

  Skills:
  - sethealth{a=6} @trigger ~onInteract
  - ...

skills/mechanics/sethealth.txt · Last modified: 2020/06/30 21:13 (external edit)