Server ResourcePack Manager
适用于单个专用服务器的多资源包管理器。
功能
- 支持 1.20.3 引入的多资源包功能
- 自动计算资源包哈希值
- 配置文件简单易懂
- 提供重载命令,无需重启服务器即可更新资源包
- 可向玩家(或多个玩家)发送命令以重新应用资源包
安装
- 在你的 Minecraft 服务器上安装 Fabric 加载器。
- 安装 Fabric API 和 Fabric Language Kotlin。
- 从 Releases 或 Modrinth 安装该模组。
- 启动服务器以生成配置文件。
配置
配置文件位于 config/server-resource-pack-manager.json。你可以通过指定 URL 来添加多个资源包。
| 名称 |
描述 |
默认值 |
autoSend |
玩家加入时自动发送资源包 |
true |
promptMessage |
提示玩家下载资源包时显示的消息 |
"" |
required |
是否强制要求使用服务器资源包 |
false |
resourcePacks |
资源包 URL 列表 |
[] |
多资源包
列表中资源包的顺序决定了它们的应用顺序。
第一个资源包将最先应用,其次是第二个,依此类推。如果存在重复的资源包键名,则以第一次出现的为准。
示例
{
"autoSend": true,
"promptMessage": "",
"required": false,
"resourcePacks": [
"https://path/to/resourcepack1.zip",
"https://path/to/resourcepack2.zip"
]
}
在此示例中,resourcepack1.zip 将首先应用,随后是 resourcepack2.zip。
已应用的资源包将按照此顺序显示在游戏内设置菜单中。

命令
/resourcePackManager reload - 重载配置文件并更新资源包。
/resourcePackManager send [player] - 向指定玩家重新应用资源包;若未指定玩家,则作用于你自己。
* 图标由 Nano Banana 生成
Server ResourcePack Manager
Multi Server ResourcePack Manager for a single dedicated server.
Features
- Multi ResourcePack introduced in 1.20.3 is supported
- Automatic calculation of ResourcePack hash
- Simple configuration file
- Reload command to update ResourcePacks without server restart
- Send command to re-apply ResourcePacks to player(s)
Installation
- Install Fabric modloader on your Minecraft server.
- Install Fabric API and Fabric Language Kotlin.
- Install the mod from Releases or Modrinth.
- Start server to generate config
Configuration
The configuration file is located at config/server-resource-pack-manager.json. You can add multiple ResourcePacks by specifying their URL.
| Name |
Description |
Default |
autoSend |
Automatically send ResourcePack(s) on player join |
true |
promptMessage |
Message displayed to players when prompting for ResourcePack(s) |
"" |
required |
Whether to enforce server ResourcePack(s) |
false |
resourcePacks |
List of ResourcePack URLs |
[] |
Multi ResourcePack
The order of ResourcePacks in the list determines the order they are applied.
The first ResourcePack will be applied first, followed by the second, and so on. If there are duplicate ResourcePack keys, the first occurrence takes precedence.
Example
{
"autoSend": true,
"promptMessage": "",
"required": false,
"resourcePacks": [
"https://path/to/resourcepack1.zip",
"https://path/to/resourcepack2.zip"
]
}
In this example, resourcepack1.zip will be applied first, followed by resourcepack2.zip.
Applied resource packs will be shown in the in-game settings menu in this order.

Commands
/resourcePackManager reload - Reload the configuration file and update ResourcePacks.
/resourcePackManager send [player] - Re-apply ResourcePacks to the specified player, or yourself if no player is specified.
* Icon generated with Nano Banana
评论 0
登录后参与评分
还没有评论,来抢沙发吧