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
| Field | Type | Default | Description |
|---|---|---|---|
key | String | required | The entry to check. |
value | String | optional | The 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.