Minecraft – /playsound Globally on Server

minecraft-commandsminecraft-java-edition

I need to play a sound file (Disk 11) on my server so that everyone can hear it, but the problem I have is that the sound plays, but when the person goes too far away from where they were, it gets quieter and finally you can't hear it at all. Is there a way to play a sound globally so that everyone can hear it and when they move they still hear it fine. Here is what I have tried:

/playsound records.11 @a

Plays for everybody but still gets quieter as you move away!

/playsound records.11 @a [High Wolume]

Blasts your ears at the beginning!

/playsound records.11

Doesn't work, requires a player

I guess what I am asking is how to play the sound server-wide so you can hear it continuously until the end?

Best Answer

/playsound has a volume and a minimumVolume optional argument:

/playsound <sound> <player> [x] [y] [z] [volume] [pitch] [minimumVolume] 

If you set the minimumVolume to something other than 0, players will be able to hear it at that volume outside of the sound's normal audible range.

For example:

/playsound records.11 @a 0 0 0 1 1 1

It should also be noted that a volume larger than 1 doesn't actually make the sound louder, it just makes it able to be heard from further away.