Store Origin (Entity Action Type)
Remembers the entity's own origin under a named key, so origins:apply_stored_origin can put it back later.
Type ID: origins:store_origin
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
| Field | Type | Default | Description |
|---|---|---|---|
key | String | required | The name to store the entry under. Storing under an existing key overwrites it. |
layer | Identifier | origins:origin | The layer whose origin is read, which is also recorded with the entry. |
origin | Identifier | optional | Stores this origin ID as given instead of reading the entity's current one. |
clear | Boolean | false | Removes the entry at key instead of writing one. |
Nothing is stored if the entity has no origin on layer, or if the origin resolves to empty. The entry survives death, respawn and relog.
Examples
{
"type": "origins:store_origin",
"key": "before_curse"
}This remembers the player's current origin under before_curse, before something takes it away.
{
"type": "origins:store_origin",
"key": "default_form",
"origin": "origins:human"
}This stores origins:human under default_form ahead of time, so a later apply_stored_origin has something to fall back to.
{
"type": "origins:store_origin",
"key": "before_curse",
"clear": true
}This removes the before_curse entry again.