Home›Java›Mods›Provide Pack Hashes
Provide Pack Hashes
ModsJava

Provide Pack Hashes

Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

by Daylight · on Modrinth

A plugin for automatic caching of server resourcepack's SHA1 hash. This allows you to not specify hash manually, while letting players join with…

⬇ Download on Modrinth
Provide Pack Hashes — screenshot 1Provide Pack Hashes — screenshot 2Provide Pack Hashes — screenshot 3Provide Pack Hashes — screenshot 4

Remember Url Hashes

What It Does

This plugin helps your players avoid re-downloading server resource packs when you already have them.

Why Is This Plugin Needed?

Commands

Commands

The plugin keeps track of your server resource pack's Id, URL and SHA-1 hash:
You can check that with /urlhashesstate:

Plugin's Data State

Updating the hash or changing the URL

If you updated the pack's url, the plugin will update the hash automatically, because the URL changed.
But if your link is always the same, you can easily run a command to update the hash whenever you want:

Or even tell the plugin to completely change the link to a new version and update the hash:

Both will tell you that it started to download the pack to determine it's hash:

Hash Update Or Full Pack URL Change

And everything will always be visible in your console too:

Console On Hash Update Or URL Change

You can tell the plugin to save the data between restarts:

Toggling Saving Data

So when the server restarts or reloads, it won't download the pack again:

Loaded With Saved Data

Note, that with saving and the same link all the time, you'll need to run /urlHashesUpdateHash yourself. Again, only if your link stays the same between updates.

Config Options

You can edit plugin's settings in the config (plugins/config/ProvidePackHashes) The only exclusive option there at the moment is whether you allow players (with permissions) to change the pack URL, or just console (by default).

Supported Environment

Paper servers (1.21 - 1.21.8)

Alternative approach

You can have the same behaviour on your client, if you play on a server with this issue and you aren't an administrator.
For this, use my Fabric client-side mod: Remember Url Hashes

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more