Status Effect (Entity Condition Type)

Checks whether the entity has a specified status effect with a specified amplifier, and/or duration range.

Checks whether the entity has a specified status effect with a specified amplifier, and/or duration range.

Type ID: apoli:status_effect

Fields

FieldTypeDefaultDescription
effectIdentifierThe namespace and ID of the status effect to check for.
min_amplifierInteger0The minimum amplifier the status effect should have in order to pass the check.
max_amplifierInteger2147483647The maximum amplifier the status effect should have in order to pass the check.
min_durationInteger-1The minimum duration in ticks the status effect should have left in order to pass the check.
max_durationInteger2147483647The maximum duration in ticks the status effect should have left in order to pass the check.

Examples

"condition": {
    "type": "apoli:status_effect",
    "effect": "minecraft:speed",
    "min_amplifier": 1
}

This example will check if the entity has the Speed II status effect.