GameplayBedrockEducation

/music

Controls the background music a player hears: play a track now, queue one to follow, set the volume, or stop with a fade. Great for setting mood in adventure maps without resource-pack hacks.

What is /music used for?

What /music is for

Plays, queues, or stops background music tracks for a player on Bedrock, with volume and fade control.

When to use /music

Set mood in adventure maps without resource-pack hacks. For sound effects rather than music, use /playsound.

Syntax

Parameters

action
literal
play / queue / stop / volume.
trackNameoptional
string
Music track ID (for play/queue).
volume / fadeoptional
float
Volume (0–1) and fade seconds.

Examples

  • Loop the credits track at full volume.

  • Fade out music over 2 seconds.

Permission level

/music 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.