Upgrade JSON Format

An Object used to specify an upgrade of an origin within an Origin JSON.

Fields

Field Type Default Description
condition Identifier The namespace and ID of an advancement which should trigger this upgrade.
origin Identifier The namespace and ID of an origin the origin with this upgrade should upgrade to.
announcement String optional A text which will show up in the local chat of the player in a pretty color. If none is specified, there won't be a message.

Examples

"upgrades": [
    {
        "condition": "minecraft:end/kill_dragon",
        "origin": "origins:elytrian",
        "announcement": "You have killed an ender dragon! You have evolved to Elytrian"
    }
]

This example will change the player's origin to origins:elytrian once they've killed an ender dragon (or when they've been granted the minecraft:end/kill_dragon advancement).