Stored Origin (Entity Condition Type)
Checks whether the entity has an origin saved in its store, optionally matching a specific key, origin or layer.
Type ID: origins:stored_origin
note
This condition comes from the Origins mod. It reads server state, so it always fails when evaluated only on the client.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
key | String | optional | Only checks this key. Leave it out to match any stored origin. |
origin | Identifier | optional | The stored entry must be this origin. |
layer | Identifier | optional | The stored entry must have been taken from this layer. |
Examples
{
"type": "origins:stored_origin",
"key": "before_curse"
}This checks whether there is anything stored under before_curse to restore.
{
"type": "origins:stored_origin",
"key": "stolen",
"origin": "origins:merling"
}This checks whether the origin stored under stolen is a Merling.
{ "type": "origins:stored_origin" }This passes if the store holds any origin at all.