Add XP

Entity Action Type

Adds experience points and levels to the player, or subtracts levels.

Type ID: origins:add_xp

Fields

Field Type Default Description
points Integer optional If set, this is the amount experience points that will be given to the player. Can not be negative.
levels Integer optional If set, this is the amount experience levels that will be given to the player. Can be negative and thus used to subtract levels.

Examples

"entity_action": {
    "type": "origins:add_xp",
    "levels": 2
}

This example will add 2 levels to the player.