mojira.dev
MCPE-168234

Playsound: If area effected by /playsound is greater than attenuation distance then volume resets back to minimum value after having gone to zero

Procedure:

Place repeat command block with delay in ticks 5 always active unconditional with the command:

/playsound note.pling ~~~ @a[r=60] 2 1 1

Start walking away.

Expected result: sound should get quieter until volume reaches 1 and then should stop entirely once you have made it more than 60 blocks away

 

Observed result: sound drops down to 0 instead of 1 before abruptly resetting back to 1 at exactly 32 blocks away, and stays like that until you clear the 60 block radius at which point it goes back to 0 again as expected.

 

I feel like this is just a underflow issue but it may be something more complex

This is a problem because it limits the range of the sound to 32 blocks.

 

This effects be because I'm trying to make a system that warns the player when a fireball is approaching and the movement of the fireball is so fast that at 32 blocks you only have a few seconds of warning 

Comments 3

As of 1.19.70 the attenuation goes down to the minimum value given instead of 0 but resets to the maximum value once past 32 blocks,

 

rather than attenuating to 0 and resetting to the minimum value after 32 blocks

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please provide a video showcasing the issue?

Also, is the command set up correctly? I receive a syntax error when using it as is, and have to instead use:

/playsound note.pling @a[r=60] ~ ~ ~

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Jeff bezos

(Unassigned)

Unconfirmed

Xbox

1.19.63

Retrieved