mojira.dev
MC-203040

Sounds work cross-dimensionally with /playsound.

Explanation:

If the command: "/execute in minecraft:the_end run playsound <sound> master @a" is run in the overworld, the selected sound will be heard at the position the command is run from. This does not make sense as the sound is being played from the end dimension and as sound mechanics are based around distance there should be no way for the sound to reach the player.

Theory:

I would guess that the problem is in the /playsound command and how sounds work in general. When a sound is played for a player it is filtered based on coordinate differences (so you can't hear something 1000 block away) but only these. With most sounds, this would work fine cross-dimensionally as they would filter players to be played the sound based on their dimension. /playsound's filter doesn't have this fail-safe as it is defined by the player and only filters sounds based on coordinate distance.

Versions:

I haven't tested this bug on any version other than 1.16.3 (so I wouldn't trust my evaluation) but I would guess it is a bug in any version of the game with /playsound and target selectors able to be used cross-dimensionally (they may always have been able to be used as such).

Note:

The command example I gave works with other dimensions. I chose to use the end because it has no dimension scaling relative to the overworld. Using the nether you would want to go near to 0,0 to hear the sounds.

Comments 3

But @a selects all players on the server/world, no matter in which dimension they are, so where is the bug?

My point is that that most of the time when a sound in Minecraft is played it is played for players at certain coordinates in a dimension. The /playsound command does not do this. It plays a sound for players at a location but irrespective of dimension.

I think that playing a sound in the nether and having it heard in all dimensions unless you filter the players it is played to makes much less sense than playing a sound in the nether and having it heard in the nether.

My bug report was a (badly communicated) way of asking whether this behavior was intentional or not.

It's how the playsound command works at the moment in relation to @a - this is more something for the suggestion and feedback pages: Feedback website / Minecraft Suggestions on Reddit.

Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord

Orson Routt

(Unassigned)

Unconfirmed

(Unassigned)

1.16.3

Retrieved