below_health_percent

Passes when the entity's health is at or below the given percentage of its maximum.

Categories: combat

Required arguments

Key(s)DescriptionType
percentThe maximum health percentage (0–100).EXPRESSION

Example

conditions:
  - id: below_health_percent
    args:
      percent: 25 + %level% * 0.5