Health

Entity Condition.

Checks the current health (absolute value) of the player.

Type ID: origins:health

Fields:

Field Type Default Description
comparison Comparison How the health of the player should be compared to the specified value.
compare_to Float Which value the health should be compared to.

Example:

"condition": {
    "type": "origins:health",
    "comparison": "<",
    "compare_to": 20
}

This example checks if the player's health is less than 10 hearts (or 20 health points), which is the default value for the player's max health.