#Bypass Minecraft sound attenuation

1 messages · Page 1 of 1 (latest)

solar granite
#

Hi guys, I'm using minecraft purpur 1.21 , and I'm trying to change the maximum hearable distance of a sound played.

Therefore I have a radius of 500 blocks let's say.
I want the sound to be hearable at 10% of its original volume, 500 blocks away.

A volume of 1.0 next to the sound emitter.
And decreasing the volume based on the distance, WHILST reversing the effect of minecraft sound attenuation of course.

For instance: Playing the same volume at 100 blocks, is something like 14 but I also want to gradually decrease the played sound, so I use a volume of 12

Since Minecraft 1.21 the way of calculating the attenuation calculated by Minecraft client has changed. And I struggle to find the exact formula to take in consideration the sound attenuation so I can reverse its effect

Is there any one that stumbled across the same issue?

solar granite
#

Anyone ?