施加或清除狀態效果
mc_effectApply or clear potion effects on Minecraft entities using target selectors, with configurable duration, amplifier, and particle visibility.
Instructions
action="apply" 施加藥水效果,"clear" 清除全部效果。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mc_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | apply | |
| effect | No | apply 需要,例如 speed 或 night_vision | |
| target | No | 目標選擇器(@a/@p/@s/@e/@r,可帶 [])或玩家名稱 | @s |
| seconds | No | ||
| amplifier | No | ||
| hideParticles | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| elapsedMs | Yes | ||
| statusCode | Yes | ||
| commandLine | Yes | ||
| statusMessage | Yes |