资源包托管
Resource Pack Host 是一个轻量级、兼容 Folia 的插件,允许你通过嵌入式 HTTP 服务器直接从 Minecraft 服务器托管你的 Minecraft 资源包。无需 Dropbox、Google Drive 或单独的 Web 服务器。只需将资源包的 ZIP 文件放入插件文件夹,配置端口,该插件就会为你的玩家提供资源包服务。
功能特性
- ✅ 兼容 Folia
- ✅ 轻量级嵌入式 HTTP 服务器
- ✅ 无需外部托管服务
- ✅ 配置简单
- ✅ 可配置的 HTTP 端口和绑定地址
- ✅ 自动生成资源包下载 URL
- ✅ 自动生成 SHA-1 哈希值
- ✅ 无需重启服务器即可重载配置
安装步骤
- 下载该插件。
- 将 JAR 文件放入服务器的
plugins 文件夹中。
- 启动服务器一次以生成配置文件。
- 停止服务器。
设置指南
- 将你的资源包
.zip 文件放入以下目录:
plugins/ResourcePackHost/resourcepacks/
-
打开 plugins/ResourcePackHost/config.yml。
-
配置以下选项:
- HTTP 端口
- 绑定地址(除非你知道需要不同的设置,否则请保持为
0.0.0.0)
- 资源包文件名
-
启动服务器。
-
插件将在控制台中生成下载 URL 和 SHA-1 哈希值。
-
将生成的 URL 复制到你的 server.properties 文件中:
resource-pack=http://YOUR_PUBLIC_IP:PORT/YourPack.zip
如有需要,你也可以在 resource-pack-sha1 中使用生成的 SHA-1 哈希值。
重要提示 - 端口转发
为了让局域网外的玩家能够下载你的资源包,你必须在路由器上为你在 config.yml 中配置的 HTTP 端口(例如 8123)进行端口转发。
此外,你需要在 resource-pack URL 中使用你的公网 IP 地址(或指向该 IP 的域名)。如果使用本地 IP(如 192.168.x.x),则仅能在家庭网络内的设备上使用。
如果端口转发不正确,玩家将无法下载资源包。
命令
| 命令 |
描述 |
/resourcepackhost info |
显示当前配置、URL 和 SHA-1 哈希值。 |
/resourcepackhost reload |
重载插件配置。 |
权限
| 权限 |
描述 |
默认值 |
resourcepackhost.info |
允许使用 /resourcepackhost info。 |
OP |
resourcepackhost.reload |
允许使用 /resourcepackhost reload。 |
OP |
支持
如果你遇到任何问题或有功能建议,请在 Modrinth 页面提交 Issue。
Resource Pack Host
Resource Pack Host is a lightweight, Folia-compatible plugin that lets you host your Minecraft resource pack directly from your Minecraft server using an embedded HTTP server. There's no need for Dropbox, Google Drive, or a separate web server. simply place your resource pack ZIP into the plugin folder, configure a port, and the plugin will serve it to your players.
Features
- ✅ Folia compatible
- ✅ Lightweight embedded HTTP server
- ✅ No external hosting required
- ✅ Simple configuration
- ✅ Configurable HTTP port and bind address
- ✅ Automatic resource pack URL generation
- ✅ SHA-1 hash generation
- ✅ Reload configuration without restarting the server
Installation
- Download the plugin.
- Place the JAR into your server's
plugins folder.
- Start your server once to generate the configuration files.
- Stop the server.
Setup
- Place your resource pack
.zip file into:
plugins/ResourcePackHost/resourcepacks/
-
Open plugins/ResourcePackHost/config.yml.
-
Configure the following options:
- HTTP port
- Bind address (leave as
0.0.0.0 unless you know you need something different)
- Resource pack filename
-
Start your server.
-
The plugin will generate the download URL and SHA-1 hash in the console.
-
Copy the generated URL into your server.properties file:
resource-pack=http://YOUR_PUBLIC_IP:PORT/YourPack.zip
You can also use the generated SHA-1 hash in resource-pack-sha1 if desired.
Important - Port Forwarding
For players outside your local network to download your resource pack, you must port forward the HTTP port you configured in config.yml (for example, 8123) on your router.
You will also need to use your public IP address (or a domain name pointing to it) in the resource-pack URL. Using your local IP (such as 192.168.x.x) will only work for devices on your home network.
If the port is not forwarded correctly, players will not be able to download the resource pack.
Commands
| Command |
Description |
/resourcepackhost info |
Displays the current configuration, URL, and SHA-1 hash. |
/resourcepackhost reload |
Reloads the plugin configuration. |
Permissions
| Permission |
Description |
Default |
resourcepackhost.info |
Allows use of /resourcepackhost info. |
OP |
resourcepackhost.reload |
Allows use of /resourcepackhost reload. |
OP |
Support
If you encounter any issues or have feature requests, please open an issue on the Modrinth page.
评论 0
登录后参与评分
还没有评论,来抢沙发吧