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.

Warning

The specified condition is only evaluated on the client-side. This means that server-side condition types (such as the Command (Entity Condition Type)) 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.