Open Machine GUI
Open Machine GUI
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
Champs
| Champ | Type | Par défaut | 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 | true | Whether to create a new instance each time (false) or reuse an existing one at the location (true) |
Champs TypeWriter communs (criteria, modifiers, triggers)
| Champ | Type | Par défaut | Description |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
Current behaviour
This entry only declares a menu title and size for a machine definition. In the current code, triggering it as an action does nothing: a placed machine opens its own menu on right-click. Use Machine Menu for a menu you open from a trigger.