Skip to main content

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

FieldTypeDefaultDescription
effectIdentifierrequiredThe ID of the status effect to check for.
min_amplifierInteger0The lowest amplifier the effect can have.
max_amplifierInteger2147483647The highest amplifier the effect can have.
min_durationInteger-1The fewest ticks the effect can have left.
max_durationInteger2147483647The 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.