/dialogue Command in Minecraft Bedrock Edition

Open and Change NPC Dialogue for Players

Bedrock EditionLogic & ScoreboardPermission: Game DirectorsCheats: Yes

The /dialogue command in Minecraft Bedrock Edition lets you control NPC dialogue menus directly. You can force an NPC menu to open on a player's screen or switch the conversation scene an NPC uses.

Map makers and creators use this command to build branching conversations and custom stories using scene files from behavior packs. It requires cheats to be enabled and a Game Directors permission level.

Syntax (2 forms)

  1. /dialogue open <npc: target> <player: target> [sceneName: string]

    Dialogue with NPC and player, optional sceneName

  2. /dialogue change <npc: target> <sceneName: string> [players: target]

    Dialogue with NPC and sceneName, optional player

Arguments

ArgumentTypeWhat it means
npctargetA required target selector that selects an entity with the NPC type to run the dialogue.
playertargetA player name or target selector that identifies who will see the opened dialogue menu.
playerstargetAn optional target selector or player name to specify which players see the changed dialogue scene.

Examples

Tips

Common mistakes

Bedrock vs Java

Minecraft Java Edition does not have a /dialogue command or a built-in NPC entity with dialogue menus.

FAQ

What is the difference between dialogue open and dialogue change?

The open option immediately pops the dialogue menu onto the player's screen, while the change option quietly updates which scene the NPC will show the next time a player interacts with it.

Where do the sceneName values come from?

A sceneName is a string that points to a custom scene file stored inside a behavior pack installed on your world.

Why is my NPC target selector not working?

The command requires the first target to be an entity of type NPC, so make sure you are targeting an actual NPC with a selector like @e[type=npc] and not a standard villager.

Related commands

/execute/function/packstack/reload/reloadpacketlimitconfig/schedule/scoreboard/scriptevent/sendshowstoreoffer/tag/testfor/testforblock/testforblocks/toggledownfall