/music

This feature is exclusive to Bedrock Edition and Minecraft Education.
 
/music
Permission level
required

1

Restrictions

Cheat only

Plays, queues, stops the music, or adjusts the music volume.

Syntax

music play <trackName: string> [volume: float] [fadeSeconds: float] [repeatMode: MusicRepeatMode]
Plays the music track.
music queue <trackName: string> [volume: float] [fadeSeconds: float] [repeatMode: MusicRepeatMode]
Adds the music track to the queue.
music stop [fadeSeconds: float]
Stops the music.
music volume <volume: float>
Adjusts the music volume.

Arguments

trackName: string: basic_string

Specifies a music track to play.
Must be a string. And it must be a single word that has no space or a double-quoted string (When quoted, \ can be used to escape characters).
Must be a music track name (e.g. record.cat), or a music track defined under the Json path "record.<music_name>" or "music.game.<music_name>" in the <a_resource_pack>/sounds/sound_definitions.json file (e.g. cat to play "Cat" music disc).

volume: float: float

Specifies the volume of the music track.
Must be a [Float]Single-precision floating-point number (from -(2-2-23)×2127 (≈-3.4×1038) to (2-2-23)2×127 (≈3.4×1038) ). Should be between 0 and 1 (inclusive).

fadeSeconds: float: float

Specifies the duration the music track fades in/out.
Must be a [Float]Single-precision floating-point number (from -(2-2-23)×2127 (≈-3.4×1038) to (2-2-23)2×127 (≈3.4×1038) ). Should be between 0 and 10 (inclusive).

repeatMode: MusicRepeatMode: enum

Specifies whether the music track repeats or not. If unspecified, defaults to play_once.
Must be one of loop and play_once.

Result

CommandTriggerBedrock Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
/music play ...The fade seconds are higher than 10 or lower than 0. Failed
The volume is higher than 1 or lower than 0.
/music queue ...The current playing music is set to loop.
The volume is higher than 1 or lower than 0.
The fade seconds are higher than 10 or lower than 0.
/music stop ...No music is playing.
The fade seconds are higher than 10 or lower than 0.
/music volume ...The volume is higher than 1 or lower than 0.
AnyOtherwiseSuccessful

Output

CommandEditionSituationSuccess Count
AnyBedrock EditionOn fail0
On success1

Example

Play the Pigstep music disc on repeat.

  • /music play record.pigstep 0.5 0 loop

Queue the Stal music disc.

  • /music queue record.stal 0.5 0 play_once

History

Bedrock Edition
1.16.100beta 1.16.100.58Added /music.

Navigation