Entity Documentation - minecraft:player.experience

minecraft:player.experience defines how much experience each player action should take.

Parameters

Name Default Value Type Description
max 5 Integer The maximum player experience of this entity.
value 1 Integer The initial value of the player experience.

Example

"minecraft:player.experience": {
        "value": 0,
        "max": 1
      }

Vanilla entities examples

player

"minecraft:player.experience": {
        "value": 0,
        "max": 1
      }

Vanilla entities using minecraft:exhaustion_values