Jump to content

How to Enable Priority Loading of Resources from 'resources' instead of Downloaded 'assets'?


Recommended Posts

Posted

I'm currently modifying the vanilla client for Minecraft 1.20.1, working on the integration of new audio resource files. During this process, I've discovered that Minecraft seems to only read audio resources from the downloaded 'assets' directory, and not from the 'resources' directory within the game's jar file.

What I aim to achieve is to have Minecraft first try to read the audio files from the 'resources' directory, and if the desired files are not found there, only then should it fall back to reading from the 'assets' directory.

I'm looking for guidance on how this can be implemented, or if there are any existing mechanisms that might assist in achieving this priority loading order. Any insights, code snippets, or directions to relevant documentation would be highly appreciated.

 

Looking for some pro help!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.