
Command
/dialog
Opens a dialog screen for players or closes the dialog they currently have open.
| /dialog clear <targets> |
| /dialog show <targets> <dialog> |
| Argument | Kind of value | What to type |
|---|---|---|
| <targets> | Target selector | The players who see the dialog or have it closed. One or more players. |
| <dialog> | Dialog | The dialog to show: the id of a dialog from the game or a data pack, or a complete dialog definition written directly in the command. |
| Permission level | 2: operators, worlds with cheats on, command blocks and functions |
| Works in | Singleplayer with cheats enabled and multiplayer servers. Needs permission level 2 (gamemasters): server operators, players with cheats, command blocks, and functions can all run it. |
| Result | Reports "Displayed dialog to" or "Cleared dialog for" with the player's name or the number of players. The number /execute store saves is the number of players targeted. |
| show | Opens the given dialog on the screen of every targeted player. |
| clear | Closes the dialog on the screen of every targeted player. |
| Built-in dialogs | The game includes minecraft:server_links, minecraft:custom_options, and minecraft:quick_actions. Data packs can add more. |
/dialog show @s minecraft:server_linksOpens the Server Links dialog for you.
/dialog show @a minecraft:quick_actionsOpens the Quick Actions dialog for all players.
/dialog clear @aCloses the open dialog for all players.

