Volume Fix

Volume Fix

Mod

Fix volume controls in Minecraft to work as intended.

Client Game MechanicsUtility

2,826 downloads
45 followers
Createda year ago
Updateda year ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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.

External resources



Project members

Roundaround

Owner


Technical information

License
MIT
Client side
required
Server side
unsupported
Project ID