I'm building a resource pack and today I included some sounds. I was enjoying the better feeling of rain with the new sound when it stopped raining and the rain sound kept playing for at least 15 seconds after that.
I provide a resource pack with sounds that overextend (I also include fire.ogg because it also keeps playing when I put off the fire)
Currently Minecraft does not have an ability to pause/stop sounds (except if you open the pause menu, which comes with its own bugs [MC-35714]). I would recommend splitting the rain sounds into several sound files, and adding a fade-in/fade-out to them.
Also I would recommend creating a file called sounds.json (in
assets/minecraft
, and paste in the following:(basically list the sound locations in quotes, and don't put a comma on the last one). This makes sure that Minecraft plays all of the sounds (otherwise it only uses the first four). Also you don't need the empty folders if they don't contain sounds in them 🙂