Status Effect (Entity Condition Type)
Checks whether the entity has a status effect, optionally within a range of amplifiers and durations.
Type ID: apoli:status_effect
Fields
| Field | Type | Default | Description |
|---|---|---|---|
effect | Identifier | required | The ID of the status effect to check for. |
min_amplifier | Integer | 0 | The lowest amplifier the effect can have. |
max_amplifier | Integer | 2147483647 | The highest amplifier the effect can have. |
min_duration | Integer | -1 | The fewest ticks the effect can have left. |
max_duration | Integer | 2147483647 | The most ticks the effect can have left. |
Examples
"condition": {
"type": "apoli:status_effect",
"effect": "minecraft:speed",
"min_amplifier": 1
}This checks whether the entity has Speed II or stronger.