Change potion effects
set_effectsGive, remove, or clear a Minecraft player's potion effects and return the effects they have afterward. Requires the player to be online.
Instructions
Give, take away, or clear a player's potion effects, in that order: clear first, then remove, then add. Answers with the effects the player has afterwards. 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_effects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Effects to give | |
| clear | No | Take away every effect first | |
| player | Yes | Player name or UUID | |
| remove | No | Effect keys to take away |