Skip to main content

Stored Value (Entity Condition Type)

Checks whether the entity has a text value saved in its store under key, optionally equal to a specific string.

Type ID: origins:stored_value

note

This condition comes from the Origins mod. It reads server state, so it always fails when evaluated only on the client.

Fields

FieldTypeDefaultDescription
keyStringrequiredThe entry to check.
valueStringoptionalThe stored text must equal this exactly. Leave it out to only check that the key exists.

Only text entries are checked, so a key holding a stored origin doesn't satisfy this condition. Use origins:stored_origin for those.

Examples

{
  "type": "origins:stored_value",
  "key": "phase",
  "value": "cursed"
}

This checks whether the phase entry is cursed.

{
  "type": "origins:stored_value",
  "key": "phase"
}

This checks whether phase has been set at all.