Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Volume Fix
Fix volume controls in Minecraft to work as intended. In particular, very loud sounds (thunder, jukeboxes, fireworks) should now react properly to changes in the appropriate volume sliders!
The why (technical)
In vanilla Minecraft, will only play for players within a certain distance. The distance is based on the volume of the sound being played. This means loud sounds (i.e. thunder) are set to an absurd volume in order to be heard from anywhere. The side effect of this is that no matter what you set your weather volume slider to, the thunder sound will always be played at 100% volume. Some other loud sounds like jukeboxes and fireworks suffer from the same problem, though not as extreme (the volume slider does nothing for them until it gets really low).
In order to fix this, I've capped all the internal volumes to 100%, then used the original volume value to determine the range like normal. This results in sounds being audible from the expected range, but the actual volume level scaling correctly with the slider.