> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Open Machine GUI

> Associates a machine definition with its GUI; opened when a player interacts with the machine.

The `open_machine_gui` entry binds GUI settings to a [machine\_definition](../definition/machine_definition.mdx). The menu itself is opened by the machine event listener when a player right-clicks the placed machine.

| Field                                 | Default | Description                                                                   |
| :------------------------------------ | :------ | :---------------------------------------------------------------------------- |
| `machine`                             | empty   | The `machine_definition` this GUI belongs to.                                 |
| `title`                               | `""`    | Inventory window title (MiniMessage).                                         |
| `guiSize`                             | auto    | Inventory size override (defaults to 6 rows).                                 |
| `reuseInstance`                       | `true`  | Reuse the existing instance at the location instead of creating one per open. |
| `criteria` / `modifiers` / `triggers` | `[]`    | Standard triggerable fields.                                                  |

## Example

```yaml theme={null}
open_machine_gui:
  id: open_electric_furnace
  name: "Electric Furnace"
  machine: electric_furnace_def
  title: "<gold>Electric Furnace</gold>"
  gui_size: SIZE_54
```
