Change a player
set_player_propertyChange an online Minecraft player's game mode, health, hunger, XP, flight, speed, names, invulnerability, fire, or air. Use for player stat and setting updates while they are connected.
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; for position, effects, or items use teleport_player, set_effects, or edit_items. The player must be online; otherwise the error is player_offline.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"player": "<player>"
},
"name": "set_player_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exp | No | Progress to the next level | |
| food | No | Hunger bar | |
| level | No | XP level | |
| flying | No | Needs allowFlight | |
| format | No | `minimessage` reads tags like `<green>Hi` or `<bold>`; `plain` sends the text as is | plain |
| health | No | 2 per heart, up to the max; 0 kills | |
| player | Yes | Player name or UUID | |
| flySpeed | No | 0.1 is normal | |
| gameMode | No | Game mode | |
| listName | No | Name in the tab list | |
| fireTicks | No | 20 per second; 0 puts it out | |
| walkSpeed | No | 0.2 is normal | |
| exhaustion | No | At 4, costs a point of saturation or food | |
| saturation | No | Spent before food | |
| allowFlight | No | May fly | |
| displayName | No | Name in chat | |
| invulnerable | No | Takes no damage | |
| remainingAir | No | Ticks, up to the max (300 by default) |