/playsound doesnt always play the sound to the correct players
Partner Rank:
3
Verification builds and Platforms:
ver. 1.16.10 release Win10
Summary:
When a playsound command is used to play a sound at a specific position, depending on the order the players are processed, not all players that should hear it will hear it.
Repro Steps:
- Open any world, invite a second player into it and join the world with that one as well.
- Make the players stand 20 blocks apart from each other
- Use a playsound command (like /playsound beacon.power @a <x y z>) to play a sound at the position of one player, then at the position of the other player, then far away out of the listening distance of both players. Make sure to play the sound for everyone (@a) without any modifiers other than the position
Observed Results:
The sound will not reliably play for (all) the player(s) that should be able to hear it. There will be an error message in the chat saying “Player X is too far away to hear the sound”. Even if both players are too far away, only one person will be mentioned in the message. If the host player is the one too far away, the guest player won’t hear the sound either.
Expected Results:
The sound is played for the player that is close enough to hear it. Also, both players are mentioned in the “too far away” message if they are too far away.
Screenshots/Videos attached: Yes/No
No.
Regression Builds:
none known.
Notes:
It seems to stop looking for players to play the sound to once it found one player that can’t hear the sound. A workaround for this is to only play the sound to those players who are actually in range to hear it because then it doesn’t take that exit too early, but you don’t always have the luxury of knowing that.
2020-08-12, 04:49 PM
2020-10-27, 10:33 PM
2020-10-27, 10:33 PM
0
0
-