We can’t create a Dialog in a JSON file in a Datapack in /dialog/, because in game we can’t do /dialog show <selector> namespace:custom_dialog, we have to write JSON text directly IN THE COMMAND… (like this : /dialog show <selector> {“type“:”…”,”title”:”…”,…} )
Environment
Windows 10
Java Edition
25w20a
Comments 6
Both ways are a valid way to show dialogs, make sure your dialog file is in data/(namespace)/dialog/(dialog).json, and make sure you rejoin your world.
You can do /dialog show <selector> namespace:custom_dialog, your dialog file might be wrong, check the game logs.