SHA1 运行时
这是一个简单的 Fabric 模组,允许你在服务器仍在运行时更新服务端资源包的哈希值。
如果你和我一样,喜欢不断向我的资源包中添加自定义模型,以便为原版 Minecraft 增添一些额外的定制内容。然而,我不喜欢为了让我重启服务器以读取新的 SHA1 哈希而要求玩家停止他们正在做的事情。
由于标准服务器仅在启动时读取 server.properties 文件,因此每次更改资源包并添加新哈希时都必须重启。这就是创建此模组的原因,这样我就可以随意调整和添加内容,而玩家可以自由地加入和离开,并 自动 获取新的资源包。
安装
仅安装在 Fabric 服务器 上。
- 安装后,确保你的
server.properties中已分配了 SHA1 哈希和资源包的 URL。哈希值不必准确,因为生成的配置文件将用于提供你更新的哈希值。 - 运行服务器并加入游戏。
- 每当更新你的资源包时,将新哈希放入
config/ResourcePackHash.txt文件中,或使用/updatehash命令并提供新哈希。 - 添加新哈希后,保存文件并在游戏中重新登录。系统应会提示你安装新的资源包。
用法:
安装后,你可以编辑 config/ResourcePackHash.txt 文件,或使用 /updatehash 命令并提供新哈希来更新你的哈希值。
你可以使用 /checkhash 来获取有关当前提供的哈希值的一些信息。
你还可以使用 /fetchhash 来自动计算并设置哈希值。在计算哈希值的几秒钟内,如果你的资源包很大,可能会导致性能问题。
如果你使用第三方资源包托管服务,可以使用 /setpackurl 来设置包的 URL,而无需重启服务器。
命令
/checkhash:将打印出当前提供的哈希值的信息。
/updatehash HASH_EXAMPLE:将更新配置以包含提供的哈希值。
/reload_pack:强制所有连接的客户机加载资源包
/fetchhash:将对 server.properties(或覆盖文件)中 URL 处的当前资源包进行哈希处理,并将哈希值保存到配置文件中。
/fetchhash reload:一个可选参数,将执行上述操作,但强制所有连接的客户机加载新包
/setpackurl URL:将更新包覆盖配置以包含提供的 URL,并覆盖 server.properties 中找到的 URL。这对于在第三方站点托管包的人,或者希望在 zip 名称中包含版本信息的人非常有用。
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.
- 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.
- Run the server and join.
- Whenever you update your resource pack put the new hash in the
config/ResourcePackHash.txtfile or run the/updatehashcommand with the new hash. - 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.
下载 Runtime Hash Updater
下载 Runtime Hash Updater
下载 Runtime Hash Updater
下载 Runtime Hash Updater
下载 Runtime Hash Updater
下载 Runtime Hash Updater
下载 Runtime Hash Updater
下载 Runtime Hash Updater
下载 Runtime Hash Updater
下载 Runtime Hash Updater
移植到 26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧