Skip to content
These docs reflect Contracts v0.6.0, the latest release. Older servers may differ.

Player Health

Progress counts only when the player’s health is within the specified bounds.

{
"type": "PlayerHealth",
"minHealth": -1,
"maxHealth": 25
}
Field Type Description
type string Exactly 'PlayerHealth'
minHealth number Minimum player HP (raw HP, NOT a fraction). -1 disables this bound.
maxHealth number Maximum player HP (raw HP, NOT a fraction). -1 disables this bound.
  • Bounds are raw HP, not a percentage: 50 means 50 health points, not 50%. A full-health player is at 100.
  • -1 disables a bound. Set only maxHealth for a “while wounded” rule, or only minHealth for a “while healthy” rule.
  • If both bounds are set, minHealth must not exceed maxHealth.