Minecraft Decompiler. A useful tool/library to deobfuscate and decompile Minecraft(or any jar file) through popular mappings and various decompilers. Or use it as a lib to process obfuscation mappings such as converting a mapping to another format
A new pre-release of MinecraftDecompiler. This version should be like 3.0-alpha1
, but I'm too lazy to rename it. Version 2.5
won't be uploaded to GitHub Packages as it is a pre-release version.
Why publish a pre-release version: When I was refactoring the code, I realized that about 80% of the code is going to be changed, and renaming the version might be a little late, so I am going to release this version as a pre-release first.
What to do next(on 3.0): Update to Java 17, remove log4j, complete refactoring mapping output
Utils.java
)Automatic-Module-Name
attribute to the manifest fileDeobfuscateOptions
becomes package-privatethis
) in non-static methodsFull Changelog: https://github.com/MaxPixelStudios/MinecraftDecompiler/compare/v2.4...v2.5
Download the release artifact here: https://github.com/MaxPixelStudios/MinecraftDecompiler/suites/4763699033/artifacts/132388768
A new release of MinecraftDecompiler.
Changelog:
Apologize for being late to release v2.3. A new release of MinecraftDecompiler.
Changelog:
cn.maxpixel.mcdecompiler.deobfuscator
are cn.maxpixel.mcdecompiler.Deobfuscator
nowreverse(String)
method in AbstractMappingReader
to reverse namespaced mappings, but it has some limitations.--targetNamespace
option to specify the target namespace to remap to when using namespaced mappings.(BUG: I forgot to apply the arg to deobfuscator, so this option won't work. This will be fixed in the next release v2.4)Known Issues:
A new release of MinecraftDecompiler. But it is still recommended to use v2.1 instead of this version. v2.3 is the next recommended version.
Changelog:
NamespacedMapping
s. Others are PairedMapping
s--side
is not required when --version
is passed--reverse
option to use the reversed version of mapping to deobfuscate.Known Issues:
IMPORTANT NOTICE: Due to Minecraft 21w19a updated to Java16, MinecraftDecompiler will require Java16 to compile and use in the next release(v2.3)
You can download the jar file below to use.
Changes:
Known Issues:
After about a year of development, MinecraftDecompiler 2.0 is finally released. You can download the jar file below to use. The code has a lot of breaking changes, so I changed the major version number to 2.
Changes:
Known Issues:
Unsupported mapping formats: Tiny
The all known issues and unsupported mapping formats will be fixed and added in v2.1 which will be released at the end of Feb 2021.
A new release of MinecraftDecompiler.
Note: The project may only support Windows platforms, and and will support for cross-platform in the future.
You can download the jar file below to use.
Usage: Currently it doesn't support GUI, so you just need to type java -jar MinecraftDecompiler.jar --help
in cmd for help.
It still only supports Proguard mapping deobfuscation, and will support SRG/TSRG/CSRG mapping deobfuscation and CFR/FernFlower decompilation in future.
You can help to find bugs.
The first release of MinecraftDecompiler. Note: The project may only support Windows platforms, and will support cross-platform compatibility in the future. No jar package is provided at this release, you need to build the project yourself. Just follow these steps:
mvn clean install
How to use:
Current release only supports command line, you need to run java -jar MinecraftDecompiler.jar
in cmd.
If you don't add any arg, the program will let you input version and side. You can also add args like this: java -jar MinecraftDecompiler.jar version side
. For example, if you want to deobfuscate server 1.15.2, you need to run this command: java -jar MinecraftDecompiler.jar 1.15.2 server
Known issues: 1.Log4j2 won't work in deobfuscated jar. 2.Some classes won't be deobfuscated. So, the deobfuscated code can only be used for researching.
You can help me to find bugs and fix bugs. Note: Decompiling isn't supported now, you need to decompile the deobfuscated jar yourself