home / skills / bdambrosio / cognitive_workbench / mc-open
This skill opens block-based Minecraft UIs such as crafting tables, chests, and furnaces, returning success or failure.
npx playbooks add skill bdambrosio/cognitive_workbench --skill mc-openReview the files below or copy the command above to add this skill to your agents.
---
name: mc-open
type: python
description: "Open block-based UI (crafting table, chest, furnace). Returns success/failure"
---
# Minecraft Open Tool
Opens block-based UI interfaces like crafting tables, chests, and furnaces. Returns success/failure status.
## Purpose
UI interaction for crafting, storage access, and furnace operations. Opens interactive interfaces from specific block types.
## Input
- Position: `dx`, `dy`, `dz` (world-relative offsets from agent, floats, all required)
- See coordinate system documentation in jill-minecraft.yaml for details
- `value`: Ignored
## Output
Returns uniform_return format with:
- `value`: Text summary (success/failure message)
- `data`: Structured data dict (machine-readable). Key fields:
- `success`: Boolean
- `ui_type`: String (e.g., `"crafting_table"`, `"chest"`, `"furnace"`)
## Behavior & Performance
- Opens UI interface from block at specified position
- Fails if block does not have openable UI
- UI remains open until closed with `mc-close`
## Guidelines
- Use `mc-observe` to identify openable blocks
- Common openable blocks: crafting_table, chest, furnace, dispenser
- Must be within reach of block
- Use `mc-close` to close opened UI
## Usage Examples
Open block directly south:
```json
{"type":"mc-open","dx":0,"dy":0,"dz":1,"out":"$open"}
```
Open block directly east:
```json
{"type":"mc-open","dx":1,"dy":0,"dz":0,"out":"$open"}
```
This skill opens block-based UIs in a Minecraft world such as crafting tables, chests, and furnaces. It attempts to open the interface at a world-relative offset from the agent and returns a structured success/failure result. The UI stays open until explicitly closed with the close action.
Provide world-relative offsets (dx, dy, dz) from the agent to target a block. The skill checks the block at that position and, if it supports an openable UI, opens the interface and returns machine-readable status and a human-readable message. If the block is not openable or out of reach, the skill returns a failure result.
What inputs does the skill require?
It requires dx, dy, dz offsets from the agent; the value field is ignored.
What does the skill return?
It returns a structured object with value (text) and data containing success (boolean) and ui_type (string).
What happens if the target block has no UI?
The skill fails and returns success=false with a message indicating the block is not openable.