mojira.dev
MC-262858

Custom sound in the resource pack don't fade with distance

This issue has been tested and found in versions 1.19.4 and 1.20-pre4

The custom sounds in the resource pack constantly follow the player and maintain their initial volume while playing. For example, when using the playsound command to play vanilla sounds like minecraft:xxxxxx, there's no issue. However, when using the playsound command to play sounds from the resource pack, such as custom:bgm.01, they don't fade based on distance, even if more than 16 blocks away or farther.

Here's a simple resourcepack containing a custom audio file. is a stereo format. After using the command '/playsound test:bgm master @s', you'll notice that the sound doesn't fade with distance, even when exceeding 16 blocks.

After switching the audio file to mono, the issue was indeed resolved. So is this a feature or a bug?
I'd suggest adding an additional parameter to the playsound command to achieve a non-distance attenuating effect, for example: /playsound test:bgm master @s ~ ~ ~ 1 1 infinite
Instead of changing the audio file to stereo format.

Related issues

Attachments

Comments

migrated
[media][media]
migrated

Cannot reproduce, in any version since 1.6 (including 1.19.4 and 1.20-pre4); Please provide the resource pack and exact commands used.

violine1101

Also, is the sound stereo or mono?

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

migrated

Duplicate of MC-146721.

violine1101

Thank you for your report!
We're tracking this issue in MC-146721, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means 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 to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

migrated

I disagree with the closure of this issue. This is clearly a bug that should be fixed, as it was an unintended change to the original behavior, and breaks existing resource packs. In addition, it means that vanilla stereo sounds can never play properly in-world using `/playsound`. At the very least, there should be a warning when using stereo sounds that this is a side effect. Otherwise, other users will spend hours debugging like I did, when it's a Minecraft issue. One should not have to follow a random developer on Twitter in order to figure out there is a bug in the game that breaks all in-world stereo sounds from working properly.

migrated

It's been that way since 2019, and probably even before that. Additionally, this is a duplicate, not a report that got it's "own" resolution. And even more so, this is an OpenAL limitation, not something Minecraft code causes.

migrated

(Unassigned)

Unconfirmed

(Unassigned)

1.19.4, 1.20 Pre-release 4

Retrieved