Conditioned Origin JSON

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

Note

Check Origin conditions in layers for a detailed guide on how to use this feature.

Caution

The entity condition specified in the condition field is only evaluated on the client-side, therefore, using entity condition types that only work on the server-side will not work.

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.