Generator /dialog

Commands

Window with buttons and text - /dialogLearn more

On the top of the game with text and buttons -- rules at the entrance, server menu, teleport confirmation. Collect a dialog -- you get a command /dialog and a date pack that adds it to the pause menu. For Minecraft 1.21.6 and newer.

My game select version

We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.

View and text

Text - up to four paragraphs

Color and style - codes &as in MOTD: &6 - golden, &l - bold.

Buttons

Behavior and datapack

Result

Notice

Server Rules

Don't grief and respect others.

I accept

Command — 218 out of 256

/dialog show @s {type:"notice",title:{text:"Правила сервера",color:"gold"},body:[{type:"plain_message",contents:"Не гриферить и уважать других."}],action:{label:"Принимаю",action:{type:"run_command",command:"/spawn"}}}

Show dialog from datapack

/dialog show @s juxmc:rules

How to use

  1. By command - immediately

    Copy the command and execute it with operator rights: a window will open for you (@s). For everyone - replace with @a.

  2. Datapack - by name

    Archive - in world/datapacks, then /reload. The dialogue opens with a short command, and with a checkmark “Button in the pause menu” - also from the Esc menu.

  3. Upon entry

    Display at login is set by a plugin or Datepack Function by timer - the game does not have its own entry event.

What you need to know about dialogues

  • Since 1.21.6. Previously there was no /dialog command in the game. The format has been tested on dedicated servers 1.21.11 and 26.3 - both parse the same thing.
  • The button does not give rights. “Run command” runs it on behalf of the player: the command for operators will not work for a regular player. For such cases - /trigger.
  • “Enter into chat” puts the command in the chat line, but does not send it - the player adds it and presses Enter.
  • Pause. In single player, the default dialogue pauses the game; There is never a pause on the server.

Colored text in chat - Generator / Tellraw, menu of items on the server - DeluxeMenus.

Frequently asked questions

How to make a window with buttons in Minecraft?

Using the /dialog command: collect the title, text and buttons on the page and execute the finished command. Dialogues are available in 1.21.6 and later.

How to add a button to the pause menu?

Download the datapack with the “Button in the pause menu” checkbox: it puts the dialogue in the pause_screen_additions tag, and the button will appear in the menu by pressing Esc.

Is it possible to execute a command with a button?

Yes, the “Run command” action launches it on behalf of the player, with his rights. “Enter into chat” only puts the command in the chat line.