填滿一個長方體
mc_fillFill a rectangular volume between two points with a single block type, supporting modes like hollow or outline for shell-only or border-only results.
Instructions
用同一種方塊填滿 from 到 to 的長方體。Bedrock 單次上限 32768 格;超過請改用 mc_build_shape,它會自動拆批。mode=hollow 只留外殼、outline 只留邊框。
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": {
"from": "<from>",
"to": "<to>",
"block": "<block>"
},
"name": "mc_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| mode | No | ||
| block | Yes | 方塊 ID,例如 stone 或 minecraft:oak_planks | |
| blockStates | No | 選用的方塊狀態,例如 ["stone_type":"granite"] | |
| replaceBlock | No | 只在 mode="replace" 時有效 | |
| replaceStates | No | 選用的方塊狀態,例如 ["stone_type":"granite"] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| elapsedMs | Yes | ||
| statusCode | Yes | ||
| commandLine | Yes | ||
| statusMessage | Yes |