Dialog

Helpers that build a minecraft:dialog object, one for each of its types. Where a field takes one, write the helper's call; its name is the type it makes. Click a type to see what it accepts.

Confirmation

Confirmation
Confirmation(title, yes, no, external_title?, body?, inputs?, can_close_with_escape?, after_action?)
title
Text
yes
Button
no
Button

This action is also used for ESC-triggered exit.

external_titleoptional
Text

Name to be used for a button leading to this dialog. If not present, title will be used instead.

bodyoptional
DialogBody | list of DialogBody
inputsoptional
list of InputControl
can_close_with_escapeoptional
bool

Whether the dialog can be closed with ESC key. Defaults to true.

after_actionoptional
AfterAction

An additional operation performed on dialog after click or submit actions. Defaults to close. Value none requires pause set to false.

DialogList

DialogList
DialogList(title, dialogs, external_title?, body?, inputs?, can_close_with_escape?, after_action?, exit_action?, columns?, button_width?)
title
Text
dialogs
DialogListRef
external_titleoptional
Text

Name to be used for a button leading to this dialog. If not present, title will be used instead.

bodyoptional
DialogBody | list of DialogBody
inputsoptional
list of InputControl
can_close_with_escapeoptional
bool

Whether the dialog can be closed with ESC key. Defaults to true.

after_actionoptional
AfterAction

An additional operation performed on dialog after click or submit actions. Defaults to close. Value none requires pause set to false.

exit_actionoptional
Button

The button in footer. The action is also used for ESC-triggered exit.

columnsoptional
int 1..

The number of columns. Defaults to 2.

button_widthoptional
int 1..

Width of buttons in the list. Defaults to 150.

MultiAction

MultiAction
MultiAction(title, actions, external_title?, body?, inputs?, can_close_with_escape?, after_action?, exit_action?, columns?)
title
Text
actions
list of Button (at least 1)
external_titleoptional
Text

Name to be used for a button leading to this dialog. If not present, title will be used instead.

bodyoptional
DialogBody | list of DialogBody
inputsoptional
list of InputControl
can_close_with_escapeoptional
bool

Whether the dialog can be closed with ESC key. Defaults to true.

after_actionoptional
AfterAction

An additional operation performed on dialog after click or submit actions. Defaults to close. Value none requires pause set to false.

exit_actionoptional
Button

The button in footer. The action is also used for ESC-triggered exit.

columnsoptional
int 1..

The number of columns. Defaults to 2.

Notice

Notice
Notice(title, external_title?, body?, inputs?, can_close_with_escape?, after_action?, action?)
title
Text
external_titleoptional
Text

Name to be used for a button leading to this dialog. If not present, title will be used instead.

bodyoptional
DialogBody | list of DialogBody
inputsoptional
list of InputControl
can_close_with_escapeoptional
bool

Whether the dialog can be closed with ESC key. Defaults to true.

after_actionoptional
AfterAction

An additional operation performed on dialog after click or submit actions. Defaults to close. Value none requires pause set to false.

actionoptional
Button

The only action in footer. Defaults to gui.ok label with no action or tooltip.

ServerLinks
ServerLinks(title, external_title?, body?, inputs?, can_close_with_escape?, after_action?, exit_action?, columns?, button_width?)
title
Text
external_titleoptional
Text

Name to be used for a button leading to this dialog. If not present, title will be used instead.

bodyoptional
DialogBody | list of DialogBody
inputsoptional
list of InputControl
can_close_with_escapeoptional
bool

Whether the dialog can be closed with ESC key. Defaults to true.

after_actionoptional
AfterAction

An additional operation performed on dialog after click or submit actions. Defaults to close. Value none requires pause set to false.

exit_actionoptional
Button

The button in footer. The action is also used for ESC-triggered exit.

columnsoptional
int 1..

The number of columns. Defaults to 2.

button_widthoptional
int 1..

Width of buttons in the list. Defaults to 150.