Edit blocks from a 3D array
edit_blocksBulk-place or modify many different Minecraft blocks in one call via a 3D array, supporting block states and NBT; arrays over 100,000 blocks are rejected.
Instructions
Place many different blocks in one call from a 3D array (MCPyLib's bulk edit). build_from_layers is usually easier to write. Refuses arrays whose bounding box exceeds 100,000 blocks.
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": {
"x": "<x>",
"y": "<y>",
"z": "<z>",
"blocks": "<blocks>"
},
"name": "edit_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X of the array's lowest corner. | |
| y | Yes | Y of the array's lowest corner. | |
| z | Yes | Z of the array's lowest corner. | |
| blocks | Yes | Rectangular array indexed blocks[x][y][z] relative to the corner. Each entry is a block id, an object {block, block_state?, nbt?}, or null to leave that position unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||