Hello there !
With 1.12 versions (and below) we could use the playsound command like :
~/playsound minecraft:music.credits master @a[r=..10] ~ ~ ~ 2 1
~
It plays the credits sound to players in a radius of 10blocks, like all other sounds from entity or blocks. If we move away from the relative position, the volume of the sound decrease to 0 (or minimumVolume if sent)
But i tested the same command in 1.14.4 :
~/playsound minecraft:music.credits master @a[distance=..10] ~ ~ ~ 2 1~
Here, it's different. As far as I go (if i'm on target of selector) i'll always hear sound as a volume of 2, even if there is no arg for minimum volume. I searched on 1.13 changelog and other issues here, i found nothing that says something about it.
Either it's the new feature of minecraft.music used on playsound (said nowhere where i searched), or it's a bug.
Thank you !
Thank you for your report!
We're actually already tracking this issue in MC-146721, so I resolved and linked this ticket as a duplicate.
However, that ticket has already been resolved. That means that this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki