<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ADialog</id>
	<title>Minecraft:Dialog - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ADialog"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Dialog&amp;action=history"/>
	<updated>2026-06-10T01:06:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Dialog&amp;diff=136806&amp;oldid=prev</id>
		<title>SyncBot: Sync: new page from Minecraft</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Dialog&amp;diff=136806&amp;oldid=prev"/>
		<updated>2026-06-02T11:05:45Z</updated>

		<summary type="html">&lt;p&gt;Sync: new page from Minecraft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{About|dialog format specification|the command|Commands/dialog|other uses|Dialog (disambiguation)}}{{Exclusive|Java}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Dialogs&amp;#039;&amp;#039;&amp;#039; are simple {{w|modal window}}s that can display information and receive [[Minecraft:player]] input.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Dialogs can be displayed to [[Minecraft:player]]s using the {{cmd|dialog}} command by server [[Minecraft:operator]]s while in gameplay. Additionally, they can be displayed through a {{cd|show_dialog}} action in a [[Minecraft:text component]] or another dialog (see {{slink||Action format}}). They can also be configured for the [[Minecraft:pause menu]] and when pressing the {{control|quick actions}} hotkey (see {{slink||Dialog tag}}).&lt;br /&gt;
&lt;br /&gt;
Dialogs enable various forms of interaction with the game, including:&lt;br /&gt;
* Sending messages or information using [[Minecraft:text component]]s, including rich text formatting and clickable links (excluding type nbt, score and selector&amp;lt;ref name=&amp;quot;no-component-resolution&amp;quot;&amp;gt;{{bug|MC-297871||Text component content types &amp;quot;score, selector, and NBT&amp;quot; do not get resolved for dialogs|Invalid}}&amp;lt;/ref&amp;gt;);&lt;br /&gt;
* Receiving player input through [[#Input control format|input control fields]] such as textbox, toggle, slider, and option selection;&lt;br /&gt;
* Executing [[Minecraft:command]]s via action buttons ([[Minecraft:Permission_level|privileged commands]] can only be executed by server operators); and&lt;br /&gt;
* Navigating between multiple dialogs using nested structures.&lt;br /&gt;
&lt;br /&gt;
Dialogs mostly comprise of these three elements, however their exact contents are dependent of the type:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Header&amp;#039;&amp;#039;&amp;#039;, which contains the title and warning button;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Body elements&amp;#039;&amp;#039;&amp;#039;, which may be labels, inputs, buttons, and submit actions (scrollable if needed); and&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Optional footer&amp;#039;&amp;#039;&amp;#039;, which may contain confirmation buttons and submit actions.&lt;br /&gt;
&lt;br /&gt;
When a dialog window opens, player [[Minecraft:controls]] are disabled temporarily until the user exits the window through an &amp;#039;&amp;#039;exit action&amp;#039;&amp;#039; button, the {{w|escape key}} ({{key|Esc}}), or the warning button next to the dialog&amp;#039;s title (which returns the user back to the [[Minecraft:title screen]]). In [[Minecraft:singleplayer]], a dialog can be configured to pause the game, in which case the game also [[Minecraft:autosave]]s.&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
Dialog can be defined in [[Minecraft:data pack]]s, as part of the directory structure below.&lt;br /&gt;
&lt;br /&gt;
{{Data pack directory|dialog|{{ph|name}}.json}}&lt;br /&gt;
&lt;br /&gt;
== Dialog format{{anchor|JSON format}} ==&lt;br /&gt;
Dialogs have different structure depending on their type, which is specified by {{nbt|string|type}} tag. The structure below applies to every dialog types:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: If parent field is written, this field is required.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound}} The root tag.&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: One of dialog types from the &amp;lt;code&amp;gt;minecraft:dialog_type&amp;lt;/code&amp;gt; registry:&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:notice&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:confirmation&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:multi_action&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:server_links&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:dialog_list&amp;lt;/code&amp;gt;&amp;lt;section begin=&amp;quot;json format common&amp;quot; /&amp;gt;&lt;br /&gt;
**{{Nbt|string}}{{Nbt|list}}{{Nbt|compound|title}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Screen title, text component. Should be always visible on screen, no matter the specific type.&lt;br /&gt;
**{{Nbt|string}}{{Nbt|list}}{{Nbt|compound|external_title}}: Name to be used for a button leading to this dialog (for example, on the [[Minecraft:pause menu]]), optional text component. If not present, title will be used instead.&lt;br /&gt;
**{{nbt|list}}{{nbt|compound|body}}: Optional list of body elements or a single body element. See {{slink|Dialog|Body format}}.&lt;br /&gt;
**{{nbt|list|inputs}}: Optional list of input controls. See {{slink|Dialog|Input control format}}.&lt;br /&gt;
**{{nbt|bool|can_close_with_escape}}: Can dialog be dismissed with Escape key. Defaults to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
**{{nbt|bool|pause}}: If the dialog screen should pause the game in single-player mode. Defaults to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
**{{nbt|string|after_action}}: An additional operation performed on the dialog after click or submit actions. Defaults to &amp;lt;code&amp;gt;close&amp;lt;/code&amp;gt;. Can be one of the following:&lt;br /&gt;
***&amp;lt;code&amp;gt;close&amp;lt;/code&amp;gt;: Closes the dialog and returns to the previous non-dialog screen (if any).&lt;br /&gt;
***&amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;: Does nothing, i.e. keeps the current dialog screen open (only available if {{nbt|bool|pause}} is &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to avoid locking the game in single-player mode).&lt;br /&gt;
***&amp;lt;code&amp;gt;wait_for_response&amp;lt;/code&amp;gt;: Replace the current dialog with a &amp;quot;Waiting for Response&amp;quot; screen.&amp;lt;section end=&amp;quot;json format common&amp;quot; /&amp;gt;&lt;br /&gt;
** Other fields depending on {{nbt|string|type}}, see below.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== notice ===&lt;br /&gt;
[[File:Notice dialog.png|thumb|right|A {{cd|minecraft:notice}} dialog type.]]&lt;br /&gt;
&lt;br /&gt;
A dialog screen with a single action button in footer, specified by {{nbt|compound|action}}. By default, the exit action (which returns the player back to gameplay) is the same {{nbt|compound|action}} button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound}} The root tag.&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:notice&amp;lt;/code&amp;gt;.&lt;br /&gt;
**{{nbt inherit/dialog}}&lt;br /&gt;
**{{nbt|compound|action}}: Click action. Defaults to button with &amp;lt;code&amp;gt;gui.ok&amp;lt;/code&amp;gt; label and no action or tooltip.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|label}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Text component.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|tooltip}}: Optional text component to display when button is highlighted or hovered over.&lt;br /&gt;
***{{nbt|int|width}}: Value between 1 and 1024 — Width of the button. Defaults to 150. &lt;br /&gt;
***{{nbt|compound|action}}: An action to perform when button is clicked. See {{slink|Dialog|Action format}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== confirmation ===&lt;br /&gt;
[[File:Confirmation dialog.png|thumb|right|A {{cd|minecraft:confirmation}} dialog type.]]&lt;br /&gt;
&lt;br /&gt;
A dialog screen with two action buttons in footer, specified by {{nbt|compound|yes}} and {{nbt|compound|no}}. By default, the exit action is {{nbt|compound|no}} button.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound}} The root tag.&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:confirmation&amp;lt;/code&amp;gt;.&lt;br /&gt;
**{{nbt inherit/dialog}}&lt;br /&gt;
**{{nbt|compound|yes}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Click action for positive outcome.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|label}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Text component.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|tooltip}}: Optional text component to display when button is highlighted or hovered over.&lt;br /&gt;
***{{nbt|int|width}}: Value between 1 and 1024 — Width of the button. Defaults to 150.&lt;br /&gt;
***{{nbt|compound|action}}: An action to perform when button is clicked. See {{slink|Dialog|Action format}}&lt;br /&gt;
**{{nbt|compound|no}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Click action for negative outcome.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|label}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Text component.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|tooltip}}: Optional text component to display when button is highlighted or hovered over.&lt;br /&gt;
***{{nbt|int|width}}: Value between 1 and 1024 — Width of the button. Defaults to 150.&lt;br /&gt;
***{{nbt|compound|action}}: An action to perform when button is clicked. See {{slink|Dialog|Action format}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== multi_action ===&lt;br /&gt;
[[File:Multi action dialog.png|thumb|right|A {{cd|minecraft:multi_action}} dialog type.]]&lt;br /&gt;
&lt;br /&gt;
A dialog screen with a scrollable list of action buttons arranged in columns. If {{nbt|compound|exit_action}} is present, a button for it will appear in the footer, otherwise the footer is not present. {{nbt|compound|exit_action}} is also used for the Escape action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound}} The root tag.&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:multi_action&amp;lt;/code&amp;gt;.&lt;br /&gt;
**{{nbt inherit/dialog}}&lt;br /&gt;
**{{nbt|list|actions}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Non-empty list of click actions.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|label}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Text component.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|tooltip}}: Optional text component to display when button is highlighted or hovered over.&lt;br /&gt;
***{{nbt|int|width}}: Value between 1 and 1024 — Width of the button. Defaults to 150.&lt;br /&gt;
***{{nbt|compound|action}}: An action to perform when button is clicked. See {{slink|Dialog|Action format}}&lt;br /&gt;
**{{nbt|int|columns}}: Positive integer describing number of columns. Defaults to 2.&lt;br /&gt;
**{{nbt|compound|exit_action}}: Action for leaving the dialog.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|label}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Text component.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|tooltip}}: Optional text component to display when button is highlighted or hovered over.&lt;br /&gt;
***{{nbt|int|width}}: Value between 1 and 1024 — Width of the button. Defaults to 150. &lt;br /&gt;
***{{nbt|compound|action}}: An action to perform when button is clicked. See {{slink|Dialog|Action format}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== server_links ===&lt;br /&gt;
[[File:Server links dialog.png|thumb|right|An empty {{cd|minecraft:server_links}} dialog type.]]&lt;br /&gt;
&lt;br /&gt;
A dialog screen with scrollable list of [[Minecraft:server links]], arranged in columns. If {{nbt|compound|exit_action}} is present, a button for it will appear in the footer, otherwise the footer is not present. {{nbt|compound|exit_action}} is also used for the Escape action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
*{{nbt|compound}} The root tag.&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:server_links&amp;lt;/code&amp;gt;.&lt;br /&gt;
**{{nbt inherit/dialog}}&lt;br /&gt;
**{{nbt|compound|exit_action}}: Action for leaving the dialog.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|label}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Text component.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|tooltip}}: Optional text component to display when button is highlighted or hovered over.&lt;br /&gt;
***{{nbt|int|width}}: Value between 1 and 1024 — Width of the button. Defaults to 150. &lt;br /&gt;
***{{nbt|compound|action}}: An action to perform when button is clicked. See {{slink|Dialog|Action format}}&lt;br /&gt;
**{{nbt|int|columns}}: Positive integer describing number of columns. Defaults to 2.&lt;br /&gt;
**{{nbt|int|button_width}}: Value between 1 and 1024 — Width of the button. Defaults to 150.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== dialog_list ===&lt;br /&gt;
[[File:Dialog list dialog.png|thumb|right|A {{cd|minecraft:dialog_list}} type dialog with all dialog types.]]&lt;br /&gt;
&lt;br /&gt;
A dialog screen with scrollable list of buttons leading directly to other dialogs, arranged in columns. Titles of those buttons will be taken from {{nbt|string|external_title}} fields of targeted dialogs. If {{nbt|compound|exit_action}} is present, a button for it will appear in the footer, otherwise the footer is not present. {{nbt|compound|exit_action}} is also used for the Escape action.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound}} The root tag.&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:dialog_list&amp;lt;/code&amp;gt;.&lt;br /&gt;
**{{nbt inherit/dialog}}&lt;br /&gt;
**{{nbt|string}}{{nbt|compound}}{{nbt|list|dialogs}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: {{json ref|dialog|tag=1|inline=1|tag_link=dialog tag (Java Edition)}} to show in the list.&lt;br /&gt;
**{{nbt|compound|exit_action}}: Action for leaving the dialog.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|label}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Text component.&lt;br /&gt;
***{{nbt|string}}{{nbt|list}}{{nbt|compound|tooltip}}: Optional text component to display when button is highlighted or hovered over.&lt;br /&gt;
***{{nbt|int|width}}: Value between 1 and 1024 — Width of the button. Defaults to 150. &lt;br /&gt;
***{{nbt|compound|action}}: An action to perform when button is clicked. See {{slink|Dialog|Action format}}&lt;br /&gt;
**{{nbt|int|columns}}: Positive integer describing number of columns. Defaults to 2.&lt;br /&gt;
**{{nbt|int|button_width}}: Value between 1 and 1024 — Width of the button. Defaults to 150.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Body format{{anchor|dialog_body_types}} ==&lt;br /&gt;
All dialogs have a list of body elements describing contents between title and actions or inputs.&lt;br /&gt;
&lt;br /&gt;
=== plain_message ===&lt;br /&gt;
A multiline label.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound}}: The body element&lt;br /&gt;
** {{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:plain_message&amp;lt;/code&amp;gt;&lt;br /&gt;
** {{nbt|string}}{{nbt|list}}{{nbt|compound|contents}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Text component. Does not support nbt, score and selector components.&amp;lt;ref name=&amp;quot;no-component-resolution&amp;quot;/&amp;gt;&lt;br /&gt;
** {{nbt|int|width}}: Value between 1 and 1024 — Maximum width of message. Defaults to 200.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== item ===&lt;br /&gt;
An item with optional description. It appears like it is in the [[Minecraft:inventory]] slot when the mouse hovers over the item. The size does not scale even if width and height are set to other values than the default. If the description is present, then it appears next to the right side of the item.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound}}: The body element&lt;br /&gt;
** {{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:item&amp;lt;/code&amp;gt;&lt;br /&gt;
** {{nbt|compound|item}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Item stack with count.&lt;br /&gt;
*** {{nbt|string|id}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: Item identifier.&lt;br /&gt;
*** {{nbt|int|count}}: Item count.&lt;br /&gt;
*** {{nbt|compound|components}}: Optional. Additional information about the item. See [[Minecraft:Data component format|item components]].&lt;br /&gt;
** {{nbt|string}}{{nbt|list}}{{nbt|compound|description}}: A compound or a text component (does not support nbt, score and selector components.&amp;lt;ref name=&amp;quot;no-component-resolution&amp;quot;/&amp;gt;)&lt;br /&gt;
*** {{nbt|string}}{{nbt|list}}{{nbt|compound|contents}}: Text component (does not support nbt, score and selector components.&amp;lt;ref name=&amp;quot;no-component-resolution&amp;quot;/&amp;gt;)&lt;br /&gt;
*** {{nbt|int|width}}: Value between 1 and 1024 — Maximum width of message. Defaults to 200.&lt;br /&gt;
** {{nbt|bool|show_decoration}}: If true, count and damage bar will be rendered over the item. Defaults to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
** {{nbt|bool|show_tooltip}}: If true, item tooltip will show up when item is hovered. Defaults to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
** {{nbt|int|width}}: Value between 1 and 256 — Horizontal size of element. Defaults to 16.&lt;br /&gt;
** {{nbt|int|height}}: Value between 1 and 256 — Vertical size of element. Defaults to 16.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Input control format{{anchor|input_control_type}} ==&lt;br /&gt;
[[File:Input controls dialog.png|thumb|right|All input controls on a dialog.]]&lt;br /&gt;
&lt;br /&gt;
Input controls are used to receive certain information from the players. These information can be used with the associated {{nbt|string|key}} tag, for example, when an action button is clicked, the {{nbt|string|key}} can be used to reference information stored on that input control, either when running a command with [[Minecraft:macro]] substitution, or a custom NBT tag sent to the [[Minecraft:server]] (see {{slink||Dynamic action types}}).&lt;br /&gt;
&lt;br /&gt;
All input control types have a label field. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=treeview&amp;gt;&lt;br /&gt;
*{{nbt|compound}}: The input control&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: One of dialog types from the &amp;lt;code&amp;gt;minecraft:input_control_type&amp;lt;/code&amp;gt; registry:&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:text&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:boolean&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:single_option&amp;lt;/code&amp;gt;&lt;br /&gt;
***&amp;lt;code&amp;gt;minecraft:number_range&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;section begin=&amp;quot;input control common&amp;quot; /&amp;gt;**{{nbt|string|key}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: String identifier of value used when submitting data, must be a valid template argument (letters, digits and &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt;).&lt;br /&gt;
**{{nbt|string}}{{nbt|list}}{{nbt|compound|label}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: A [[Minecraft:text component]] to be displayed to the left of the input.&amp;lt;section end=&amp;quot;input control common&amp;quot; /&amp;gt;&lt;br /&gt;
** Additional fields based on {{nbt|string|type}}, see below.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== text ===&lt;br /&gt;
A basic, single line, text input.&lt;br /&gt;
&lt;br /&gt;
Output values:&lt;br /&gt;
* As template substitution: contents with special characters escaped using [[Minecraft:NBT_format#Escape_sequences|escape sequences]] to fit into an [[Minecraft:SNBT]] string.&lt;br /&gt;
* As tag: a string tag with contents without modification.&lt;br /&gt;
&amp;lt;div class=treeview&amp;gt;&lt;br /&gt;
*{{nbt|compound}}: The input control&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:text&amp;lt;/code&amp;gt;&lt;br /&gt;
** {{Nbt inherit/dialog/input control}}&lt;br /&gt;
** {{nbt|int|width}}: Value between 1 and 1024 — The width of the input. Defaults to 200.&lt;br /&gt;
** {{nbt|bool|label_visible}}: Controls if the label is visible. Defaults to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
** {{nbt|string|initial}}: The initial value of the text input.&lt;br /&gt;
** {{nbt|int|max_length}}: Maximum length of input. Defaults to 32.&lt;br /&gt;
** {{nbt|compound|multiline}}: If present, allows users to input multiple lines, optional object with fields:&lt;br /&gt;
*** {{nbt|int|max_lines}}: Optional positive integer. If present, limits maximum lines.&lt;br /&gt;
*** {{nbt|int|height}}: Value between 1 and 512 — Height of input.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== boolean ===&lt;br /&gt;
A checkbox.&lt;br /&gt;
&lt;br /&gt;
Output values:&lt;br /&gt;
* As template substitution: {{nbt|string|on_true}} when checked, {{nbt|string|on_false}} when unchecked.&lt;br /&gt;
* As tag: &amp;lt;code&amp;gt;1b&amp;lt;/code&amp;gt; when checked, &amp;lt;code&amp;gt;0b&amp;lt;/code&amp;gt; when unchecked.&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
*{{nbt|compound}}: The input control&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:boolean&amp;lt;/code&amp;gt;&lt;br /&gt;
** {{Nbt inherit/dialog/input control}}&lt;br /&gt;
** {{nbt|bool|initial}}: The initial value of the checkbox. Defaults to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; (unchecked).&lt;br /&gt;
** {{nbt|string|on_true}}: The string value to send when true. Defaults to &amp;#039;true&amp;#039;.&lt;br /&gt;
** {{nbt|string|on_false}}: The string value to send when false. Defaults to &amp;#039;false&amp;#039;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== single_option ===&lt;br /&gt;
A preset option selection.&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
*{{nbt|compound}}: The input control&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:single_option&amp;lt;/code&amp;gt;&lt;br /&gt;
** {{Nbt inherit/dialog/input control}}&lt;br /&gt;
** {{nbt|bool|label_visible}}: Controls if the label is visible. Defaults to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
** {{nbt|int|width}}: Value between 1 and 1024 — The width of the input. Defaults to 200.&lt;br /&gt;
** {{nbt|list|options}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: A non-empty list of options to be selected from:&lt;br /&gt;
*** {{nbt|compound|option}}: An option compound.&lt;br /&gt;
**** {{nbt|string|id}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: The value to be sent on submit.&lt;br /&gt;
**** {{nbt|string}}{{nbt|list}}{{nbt|compound|display}}: A text component for what the option is displayed as.&lt;br /&gt;
**** {{nbt|bool|initial}}: Only one option can have this set to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;. If &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, the option chosen will be the initial one. Defaults to the first option being &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, and all others &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== number_range ===&lt;br /&gt;
A number slider.&lt;br /&gt;
&lt;br /&gt;
Output values:&lt;br /&gt;
* As template substitution: text representation of current value.&lt;br /&gt;
** Whole numbers will be sent without decimal point.&lt;br /&gt;
* As tag: a float tag with current value.&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
*{{nbt|compound}}: The input control&lt;br /&gt;
**{{nbt|string|type}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: &amp;lt;code&amp;gt;minecraft:number_range&amp;lt;/code&amp;gt;&lt;br /&gt;
**{{Nbt inherit/dialog/input control}}&lt;br /&gt;
** {{nbt|string|label_format}}: A translation key to be used for building label (first argument is contents of label field, second argument is current value). Defaults to &amp;lt;code&amp;gt;options.generic_value&amp;lt;/code&amp;gt;.&lt;br /&gt;
** {{nbt|int|width}}: Value between 1 and 1024 — The width of the input. Defaults to 200.&lt;br /&gt;
** {{nbt|float|start}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: The minimum number of the slider.&lt;br /&gt;
** {{nbt|float|end}}&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;: The maximum number of the slider.&lt;br /&gt;
** {{nbt|float|step}}: Step size (If present, only values of &amp;lt;math&amp;gt;initial + &amp;lt;any integer&amp;gt; * step&amp;lt;/math&amp;gt; will be allowed. If absent, any value from the range is allowed).&lt;br /&gt;
** {{nbt|float|initial}}: The initial increment value of the slider. Defaults to the middle of the range.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Action format{{anchor|action_format}} ==&lt;br /&gt;
=== Static action types ===&lt;br /&gt;
Static actions are actions that don&amp;#039;t depend on the value of an input field. They are identical to [[Minecraft:Text component format#Click events|text component events]] (except for &amp;lt;code&amp;gt;open_file&amp;lt;/code&amp;gt;). They use the same format but with the &amp;lt;code&amp;gt;action&amp;lt;/code&amp;gt; tag replaced with &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For example, when using &amp;lt;code&amp;gt;show_dialog&amp;lt;/code&amp;gt;, entry for action button will look like:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;Show dialog label&amp;quot;,&lt;br /&gt;
    &amp;quot;action&amp;quot;: {&lt;br /&gt;
        &amp;quot;type&amp;quot;: &amp;quot;show_dialog&amp;quot;,&lt;br /&gt;
        &amp;quot;dialog&amp;quot;: &amp;quot;custom:my_dialog&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{#lst:Text component format|click_events}}&lt;br /&gt;
&lt;br /&gt;
=== Dynamic action types ===&lt;br /&gt;
Can be used in conjunction with input controls.&lt;br /&gt;
==== dynamic/run_command ====&lt;br /&gt;
This action will build a &amp;lt;code&amp;gt;run_command&amp;lt;/code&amp;gt; event using a provided macro template (example: &amp;lt;code&amp;gt;/say $(message)&amp;lt;/code&amp;gt; if you have a text input with an ID &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt;)&lt;br /&gt;
&amp;lt;div class=treeview&amp;gt;&lt;br /&gt;
* {{nbt|compound|action}}&lt;br /&gt;
** {{nbt|string|type}}: &amp;lt;code&amp;gt;dynamic/run_command&amp;lt;/code&amp;gt;&lt;br /&gt;
** {{nbt|string|template}}: A string with a macro template to be interpreted as a command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== dynamic/custom ====&lt;br /&gt;
This method will build a &amp;lt;code&amp;gt;minecraft:custom&amp;lt;/code&amp;gt; event using all input values.&lt;br /&gt;
&lt;br /&gt;
All input contents will be sent together inside a {{nbt|compound}} compound tag, with tag value of each input put under id from key field of that input.&lt;br /&gt;
&lt;br /&gt;
Additional static fields can be added to payload.&lt;br /&gt;
&amp;lt;div class=treeview&amp;gt;&lt;br /&gt;
* {{nbt|compound|action}}&lt;br /&gt;
** {{nbt|string|type}}: &amp;lt;code&amp;gt;dynamic/custom&amp;lt;/code&amp;gt;&lt;br /&gt;
** {{nbt|compound|additions}}: Fields to be added to payload.&lt;br /&gt;
** {{nbt|string|id}}: Namespaced ID.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dialog tag ==&lt;br /&gt;
{{main|Dialog tag (Java Edition)}}&lt;br /&gt;
A [[Minecraft:data pack]] can apply one or more dialogs to the [[Minecraft:pause screen]] and the {{control|quick actions}} hotkey using the {{tag link|dialog|minecraft:pause_screen_additions}} and {{tag_link|dialog|minecraft:quick_actions}} tags. If multiple dialogs are applied to the same method, the built-in &amp;lt;code&amp;gt;minecraft:custom_options&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;minecraft:quick_actions&amp;lt;/code&amp;gt; dialog is shown instead which by default feature a list of all dialogs in the respective tags, using the {{nbt|string|external_title}} tag in the dialogs.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.21.6|dev=25w20a|Dialogs were introduced.}}&lt;br /&gt;
|{{HistoryLine|||dev=25w21a|{{cd|run_command}} click actions now correctly close dialogs even if the command does not require elevated permissions.|Dialogs should now correctly return to the previous non-dialog screen on close in all cases.|If a new dialog is received by the client while warning screen is visible, it will not replace it, but when user clicks the &amp;quot;Back&amp;quot; button, the new dialog will be restored instead.|The sizes of elements in dialogs are now restricted.}}&lt;br /&gt;
|{{HistoryLine|||dev=Pre-Release 1|Dialogs can now configure if they pause the game and if they close after an action is taken.|Every dialog can now have inputs and can submit information.|The {{cd|minecraft:custom}} click event has been expanded to carry full a NBT tag.|A new keybind called &amp;quot;Quick Actions&amp;quot; has been added to allow accessing content-configured dialogs.|{{cd|simple_input_form}} and {{cd|multi_action_input_form}} were removed}}&lt;br /&gt;
|{{HistoryLine|||dev=Pre-Release 2|The {{cd|minecraft:text}} input control now escapes special characters in the input when used in template substitution.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox Java Edition technical|datapack}}&lt;br /&gt;
[[Category:UI]]&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Dialogdefinition]]&lt;br /&gt;
[[Minecraft:ja:ダイアログ]]&lt;br /&gt;
[[Minecraft:pt:Diálogo]]&lt;br /&gt;
[[Minecraft:ru:Диалог]]&lt;br /&gt;
[[Minecraft:zh:对话框定义格式]]&lt;/div&gt;</summary>
		<author><name>SyncBot</name></author>
	</entry>
</feed>