ZstdMC 是一个 Forge 1.20.1 模组,用 Zstandard (Zstd) 替换 Minecraft 原版网络压缩与解压流程,从而在多人和局域网联机中减少网络流量占用。
- Minecraft:
1.20.1 - Forge:
47.x - Java:
17(运行时可用 17+)
- 替换
Connection.setupCompression的压缩与解压处理器。 - 支持专用服务器与局域网(Open to LAN)场景。
- 提供调试统计(F3 右侧显示
[Zstd 压缩统计])。
- 将模组放入客户端与服务端(或局域网主机与加入方)
mods文件夹。 - 在
server.properties中设置:network-compression-threshold=128(建议256)。
fat:默认推荐,内置zstd-jni,多数环境可直接使用。fit:不内置zstd-jni,用于兼容场景。
一般情况下请优先使用 fat。
如果启动出现报错(例如与其他模组重复提供 zstd 相关类导致冲突),再切换到 fit 版本。
- 提示“无法加载有效的 resourcepackinfo”:
- 旧版构建缺少
pack.mcmeta,请使用本仓库重新构建后的新版本。
- 旧版构建缺少
ZstdMC is a Forge 1.20.1 mod that replaces Minecraft's vanilla packet compression/decompression with Zstandard (Zstd), reducing bandwidth usage in multiplayer and LAN sessions.
- Minecraft:
1.20.1 - Forge:
47.x - Java:
17(runtime 17+)
- Replaces compression handlers in
Connection.setupCompression. - Works on dedicated servers and integrated LAN hosts.
- Provides debug metrics on F3 (
[Zstd Metrics]).
- Put the mod on both client and server (or LAN host and all joining clients).
- Set this in
server.properties:network-compression-threshold=128(recommended256).
fat: recommended by default, bundleszstd-jni, and works out-of-the-box in most environments.fit: does not bundlezstd-jni, intended for compatibility cases.
In general, use fat first.
If startup fails (for example, duplicate zstd classes provided by another mod), switch to fit.
- If you see
invalid resourcepackinfo:- Older jars were missing
pack.mcmeta. Use a newly built jar from this repository.
- Older jars were missing
- 本项目的 Forge 迁移工作基于原作者项目,没有原项目就没有当前版本。
The Forge migration in this project is based on the original work, and this release would not exist without it. - Original project: MeguminKato/ZstdMc