mojira.dev
MC-79973

rain1.ogg and rain2.ogg keep playing when rain stops

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)

Linked issues

Attachments

Comments 1

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:

{
 "ambient.weather.rain": {
    "category": "weather",
    "sounds": [
      "ambient/weather/rain1",
      "ambient/weather/rain2",
      "ambient/weather/rain3",
      "ambient/weather/rain4",
      "ambient/weather/rain5"
    ]
  }
}

(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 🙂

Thord Fox

Erik Broes

Unconfirmed

Minecraft 1.8.3, Minecraft 1.8.4

Retrieved