Datapack dialog
Dialogs are simple interfaces to show to the player using the Dialog command.
-
Create a folder named
dialog
in you Datapack namespaceDirectory<datapack>
- pack.mcmeta
- pack.png
Directorydata
Directoryminecraft
- …
Directory<namespace>
Directorydialog
- …
-
Create a
<dialog>.json
file for your dialoghello_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 .
-
Display your dialog with
/dialog show @s <datapack>:<dialog>
.
Here is a project showcasing the dialog system. Dialog Teleport.