Set Block
setBlockPlaces a block at specified coordinates in a chosen dimension, supports block states, and returns the replaced block. Use it to edit persisted Minecraft worlds, with air removing blocks.
Instructions
Place a block at the given coordinates in the given dimension and return the replaced block. Block states are supported: "minecraft:oak_stairs[facing=south,half=bottom]" or "oak_stairs[facing=south]". Each dimension has its own persisted world state; setting air removes the block. blockType is a block id such as "minecraft:stone" or "stone"; see the resource lzimul://minecraft/blocks for the full list.
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>",
"blockType": "<blockType>"
},
"name": "setBlock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate (-30000000 to 30000000) | |
| y | Yes | Y coordinate, within the dimension height range | |
| z | Yes | Z coordinate (-30000000 to 30000000) | |
| blockType | Yes | Block id with optional states, such as "minecraft:stone" or "minecraft:oak_stairs[facing=south]" | |
| dimension | No | Dimension: "overworld" (default), "the_nether" or "the_end" | overworld |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| z | Yes | ||
| block | Yes | ||
| states | Yes | ||
| previous | Yes | ||
| dimension | Yes | ||
| previousStates | Yes |