Predicate

Entity Condition.

Checks whether the entity fulfills a certain predicate.

Type ID: apoli:predicate

Caution

This condition is only effective server-side. That means client-side power types such as apoli:climbing, apoli:entity_glow, apoli:shader, etc. won't work with this.

Fields:

Field Type Default Description
predicate Identifier ID of the predicate the entity needs to pass.

Example:

"condition": {
    "type": "apoli:predicate",
    "predicate": "example:weather/is_thunderstorm"
}

This example checks if the test:check_if_thunderstorm predicate (data\example\predicates\weather\is_thunderstorm.json) is true.

{
    "condition": "minecraft:weather_check",
    "raining": true,
    "thundering": true
}

This being the contents of the example:check_if_thunderstorm predicate. (data\example\predicates\weather\is_thunderstorm.json)