Skip to main content

open_machine_gui

Open Machine GUI — actions entry.

Entry Information

PropertyValue
Entry IDopen_machine_gui
TypeActions
ColorBlue
Iconfa6-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

FieldTypeDescription
machineRef<MachineDefinitionEntry>The machine definition entry that describes this machine's configuration
titleStringCustom GUI title shown in the inventory window (supports MiniMessage)
guiSizeInventorySize?Override inventory size for the GUI (defaults to 6 rows for standard machines)
reuseInstanceBooleanWhether 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