Open Container
minecraft_open_containerOpens a chest, barrel, or similar container at specified coordinates and lists its contents. Walks within reach first and keeps the container open for deposit or withdrawal actions.
Instructions
Opens a chest, trapped chest, barrel, shulker box, dispenser, or dropper at the given coordinates and lists its contents. Walks within reach first. The container stays open until minecraft_close_container is called — minecraft_container_deposit/withdraw act on whatever is currently open.
Returns: { message, containerType: string, items: [{ slot, name, count }] } Errors: no container block there, or unreachable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| z | Yes |