![]() |
VOOZH | about |
/dialogue| Permission level required |
1 |
|---|---|
| Restrictions | Cheat only |
{
"title": "<code>/dialogue</code>",
"rows": [
{
"field": "1",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Cheat article, displayed as Cheat) only<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Opens an NPC dialogue screen to the player(s), or changes the dialogue displayed by an NPC.
Dialogue can be branched with the use of a scene file. The scene file is a Json file located inside the dialogue folder in the root directory of the active behavior pack that contains all the information needed for branching dialogue. There is no limit to the amount of scene files, as the game reads all the files in the folder and call based on scene_tag property indicated in the given scene data.
See this documentation for scene file setup.
dialogue open <npc: target> <player: target> [sceneName: string]
dialogue change <npc: target> <sceneName: string> [player: target]
npc: target: CommandSelector<Actor>
minecraft:npc component.player: target: CommandSelector<Player>
open mode. In change mode, all players are affected if not specified.sceneName: string: basic_string
scene_tag property.change mode. In open mode, the last dialogue shown is used if not specified.\ can be used to escape characters).| Command | Trigger | Bedrock Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
npc: target fails to resolve to a singular entity with the minecraft:npc component. | Failed | |
player: target is a target selector that is not in player type. | ||
player: target fails to resolve one or more online players. | ||
sceneName: string fails to resolve to a dialogue tag in a behavior pack. | ||
| Otherwise | Successful |
| Command | Edition | Situation | Success Count |
|---|---|---|---|
| Any | Bedrock Edition | On fail | 0 |
| On success | 1 |
dialogue open @e[type=npc, tag=ducky] @p ducky_introdialogue change @e[type=npc, tag=ducky] ducky_intro @initiator| Bedrock Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.17.10 | beta 1.17.10.22 | Added /dialogue. | |||||
| Minecraft Education | |||||||
|---|---|---|---|---|---|---|---|
| 1.17.30 | 1.17.30.2 | Added /dialogue. | |||||
/dialogue Command" – Microsoft Learn, October 11, 2023.