GameplayBedrockEducation

/dialogue

Opens an NPC's dialogue UI for players, or changes the dialogue scene shown. Works with NPC entities placed via the NPC spawn egg — the Bedrock way to script branching conversations.

What is /dialogue used for?

What /dialogue is for

Opens an NPC's dialogue UI for players, or changes which dialogue scene is shown, on Bedrock.

When to use /dialogue

Script branching NPC conversations with NPC entities. For data-driven dialog screens on Java, see /dialog.

Syntax

Parameters

action
literal
open or change.
npc
entity selector
The NPC entity.
player
target
Players who see the dialogue.

Examples

  • Open the nearest NPC's dialogue for yourself.

Permission level

/dialogue requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.