set_block_nbt
Attach block entity NBT data, such as chest contents, to a block at specified coordinates for accurate Minecraft structure saves.
Instructions
Attach block entity NBT, e.g. chest contents: {Items:[{Slot:0b,id:"minecraft:candle",Count:2b}]} (1.20.1 item format: id + Count).
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": {
"name": "<name>",
"x": "<x>",
"y": "<y>",
"z": "<z>",
"snbt": "<snbt>"
},
"name": "set_block_nbt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| z | Yes | ||
| name | Yes | ||
| snbt | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |