Swapped (Entity Condition Type)
Entity condition — checks whether the player is currently wearing a swapped-in origin.
Checks whether the player is currently wearing an origin from their swappable pool rather than their own main origin.
Type ID: origins:swapped — an entity condition.
Needs the Origins mod. Registered by Origins, not core Apoli.
Fields
| Field | Type | Default | Purpose |
|---|---|---|---|
layer | Identifier | optional | Which layer to check. Accepts either the target layer or the swappable layer itself. Defaults to the first layer that has a swappable pool. |
origin | Identifier | optional | Also require that this is the origin they are swapped into. |
False when the player is on their main origin. To test the main origin itself, use origins:origin — it reports the layer’s stored pick, which a swap does not change.
Examples
A HUD tint while borrowing someone else’s power:
{
"type": "apoli:overlay",
"texture": "example:textures/gui/borrowed.png",
"condition": {
"type": "origins:swapped"
}
} Only while wearing one specific stolen origin:
{
"type": "origins:swapped",
"origin": "example:acid"
}