Skip to content

Datapack dialog

Dialogs are simple interfaces to show to the player using the Dialog command.

  1. Create a folder named dialog in you Datapack namespace

    • Directory<datapack>
      • pack.mcmeta
      • pack.png
      • Directorydata
        • Directoryminecraft
        • Directory<namespace>
          • Directorydialog
  2. Create a <dialog>.json file for your dialog

    hello_world.json
    {
    "type": "minecraft:notice", // The dialog type
    "title": "Dialog", // The dialog title, shown at the top of the dialog
    "body": [
    // The dialog content, list of UI elements or only one element
    {
    "type": "plain_message",
    "contents": "Hello world!"
    }
    ]
    }

    All the dialog syntax is aviable on the Minecraft Wiki Minecraft Wiki .

  3. Display your dialog with /dialog show @s <datapack>:<dialog>.

Here is a project showcasing the dialog system. Dialog Teleport.