mojira.dev
MC-297961

Can't show dialogs that are in a JSON file of a Datapack

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

You can do /dialog show <selector> namespace:custom_dialog, your dialog file might be wrong, check the game logs.

Wjen i Put the fialog directlu in JSON in the command, it works

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.

It was at data/(namespace)/dialog/ yes.

We have to quit and rejoin the world ?

Yes, to reload dialogs, you need to rejoin.

flow_santohyj123 I tried and it works !

Loupieur

(Unassigned)

Unconfirmed

(Unassigned)

25w20a

Retrieved