Conditioned Origin JSON

An Object used to specify origins in a Layer JSON which only show up conditionally.

Fields

Field Type Default Description
condition Entity Condition Type The entity condition that the player needs to fulfill to get access to the origins specified here.
origins Array of Identifiers Then namespace and IDs of the origins which should become available when the condition is fulfilled.

Examples

{
    "origins": [
        {
            "condition": {
                "type": "origins:daytime",
                "inverted": true
            },
            "origins": [
                "origins:phantom"
            ]
        }
    ]
}

This example will make it so that players can only pick the origins:phantom origin if it's night time.