编辑

通过


Entity Documentation - minecraft:player.exhaustion

Defines the player's exhaustion level.

Player Exhaustion Properties

Name Default Value Type Description Example Values
max not set Integer number A maximum value for a player's exhaustion. Player: 20
value not set Integer number The initial value of a player's exhaustion level.

Samples

Player

"minecraft:player.exhaustion": {
  "value": 0,
  "max": 20
}