open_machine_gui
Open Machine GUI — actions entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | open_machine_gui |
| Type | Actions |
| Color | Blue |
| Icon | fa6-solid:gears |
Description
Declarative entry that associates a machine definition with GUI configuration. The actual GUI opening is handled by [btc.renaud.machine.MachineEventListener] when a player interacts with the machine block/entity. ## Example yaml open_machine_gui: id: open_electric_furnace name: "Electric Furnace" machine: electric_furnace_def title: "<gold>Electric Furnace</gold>" gui_size: SIZE_54
Fields
| Field | Type | Description |
|---|---|---|
machine | Ref<MachineDefinitionEntry> | The machine definition entry that describes this machine's configuration |
title | String | Custom GUI title shown in the inventory window (supports MiniMessage) |
guiSize | InventorySize? | Override inventory size for the GUI (defaults to 6 rows for standard machines) |
reuseInstance | Boolean | Whether to create a new instance each time (false) or reuse an existing one at the location (true) |
Usage Example
- entry: open_machine_gui
name: "Open Machine GUI"
machine: ""
title: ""
guiSize: ""
reuseInstance: false