> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Experience Actions

> Manage player experience and levels.

Actions to heavily modify player progression, whether it's raw experience points or direct levels.

## Configuration

### `set_experience_action`

Sets the total experience points (not level) of the player.

<ResponseField name="amount" type="Double" default="0.0">
  The exact XP amount to set.
</ResponseField>

### `add_experience_action`

Adds raw experience points to the current pool.

<ResponseField name="amount" type="Double" default="0.0">
  XP to add.
</ResponseField>

### `remove_experience_action`

Removes raw experience points.

<ResponseField name="amount" type="Double" default="0.0">
  XP to remove.
</ResponseField>

### `set_level_action`

Directly sets the player's level.

<ResponseField name="level" type="Int" default="1">
  The target level.
</ResponseField>

## Example Usage

<CodeGroup>
  ```yaml Set Level theme={null}
  set_level_action:
    level: 30
  ```

  ```yaml Give XP theme={null}
  add_experience_action:
    amount: 500.0
  ```
</CodeGroup>
