跳到正文

PackCENHeaderFix

作者:default_user

There is no longer an error `invalid CEN header (bad entry name or comment)`

收藏

截图

介绍

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

PackCENHeaderFix

There is no longer an error invalid CEN header (bad entry name or comment)

It solves this problem by replacing Java Zip implementation with Apache Commons Compress implementation.

Example Story

You downloaded a ResourcePack from a RP author. You put it in your RP folder and tried to load it as usual, but you don’t see it in the RP selector.

Instead, Minecraft prints the following error in the log:

ea1aeace-2025-07-17-234748-png-png.png

It doesn’t appear in Mojira, precisely because it’s a bug that only appears under very extreme conditions. I haven’t seen it in the past few years of the game, and only very, very few RP authors have accidentally allowed their RP to be contaminated by this bug.

The cause of this bug is unknown, but it only affects the Java Zip implementation. RPs that experience this bug can still be force-loaded (although you won’t be able to find them in the selector), but I think it’s better to try to fix it.

About API

It’s intended for use with another mod of mine, which will rely on this one for additional functionality.

If you want to do something with it, my advice is don’t, I don’t want it to behave unexpectedly.

How to build?

After the clone repository, be sure to use the ./gradlew clean build command to build,
rather than executing any of them separately.

After the build is completed, a jars folder will be generated in the root directory,
where the final build results will be stored.

License

This work has a restrictive license in addition to the original license to prevent some unexpected behavior, see 404Setup Public License

常见问题

PackCENHeaderFix 支持哪些 Minecraft 版本?

PackCENHeaderFix 支持 Minecraft Java 版 1.20.6–26.1,共 14 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

PackCENHeaderFix 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

default_user 的其他作品

查看全部 →