Game Freezes for about 5 seconds when I play a custom Music Disc.

Started by Gunner Bodie on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Game Freezes for about 5 seconds when I play a custom Music Disc.

Game Freezes for about 5 seconds when I play a custom Music Disc. If I play a longer one, it freezes longer. I am on 2020.2 MCCreator and modding for 1.12.2. I can't update to a newer version as certain mods we use on my server are unavailable for newer versions.

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Lol I had this issue earlier…
Sat, 02/18/2023 - 07:31

Lol I had this issue earlier today when I was modifying a mod pack and found the fix. In the sounds.json file, make sure you have a line that says this exactly for each sound (include the quotes):

“stream”: true

 

this preloads the sound. having a stream value of false or 0 makes it so that the sound has to load when you first play it, causing a brief lag spike.