Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Creators
Details
Remember Url Hashes
What It Does
This mod helps you avoid re-downloading server resource packs when you already have them.
Why Is This Mod Needed?
- Vanilla Minecraft tries to avoid re-downloading packs, but if the server doesn't provide a hash, it downloads the file every time. (Because it can't compare it with a cached copy)
- This mod remembers the last hash code of a resource pack based on its URL. (Because the URL is is obviously always present)
- If the file's URL differs between the pack updates, you won't miss any updates.
On servers with required resourcepacks with no hash code provided this can save you a lot of time when rejoining, because some packs are quite heavy.
Commands
Alternatively, for cases, where the link stays the same between pack updates, or if you suppose that you have an outdated resource pack, you can simply use:
/urlHashesResetAll
to reset all saved hashes/urlHashesResetLast
to reset the hash for the last loaded pack.
Additionally, you can use:
/urlHashesToggleSaving
to toggle saving the hashes between game sessions. It's off by default./urlHashesState
to see what's stored in the mod's "hash storage". Useful to figure out what's going on if you're confused.
If you have data saving disabled (by default), everything is stored within the same session, and if you have saving enabled, you'll have everything ready across multiple game sessions, fully minimizing the pack loading downtime.
Notes
Fortunately, Fabric allows to have mod working for multiple versions as the same file, so the mod supports the range of 1.21.1 - 1.21.8. You can always check the source code and try to update it yourself. I'll soon try to add a good guide for that in the Github "Readme", so you have a good chance of updating the mod or doing something like that. If something non-essential breaks, remove it :D
Alternative approach
You can have the same behaviour on your server where you are an an administrator.
For this, use my Paper server-side plugin: Provide Pack Hashes