Skip to content

Origin

Entity Condition Type

Checks whether the entity has a certain origin (optionally in a certain layer). Mostly used for Origin conditions in layers.

Type ID: origins:origin

Note

This entity condition type will only work on players.

Caution

Using this Entity Condition on a non-player Entity will most likely crash the game. To prevent that make sure to check if the entity is a player by using the Entity Type (Entity Condition Type) to prevent your game from crashing.

Fields

Field Type Default Description
origin Identifier The namespace and ID of the origin the player needs to have to pass the check.
layer Identifier optional If specified, only evaluate the condition to true if the origin is from the specified origin layer.

Examples

"condition": {
    "type": "origins:origin",
    "origin": "origins:human",
    "layer": "origins:origin"
}

This example will check if the player has the origins:human origin that is provided by the origins:origin origin layer.