Change a player
set_player_propertyUpdate an online player's game mode, health, food, XP, flight, speed, names, or invulnerability on your Minecraft server; offline players return player_offline.
Instructions
Set game mode, health, food (0–20), saturation, XP level or progress, flight, walk or fly speed (-1 to 1; defaults 0.2 and 0.1), display or tab-list name, invulnerability, fire, or air. The player must be online; otherwise the error is player_offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exp | No | Progress to the next level | |
| food | No | ||
| level | No | ||
| flying | No | ||
| format | No | `minimessage` reads tags like `<green>Hi` or `<bold>`; `plain` sends the text as is | plain |
| health | No | ||
| player | Yes | Player name or UUID | |
| flySpeed | No | ||
| gameMode | No | ||
| listName | No | ||
| fireTicks | No | ||
| walkSpeed | No | ||
| exhaustion | No | ||
| saturation | No | ||
| allowFlight | No | ||
| displayName | No | ||
| invulnerable | No | ||
| remainingAir | No |