Skip to main content

Store Value (Entity Action Type)

Stores a piece of text on the entity under a named key, such as a marker, a name or a state flag. origins:stored_value reads it back.

Type ID: origins:store_value

note

This action comes from the Origins mod. It only works on players, and only on the server. See Origin storage for the whole system.

Fields

FieldTypeDefaultDescription
keyStringrequiredThe name to store the text under.
valueString""The text to store. [other_key] placeholders are expanded from the same player's store before it is written.
clearBooleanfalseRemoves the entry at key instead of writing one.

If value contains a placeholder that can't be resolved, nothing is stored.

Placeholders

[key] expands to whatever is stored under key: a stored origin's ID, or a stored text value. [key.name] expands to a stored origin's display name instead of its ID.

Examples

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

This marks the player as being in the cursed phase.

{
  "type": "origins:store_value",
  "key": "stolen_name",
  "value": "[stolen.name]"
}

This records the display name of the origin stored under stolen, so a message can show it later.