I have taken a look at these two answers but they do not mention a way to force the Minecraft music to play: [1] [2]

I was wondering if there is a way to 'force' music to play, whether this is achieved through datapacks, commands, or simply by walking to a specific area under specific conditions to make it happen.

Does anyone know if there is any way of doing this?

  • is there a particular song you want, or do you just want music to be playing?
    – Millard
    Commented Dec 29, 2021 at 5:33
  • @Millard It's the music that randomly plays when you're out and about. Like if I'm chilling at my house in the game, music only randomly seems to play occasionally (like when morning comes). This is the music that I'm wondering how to force
    – Oast
    Commented Dec 29, 2021 at 7:53
  • To add to this, one of the comments from the other answers, in case it helps, is: "Until recently, I thought that is was completely random, but it actually isn't. A random track is selected at sunrise, sunset, noon, and midnight, though in some cases no music at all will be selected. This chooses completely randomly between the various Minecraft in-game music tracks."
    – Oast
    Commented Dec 29, 2021 at 8:01

1 Answer 1


You can force Minecraft music to play with the /playsound command.


playsound <sound> <source> <targets> [<position>] [<volume>] [<pitch>] [<minVolume>]

For example:

/playsound minecraft:music.creative music @s ~ ~ ~ 999999

(The volume is not how loud the sound is, but how far from the source you can still hear it. Since you probably don't want the music to fade when you move away from the position, it is set to an extremely high number.)

Using Minecraft's autocomplete feature, if you type in:

/playsound minecraft:music.

...a list of options will appear, and you can select which one you like.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .