Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Information icon.svg
This feature is exclusive to Bedrock Edition. 
music
Permission level
required

1

Restrictions

Cheat only

Allows the player to control playing music tracks.

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. Must be either a single word (no spaces) or a quoted string.
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 Single-precision floating-point format number. Must be between 0 and 1 (inclusive).

fadeSeconds: float: float

Specifies the duration the music track fades in/out.
Must be a Single-precision floating-point format number. Must be between 0 and 10 (inclusive).

repeatMode: MusicRepeatMode

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 arguments are not specified correctly Failed
/music play ...the fade seconds is more than 10.
the volume is more than 1.00
/music queue ...the current played music is set to loop
the volume is more than 1.00
the fade seconds is more than 10
/music stop ...no music is playing
the fade seconds is more than 10
/music volume ...the volume is more than 1.00
anyOn successPlays, queues, stops the music, or adjusts the music volume.

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.
Advertisement