In short, I have replaced the hurt sound of zombies with a custom .ogg music file in my resource pack. However, there is this problem that regardless of the distance between me and the zombie, the sound is always played at the exactly same volume. Even turning myself away from the zombie would not work. I have tried lowering the volume with the playsound
command but to no avail --- the hurt sounds still get played at the same volume albeit lower altogether.
I have also tried registering custom sounds with sounds.json
but the issue still exists.
Is there a way I can make custom sounds obey in-game physics? Any help would be greatly appreciated!