Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/dialog

Command

/dialog

Opens a dialog screen for players or closes the dialog they currently have open.

Syntax

/dialog clear <targets>
/dialog show <targets> <dialog>

Arguments

ArgumentKind of valueWhat to type
<targets>Target selectorThe players who see the dialog or have it closed. One or more players.
<dialog>DialogThe 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.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled and multiplayer servers. Needs permission level 2 (gamemasters): server operators, players with cheats, command blocks, and functions can all run it.
ResultReports "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.
showOpens the given dialog on the screen of every targeted player.
clearCloses the dialog on the screen of every targeted player.
Built-in dialogsThe game includes minecraft:server_links, minecraft:custom_options, and minecraft:quick_actions. Data packs can add more.

Examples

/dialog show @s minecraft:server_links

Opens the Server Links dialog for you.

/dialog show @a minecraft:quick_actions

Opens the Quick Actions dialog for all players.

/dialog clear @a

Closes the open dialog for all players.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)