I am using obfuscation mappings on any decompiler I can get my hands on. Unfortunately, all of them end up with Syntax errors. Does anyone know of any decompiler that can use obfuscation mappings without the code having syntax errors>
Of course it doesn't, haven't seen a decompiler that does. If you want to decompile something like a Forge mod jar, put the jar through something like BON2, and then decompile it.
There is Mod Coder Pack, which I use to make my own mods for 1.6.4 and while it hasn't officially been updated past 1.12 I've seen people using it for later versions, presumably by using updated mappings, and it automatically does everything for you (decompilation, fixing errors, deobfuscation, including adding comments to help document the code).
However, I did find an updated version of MCP which says it supports up to 1.15.1 (at least, based on the listed releases, it already appears to be in the process of being updated to 1.16.1 though):
Presumably, modding tools like Fabric, which is updated so fast it is even available for snapshots, also have their own decompilers/deobfuscators, although I've never used them so I don't know how they work (or can even be updated so fast, even with Mojang's obfuscation mappings, since you have to account for changes to the code itself).
Thanks, I will use the Mod Coder Pack when it is available. However, it takes about a month to generate mappings and the MCP mappings for 1.16 have not come out yet, so that means Mojang's mappings would be helpful. The Mod Coder Pack is really easy to work with, I must say, so I thank you for that. I still try to look for ways to get mojang's obfuscation mappings to work.
I am using obfuscation mappings on any decompiler I can get my hands on. Unfortunately, all of them end up with Syntax errors. Does anyone know of any decompiler that can use obfuscation mappings without the code having syntax errors>
If you're getting syntax errors after decompiling, there's not much you can do since no decompiler will give out a perfect outcome.
Some may be more accurate than others and some may not.
But if you're decompiling, you'll NEED to fix some small errors that may pop up every now and again. It's not something you can avoid.
So which decompiler is the best for the job?
You can use whatever you want. Most of them have about the same inaccuracy.
My preference is FernFlower, for most things.
Fernflower does not take obfuscation mappings.
Of course it doesn't, haven't seen a decompiler that does. If you want to decompile something like a Forge mod jar, put the jar through something like BON2, and then decompile it.
You use MCreator? Don't.
There is Mod Coder Pack, which I use to make my own mods for 1.6.4 and while it hasn't officially been updated past 1.12 I've seen people using it for later versions, presumably by using updated mappings, and it automatically does everything for you (decompilation, fixing errors, deobfuscation, including adding comments to help document the code).
However, I did find an updated version of MCP which says it supports up to 1.15.1 (at least, based on the listed releases, it already appears to be in the process of being updated to 1.16.1 though):
https://github.com/Hexeption/MCP-Reborn
Presumably, modding tools like Fabric, which is updated so fast it is even available for snapshots, also have their own decompilers/deobfuscators, although I've never used them so I don't know how they work (or can even be updated so fast, even with Mojang's obfuscation mappings, since you have to account for changes to the code itself).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Thanks, I will use the Mod Coder Pack when it is available. However, it takes about a month to generate mappings and the MCP mappings for 1.16 have not come out yet, so that means Mojang's mappings would be helpful. The Mod Coder Pack is really easy to work with, I must say, so I thank you for that. I still try to look for ways to get mojang's obfuscation mappings to work.