Skip to main content

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

FieldTypeDefaultDescription
keyStringoptionalOnly checks this key. Leave it out to match any stored origin.
originIdentifieroptionalThe stored entry must be this origin.
layerIdentifieroptionalThe 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.