Skip to main content

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

Fields

FieldTypeDefaultDescription
machineRef<MachineDefinitionEntry>—The machine definition entry that describes this machine's configuration
titleString—Custom GUI title shown in the inventory window (supports MiniMessage)
guiSizeInventorySize?—Override inventory size for the GUI (defaults to 6 rows for standard machines)
reuseInstanceBooleantrueWhether to create a new instance each time (false) or reuse an existing one at the location (true)
Common TypeWriter fields (criteria, modifiers, triggers)
FieldTypeDefaultDescription
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<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.