Predicates
Predicates are conditions that can be used in data pack files such as advancements, loot tables, and predicate files.
origins:origin
Checks if the player has the specified origin.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
origin | Identifier | The namespace and ID of the origin to check for. | |
layer | Identifier | optional | If specified, checks if the specified origin is from this origin layer. |
Example1
{
"condition": "origins:origin",
"origin": "origins:human"
}
This example will check if the player has the origins:human origin.
Example2
{
"condition": "origins:origin",
"origin": "origins:phantom",
"layer": "origins:origin"
}
This example will check if the player has the origins:phantom origin in the origins:origin origin layer.
origins:power
Checks if the entity has the specified power.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
power | Identifier | The namespace and ID of the power to check for. | |
source | Identifier | optional | If specified, checks if the specified power is from this power source. |
Example1
{
"condition": "origins:power",
"power": "origins:arcane_skin"
}
This example will check if the player has the origins:arcane_skin power.
Example2
{
"condition": "origins:power",
"power": "origins:water_breathing",
"source": "origins:merling"
}
This example will check if the player has the origins:water_breathing power from the origins:merling power source.