Predicate

Entity Condition.

Checks whether the entity fulfills a certain predicate.

Note: this condition is only effective on the server-side. That means client-based power types such as origins:climbing, origins:entity_glow, origins:shader, etc. won't work with this.

Type ID: origins:predicate

Fields:

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

Example:

"condition": {
    "type": "origins: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)