Related discussion: here.
There are Minecraft resource/data pack optimizers, which can break compatibility with regular unzippers willingly or unwillingly, to reduce filesize or "protect" the files inside.
These can make unzip think that "zipfile claims to be last disk of a multi-part archive", and it terminates because "invalid zip file with overlapped components (possible zip bomb)", making unzip programs unable to extract them.
This little program allows you to unzip such zip archives e.g. the Wynncraft resource pack, (and probably every other normal archive too). It uses the same Java utility for unzipping as Minecraft, so it won't have any problem reading the not-really-standard kindof obfuscated zip files generated specifically for Minecraft by these tools.
DO NOT STEAL STUFF FOR YOUR PUBLIC SERVER/RESOURSEPACK/DATAPACK, ASK THE ORIGINAL CREATORS FIRST (even if you don't make profit). However, I think it should be fine for home use ;).
ALWAYS GIVE PROPER CREDIT TO THE ORIGINAL AUTHOR!
- Have Java installed (Java 8 and Java 17 tested, if there is a problem, you should use the java version that Minecraft uses).
- Download the program from Releases.
- Open a terminal.
- Choose the directory where you downloaded the program, e.g.
cd Downloads
- Run the program with
java -jar Unzip.jar my_zip_file.zip
replacingmy_zip_file.zip
with your zip file
You'll need to have (Open)JDK installed.
- Compiling to bytecode:
javac Unzip.java
- Creating the jar file:
jar cmvf META-INF/MANIFEST.MF Unzip.jar Unzip.class
- Running the program:
java -jar Unzip.jar my_zip_file.zip