Mechanic

setHealth

Sets the target's health

Aliases

setHp

Configuration Fields (1)

NameTypeDefaultDescription
amount
a
PlaceholderFloat1The health value to set on the target

Examples & Notes

Examples

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

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

Universal Mechanic Options

Author:
Ashijin
Community-maintained documentation for the Mythic plugin ecosystem.