give_health

Heals the player by the specified amount, capped at their maximum health.

Categories: player

Required arguments

Key(s)DescriptionType
amountThe amount of health points to restore. Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
trigger_healIf true, fires an EntityRegainHealthEvent and respects cancellation (e.g. for Mending). Defaults to false.BOOLEANfalse

Trigger parameters required

  • PLAYER

Example

effects:
  - id: give_health
    args:
      amount: %level% * 2
      trigger_heal: true # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue