跳到正文

Resource Pack Local Path

作者:Loat.dev

Allows you to use a local resource pack file in Minecraft without needing to upload it to a server.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Resource Pack Local Path

A server-side Fabric mod that allows you to use a local resource pack file in Minecraft without needing to upload it to a server.

How to use

Just place your resource pack file (Ex. my_resource_pack.zip) in the server’s root directory (ore anywhere else), and then set the resource-pack property in server.properties to the relative path of the resource pack file, like so:

resource-pack=./my_resource_pack.zip

Configuration

On first start, the mod generates a configuration file at <server_root_dir>/config/resource_pack_local_path/config.yml, where you can configure the following settings:

# The main configuration file for Resource Pack Local Path.

# The host/IP that will be used for clients when downloading a locally
# hosted resource-pack. This must be reachable from the client's network
# (your public IP/domain, with port forwarding if needed) - the mod cannot
# detect this automatically.
#
# The port used for hosting is the same as the server's port.
# @default: '127.0.0.1'
host: 127.0.0.1
# Whether resource-pack= pointing to a directory (instead of a .zip file)
# should automatically be zipped on the fly and cached.
# @default: true
auto-zip: true
# Directory (relative to the server root, or absolute) in which cached
# zipped resource packs are stored.
# @default: './config/resource_pack_local_path/cache'
cache-directory: ./config/resource_pack_local_path/cache

常见问题

Resource Pack Local Path 支持哪些 Minecraft 版本?

Resource Pack Local Path 支持 Minecraft Java 版 26.1–26.2,共 4 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Resource Pack Local Path 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Loat.dev 的其他作品

查看全部 →