hytale-server-mods
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstalling Mods on a Hytale Server
在Hytale服务器上安装模组
This skill covers installing and configuring mods on a Hytale dedicated server.
本指南涵盖Hytale专用服务器上模组的安装与配置方法。
Critical: Folder Location
重点:文件夹位置
Mods go in the folder, NOT !
mods/plugins/server/
├── mods/ ← PUT MODS HERE (.jar files)
│ ├── YourMod.jar
│ └── YourMod/ ← Config folder (auto-generated)
├── plugins/ ← OLD/WRONG location - mods won't load here
├── config.json ← Server config
└── universe/ ← World data模组需放在文件夹中,而非!
mods/plugins/server/
├── mods/ ← 在此处放置模组(.jar文件)
│ ├── YourMod.jar
│ └── YourMod/ ← 自动生成的配置文件夹
├── plugins/ ← 旧的/错误的位置 - 模组无法在此加载
├── config.json ← 服务器配置文件
└── universe/ ← 世界数据Installation Steps
安装步骤
1. Download the Mod
1. 下载模组
Get the file from CurseForge or other source.
.jar从CurseForge或其他来源获取文件。
.jar2. Upload to Server
2. 上传至服务器
bash
scp YourMod.jar user@server:/path/to/hytale/server/mods/bash
scp YourMod.jar user@server:/path/to/hytale/server/mods/3. Restart Server
3. 重启服务器
bash
undefinedbash
undefinedFor Docker:
针对Docker环境:
cd /path/to/hytale && docker compose restart
cd /path/to/hytale && docker compose restart
For bare metal:
针对裸金属服务器:
Stop → Start the server process
先停止服务器进程,再重新启动
undefinedundefined4. Verify Loading
4. 验证加载状态
Check server logs for the mod name:
bash
docker logs hytale-server 2>&1 | grep -i 'YourModName'Look for:
[PluginManager] - com.author:ModName在服务器日志中查找模组名称:
bash
docker logs hytale-server 2>&1 | grep -i 'YourModName'查找以下内容:
[PluginManager] - com.author:ModName5. Configure the Mod
5. 配置模组
After first load, config folder appears:
mods/
└── com.author_ModName/
└── ModName.json ← Edit this fileImportant: Stop the server before editing configs (server may overwrite on shutdown).
首次加载后,会生成配置文件夹:
mods/
└── com.author_ModName/
└── ModName.json ← 编辑此文件进行配置重要提示: 编辑配置文件前请先停止服务器(服务器可能会在关闭时覆盖配置)。
Common Issues
常见问题
Issue 1: Mod Not Loading
问题1:模组无法加载
Symptom: No log messages, commands not working
Causes & Fixes:
- Wrong folder - Move from to
plugins/mods/ - Docker not mounting - Check volumes include
docker-compose.yml./server/mods:/server/mods - Mod not registered - Some mods need entry in Mods section
config.json
症状: 无日志信息,模组命令无法生效
原因与解决方法:
- 文件夹错误 - 将模组从移动到
plugins/mods/ - Docker未挂载目录 - 检查中的卷配置是否包含
docker-compose.yml./server/mods:/server/mods - 模组未注册 - 部分模组需要在的Mods部分添加条目
config.json
Issue 2: Config Changes Not Applying
问题2:配置更改未生效
Symptom: Edit config, restart, settings revert
Fix: Stop server completely before editing:
bash
docker compose stop # Not restart!症状: 编辑配置后重启服务器,设置恢复原状
解决方法: 编辑前完全停止服务器:
bash
docker compose stop # 不要使用restart!Edit config
编辑配置文件
docker compose start
undefineddocker compose start
undefinedIssue 3: BlockCounter Limiting Features
问题3:BlockCounter限制功能
Symptom: "Limit reached" even with mod configured for unlimited
Cause: tracks placements from before mod was active
BlockCounter.jsonFix:
bash
docker compose stop症状: 即使模组配置为无限制,仍显示“已达限制”
原因: 会追踪模组激活前的方块放置记录
BlockCounter.json解决方法:
bash
docker compose stopReset the counter:
重置计数器:
echo '{"BlockPlacementCounts":{}}' > server/universe/worlds/default/resources/BlockCounter.json
docker compose start
undefinedecho '{"BlockPlacementCounts":{}}' > server/universe/worlds/default/resources/BlockCounter.json
docker compose start
undefinedIssue 4: LuckPerms Not Found Warning
问题4:LuckPerms未找到警告
Symptom: Log shows "LuckPerms API class not found"
Impact: Usually harmless - mod falls back to config file settings. Only install LuckPerms if you need per-rank permissions.
症状: 日志显示“LuckPerms API class not found”
影响: 通常无危害 - 模组会回退到配置文件设置。仅当您需要按权限组配置权限时,才需要安装LuckPerms。
Docker Considerations
Docker相关注意事项
The server runs in Docker, which means:
- Volume mounts matter - Only mounted folders are accessible
- File ownership - Files created by Docker may be owned by root
- Restart vs Stop/Start - Use then
stopwhen editing files the server writes tostart
服务器运行在Docker环境中,意味着:
- 卷挂载至关重要 - 只有挂载的文件夹才会被服务器访问
- 文件所有权 - Docker创建的文件可能归root用户所有
- Restart与Stop/Start的区别 - 编辑服务器会写入的文件时,请使用再
stopstart
Typical docker-compose.yml volumes:
典型的docker-compose.yml卷配置:
yaml
volumes:
- ./server:/server
- ./server/mods:/server/modsyaml
volumes:
- ./server:/server
- ./server/mods:/server/modsQuick Reference
快速参考
| Task | Command |
|---|---|
| Upload mod | |
| Restart server | |
| Stop for config edit | |
| Check mod loaded | |
| View config folder | |
| 任务 | 命令 |
|---|---|
| 上传模组 | |
| 重启服务器 | |
| 停止服务器以编辑配置 | |
| 检查模组是否加载 | |
| 查看配置文件夹 | |
Pre-Built Mods vs Custom Development
预构建模组与自定义开发
Pre-Built Mods (CurseForge)
预构建模组(CurseForge)
Download from CurseForge → Put in → Configure → Done!
.jarmods/从CurseForge下载文件 → 放入 → 配置 → 完成!
.jarmods/Packs (Data Mods) - CAN Create From Scratch ✅
数据包(数据模组)- 可自行创建 ✅
Use the skill to create Packs that:
hytale-pack-creator- Add blocks, items, textures
- Override game configs (GameplayConfigs, etc.)
- Add translations
Packs go in with a .
mods/YourPackName/manifest.json使用工具创建数据包,实现以下功能:
hytale-pack-creator- 添加方块、物品、纹理
- 覆盖游戏配置(GameplayConfigs等)
- 添加翻译内容
数据包需放在目录下,并包含文件。
mods/YourPackName/manifest.jsonJava Plugins - CAN Create ✅ (but setup required)
Java插件 - 可自行开发 ✅(但需完成相关配置)
You CAN create Java plugins. The setup requires:
- Java 25 - Hard requirement, uses modern features
- Extract API from HytaleServer.jar - Install to local Maven cache:
bash
mvn install:install-file \ -Dfile="HytaleServer.jar" \ -DgroupId=com.hypixel.hytale \ -DartifactId=Server \ -Dversion=1.0-SNAPSHOT \ -Dpackaging=jar - Use community maven mirror:
maven.hytale-modding.info/releases - Use Gradle plugin for build tooling
hytale-mod
See skill for full setup guide.
hytale-plugin-dev您可以开发Java插件,配置步骤如下:
- Java 25 - 硬性要求,需使用其现代特性
- 从HytaleServer.jar中提取API - 安装到本地Maven仓库:
bash
mvn install:install-file \ -Dfile="HytaleServer.jar" \ -DgroupId=com.hypixel.hytale \ -DartifactId=Server \ -Dversion=1.0-SNAPSHOT \ -Dpackaging=jar - 使用社区Maven镜像:
maven.hytale-modding.info/releases - 使用Gradle插件进行构建
hytale-mod
完整配置指南请参考相关文档。
hytale-plugin-dev