Exhaust
Applies exhaustion to the player over time.
Type ID: origins:exhaust
Fields
Field | Type | Default | Description |
---|---|---|---|
interval |
Integer | 20 |
Duration of ticks to wait between applying exhaustion. |
exhaustion |
Float | How much exhaustion will be applied each interval. |
Examples
{
"type": "origins:exhaust",
"interval": 20,
"exhaustion": 4.0,
"condition": {
"type": "origins:fluid_height",
"fluid": "minecraft:water",
"comparison": ">",
"compare_to": 0.0
}
}
This example will apply 4.0 exhaustion to the player if the player is touching water.