Pular para o conteúdo principal

Open Machine GUI

The open_machine_gui entry binds GUI settings to a machine_definition. The menu itself is opened by the machine event listener when a player right-clicks the placed machine.

FieldDefaultDescription
machineemptyThe machine_definition this GUI belongs to.
title""Inventory window title (MiniMessage).
guiSizeautoInventory size override (defaults to 6 rows).
reuseInstancetrueReuse the existing instance at the location instead of creating one per open.
criteria / modifiers / triggers[]Standard triggerable fields.

Example

open_machine_gui:
id: open_electric_furnace
name: "Electric Furnace"
machine: electric_furnace_def
title: "<gold>Electric Furnace</gold>"
gui_size: SIZE_54