Predicate

Entity Condition Type

Checks whether the entity fulfills a specified predicate.

Type ID: origins:predicate

Caution

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

Fields

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

Examples

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

This example will check if the example: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)