Minecraft Dig Tool
Removes a block from the Minecraft world at a specified location. Synchronous operation - bridge waits for dig completion (or timeout).
Purpose
Block removal for mining, excavation, and terrain modification. Synchronous operation - bridge waits for dig completion before returning. May cause item entities to spawn, but spawning details are not guaranteed or directly reported.
Input
- Position:
dx, dy, dz (agent-relative offsets from agent, floats, all required)
dx: Right (+) / Left (-), dy: Up (+) / Down (-), dz: Forward (+) / Back (-)
value: Ignored
Output
Returns uniform_return format with:
value: Text summary (e.g., "Dig request accepted: stone at (x, y, z)")
data: Structured data dict (machine-readable). Key fields:
success: Boolean
status: "accepted" (request accepted, but digging may still fail asynchronously)
dug: {name: string, position: {x, y, z}}
Behavior & Performance
- Synchronous: Bridge waits for dig completion (or timeout)
- Item spawning: May cause item entities to spawn, but details not guaranteed
- Use
mc-observe after digging to check for spawned item entities
- Automatically updates persistent spatial map after successful dig (calls mc-map-update internally, non-fatal if fails)
Guidelines
- Status
"accepted" means request was accepted, not that digging succeeded
- Check for spawned item entities using
mc-observe after digging completes
- All positions use agent-relative coordinates:
dx (right/left), dy (up/down), dz (forward/back)
- Spatial map is automatically updated after successful dig (no need to call mc-map-update separately)
Usage Examples
Dig block to the right:
{"type":"mc-dig","dx":1,"dy":0,"dz":0,"out":"$dig"}
Dig block below:
{"type":"mc-dig","dx":0,"dy":-1,"dz":0,"out":"$dig"}
Dig block forward:
{"type":"mc-dig","dx":0,"dy":0,"dz":1,"out":"$dig"}
1---2name: mc-dig3description: Removes a block from the Minecraft world at a specified location. SYNCHRONOUS - waits for dig completion. May cause an item entity to spawn, but item spawning, item type, and item location are not guaranteed and are not directly reported by this tool4---56# Minecraft Dig Tool78Removes a block from the Minecraft world at a specified location. Synchronous operation - bridge waits for dig completion (or timeout).910## Purpose1112Block removal for mining, excavation, and terrain modification. Synchronous operation - bridge waits for dig completion before returning. May cause item entities to spawn, but spawning details are not guaranteed or directly reported.1314## Input1516- Position: `dx`, `dy`, `dz` (agent-relative offsets from agent, floats, all required)17 - `dx`: Right (+) / Left (-), `dy`: Up (+) / Down (-), `dz`: Forward (+) / Back (-)18- `value`: Ignored1920## Output2122Returns uniform_return format with:23- `value`: Text summary (e.g., "Dig request accepted: stone at (x, y, z)")24- `data`: Structured data dict (machine-readable). Key fields:25 - `success`: Boolean26 - `status`: `"accepted"` (request accepted, but digging may still fail asynchronously)27 - `dug`: `{name: string, position: {x, y, z}}`2829## Behavior & Performance3031- Synchronous: Bridge waits for dig completion (or timeout)32- Item spawning: May cause item entities to spawn, but details not guaranteed33- Use `mc-observe` after digging to check for spawned item entities34- **Automatically updates persistent spatial map** after successful dig (calls mc-map-update internally, non-fatal if fails)3536## Guidelines3738- Status `"accepted"` means request was accepted, not that digging succeeded39- Check for spawned item entities using `mc-observe` after digging completes40- All positions use agent-relative coordinates: `dx` (right/left), `dy` (up/down), `dz` (forward/back)41- Spatial map is automatically updated after successful dig (no need to call mc-map-update separately)4243## Usage Examples4445Dig block to the right:46```json47{"type":"mc-dig","dx":1,"dy":0,"dz":0,"out":"$dig"}48```4950Dig block below:51```json52{"type":"mc-dig","dx":0,"dy":-1,"dz":0,"out":"$dig"}53```5455Dig block forward:56```json57{"type":"mc-dig","dx":0,"dy":0,"dz":1,"out":"$dig"}58```