I'm currently working on a resource pack for Minecraft, but I'm having a problem where the sounds can be heard at full volume any distance away from the origin while within limits. (So if you can't hear a sound after going 21 blocks away, you can still hear it at max volume until going 21 blocks away from the origin) It's getting very disrupting hearing Will Smith's "Yahh" multiple times at the same volume while the entities are different distances away. Is this problem fixable? If so, how can I do it? (I'm running Minecraft Java 1.14.4 on Windows 10 and I'm using Audacity to convert the files to .ogg)
The Meaning of Life, the Universe, and Everything.
I've never really done much with custom sounds before but since you had no reply I figured I'd try. Have you tried using attenuation_distance in your sounds.json? The wiki says that it does specifically what you're looking for, although it never mentions it for villagers, maybe that'll do it for you. https://minecraft.gamepedia.com/Sounds.json#File_structure