Swapped (Entity Condition Type)
Checks whether the player is currently wearing an origin from their swappable pool instead of their own main origin.
Type ID: origins:swapped
note
This condition comes from the Origins mod.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
layer | Identifier | optional | The layer to check, either the target layer or the swappable layer itself. Defaults to the first layer that has a swappable pool. |
origin | Identifier | optional | Also requires this to be the origin they are swapped into. |
The condition is false while the player is on their main origin. To test the main origin itself, use origins:origin, which reports the layer's stored pick, and a swap doesn't change that.
Examples
{
"type": "apoli:overlay",
"texture": "example:textures/gui/borrowed.png",
"condition": {
"type": "origins:swapped"
}
}This power draws an overlay on the screen while the player is borrowing someone else's origin.
{
"type": "origins:swapped",
"origin": "example:acid"
}This only passes while the player is wearing example:acid.