Dialog body

Helpers that build a minecraft:dialog_body 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.

Item

Item
Item(item, description?, show_decorations?, show_tooltip?, width?, height?)
item
ItemStackTemplate
descriptionoptional
PlainMessage | Text

The description text rendered to the right of item.

show_decorationsoptional
bool

Whether count and damage bar are rendered over the item. Defaults to true.

show_tooltipoptional
bool

Whether item tooltip shows up when the item is hovered. Defaults to true.

widthoptional
int 1..256

Width of the item. Defaults to 16.

heightoptional
int 1..256

Height of the item. Defaults to 16.

PlainMessage

PlainMessage
PlainMessage(contents, width?)
contents
Text

A multiline label. Click events in the text trigger after_action like any other action.

widthoptional
int 1..1024

Maximum width of message. Defaults to 200.