All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Runtime Hash Updater

Runtime Hash Updater

by robotmonkey1000 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

SHA1 Runtime

This is a simple Fabric mod that enables you to update the hash for your server resource pack while the server is still running.

If you are anything like me, I like to constantly add new custom models to my resource pack just to add a little extra customization to Vanilla Minecraft. I do not like however having to ask people to stop what they are doing so I can restart the server to get it to read the new SHA1 Hash.

Since a standard server only reads the server.properties file on startup you must restart every time you make a change to your pack and add a new hash. That is why this was created, so I can tweak and add all I want and people can freely join in and out getting the new resource pack automagically.

Setup

Install on a Fabric server only.

  1. Once installed make sure your server.properties has a SHA1 Hash assigned and a URL for the resource pack. The hash does not have to be accurate as the config file that is generated will be used to serve your updated hashes.
  2. Run the server and join.
  3. Whenever you update your resource pack put the new hash in the config/ResourcePackHash.txt file or run the /updatehash command with the new hash.
  4. Once the new hash is added save the file and re-log in game. It should prompt you to install the new resource pack.

Usage:

Once installed you can edit the config/ResourcePackHash.txt file or run the /updatehash command with your new hash to update your hash. You can use /checkhash to get some info on which hash is being supplied.

You can also use /fetchhash to automagically calculate and set the hash. For a few seconds while the hash is calculated, may cause performance issues if your pack is large.

If you use a third party resource pack host, you can use /setpackurl to set the url of the pack without the need to restart the server.

Commands

/checkhash : Will print out info on the current supplied hash.

/updatehash HASH_EXAMPLE : Will update the config to contain the supplied hash.

/reload_pack : Forces all connected clients to load the resource pack

/fetchhash : Will hash the resourcepack currently at the URL from the server.properties (Or in override file) and save the hash to the config file.

/fetchhash reload : An optional parameter which will do the above, but force all clients connected to load the new pack

/setpackurl URL : Will update the pack override config to contain the supplied url and override the URL found in the server.properties. This is useful for people who host their packs on third party sites, or want version info in the zip name.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric
1mo ago 1
26.2
Fabric
4mo ago 1
26.1
Fabric
7mo ago 1
1.21.11
Fabric
11mo ago 1
1.21.x
Fabric
last yr. 1
1.21.9
Fabric
last yr. 1
1.21.5
Fabric
last yr. 1
1.21.4
Fabric
last yr. 1
1.21.4
Fabric
last yr. 1
1.21.3
Fabric
last yr. 1
1.21
Fabric
last yr. 1
1.21
Fabric
last yr. 1
1.20.6
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
1.20.3
Fabric
last yr. 1
1.20.2
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.19.x
Fabric
last yr. 1
1.19.x
Fabric
last yr. 1
Port to 26.3
Quick port to 26.2
Direct port to 26.1 thanks to Maescool!
Upgrade to 1.21.11
Small patch, silly me accidentally removed vanilla /reload
New command is /reload_pack
  • Added reload command
  • Added reload param to fetchhash
  • Updated for 1.21.9
Initial port for 1.21.5
This has been a bit of a re-write of some of the underlying systems. Functionality should all still be the same with the exception of one new command!


``
/setpackurl URL
``
This command allows you to dynamically update the URL of your resource pack while the server is still running. This is useful for people who use third party hosting for their packs which give randomly generated URL's or someone who wants version information in the ZIP file name.

Initial 1.21.3 Release
# Version 1.2.0
## Changes
  • Added a new command to auto-magically fetch the hash from the URL in your servers property file.
Welcome to 1.21!
A quick update for 1.20.6!
Fixes an issue where the packet size was incorrect.

Thanks to Maescool for submitting this issue and Henkelmax for the fix.
[1.1.0] Runtime Hash Updater 1.1.0 by robotmonkey1000 on Jan 28, 2023
Download
# Command

Added a command that allows any op on the server to update the hash file.

/updatehash HASH by replacing HASH with your hash for your resource pack you can now update the hash while in game.

You will still need to re-log into the server to get the new resource pack.
[1.0.0] Runtime Hash Updater 1.0.0 by robotmonkey1000 on Jan 13, 2023
Download
# Initial Version 1.0.0

Config file will be generated on player join or after running /checkhash command.
Runtime Hash Updater Icon
Download Runtime Hash Updater
Select game version
Select platform