give_xp
Gives the player experience points when triggered, with optional Mending repair support.
Categories: economy
Required arguments
| Key(s) | Description | Type |
|---|
amount | The amount of experience points to give the player. Supports expressions. | EXPRESSION |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
apply_mending | Whether to apply Mending repair before adding XP to the bar (Paper only). Defaults to true. | BOOLEAN | true |
Trigger parameters required
Example
effects:
- id: give_xp
args:
amount: %level% * 10
apply_mending: true # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |