give_xp

Gives the player experience points when triggered, with optional Mending repair support.

Categories: economy

Required arguments

Key(s)DescriptionType
amountThe amount of experience points to give the player. Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
apply_mendingWhether to apply Mending repair before adding XP to the bar (Paper only). Defaults to true.BOOLEANtrue

Trigger parameters required

  • PLAYER

Example

effects:
  - id: give_xp
    args:
      amount: %level% * 10
      apply_mending: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue