Relative Health

Entity Condition Type

Checks the current (and the percentage) health value of the entity.

Type ID: origins:relative_health


The percentage of the health value can be calculated with the currentHealth / maxHealth formula.


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


"condition": {
    "type": "origins:relative_health",
    "comparison": "<=",
    "compare_to": 0.5

This example will check if the player has half or less of their max health.