Commands/music

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 ==
: Specifies a music track to play.
: 
: 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).
: Specifies the volume of the music track.
: Should be between 0 and 1 (inclusive).
: Specifies the duration the music track fades in/out.
: Should 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 ==
==Output==
== 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 ==
ja:コマンド/music
pt:Comandos/music
zh:命令/music
ru:Команды консоли/music