I've successfully decompiled the snapshots with Enigma... now what? I have no idea how to run the code in an IDE. There are absolutely no tutorials that show how to run it that I could find.
In fact, the tutorial I used to decompile the snapshot with Enigma, , was the literal ONLY tutorial I could find just to get the decompiling part. Yeah, it says 1.15 but it uses the obfuscation mappings and so the same process works fine in the snapshots. MCP reborn creates good workspaces but they're only for release versions, not snapshots.
All I want is to run decompiled snapshot code in my Eclipse IDE. How can I do this? I've got the code decompiled for 21w05b already.
This answer is from me trying to do this myself in the past.
When decompiling Minecraft, you will usually encounter errors. MCPReborn fixes these errors, using files created manually for every release.
Here is a video that is still valid today:
It is not a tutorial, though.
What Spigot and Loom (less well known server) do is not recompile all the code, but only the changed classes. This means that you only need to fix some errors, and not many.
This is how I'd do it (for the client):
Start again (Enigma does not work that well for anything other than editing and converting obfuscation maps).
Copy file ".minecraft/versions/<version>.jar" to another folder.
Copy "net.minecraft.ChatFormatting" from "original-src" to the source folder (to prevent a glitch).
To modify a class, copy from "original-src" to the source folder and fix errors.
You can create a script to automate all this and apply patches to the code (see Loom for example implementation, which has made versions for snapshots).
This is a quite complicated method that works with snapshots.
I've just spent about 5 hours trying to see how to edit and test SERVER code like I used to with MCP back in the ~v1.6.4 days. Am I beating my head on a rock? I want to mod the SERVER, not a client.[/p]
Can anyone tell me if MCP-Reborn will even do this? If not, what will?[/p]
It looked like this thread was going in the right direction, then it was back to instructions for modding the client again. [/p]
FYI, I'm used to Eclipse but I really don't care what IDE I need to use.[/p]
I've successfully decompiled the snapshots with Enigma... now what? I have no idea how to run the code in an IDE. There are absolutely no tutorials that show how to run it that I could find.
In fact, the tutorial I used to decompile the snapshot with Enigma, , was the literal ONLY tutorial I could find just to get the decompiling part. Yeah, it says 1.15 but it uses the obfuscation mappings and so the same process works fine in the snapshots. MCP reborn creates good workspaces but they're only for release versions, not snapshots.
All I want is to run decompiled snapshot code in my Eclipse IDE. How can I do this? I've got the code decompiled for 21w05b already.
Still can't find even a single resource on this. I really, really need this. Any leads are appreciated.
Still have no idea how to do this and wasn't able to get any leads
I think this will help but I'm not sure what your looking for exactly I can't find any good tutorials either but I found 2
The mcp he's talking about I found out it's in the version folder inside of minecraft directory when I was looking up where the client jar was located
The answer above works, but not for snapshots.
This answer is from me trying to do this myself in the past.
When decompiling Minecraft, you will usually encounter errors. MCPReborn fixes these errors, using files created manually for every release.
Here is a video that is still valid today:
It is not a tutorial, though.
What Spigot and Loom (less well known server) do is not recompile all the code, but only the changed classes. This means that you only need to fix some errors, and not many.
This is how I'd do it (for the client):
Start again (Enigma does not work that well for anything other than editing and converting obfuscation maps).
Copy file ".minecraft/versions/<version>.jar" to another folder.
Download https://hub.spigotmc.org/stash/projects/SPIGOT/repos/builddata/raw/bin/fernflower.jar?at=refs/heads/master.
Download https://maven.fabricmc.net/net/fabricmc/tiny-remapper/0.4.3/tiny-remapper-0.4.3-fat.jar.
Download https://maven.fabricmc.net/cuchaz/enigma-cli/0.27.3/enigma-cli-0.27.3-all.jar.
Download the Obfuscation Maps from the wiki for the client.
Open powershell/terminal.
Run:
Extract "tmp/-deobf.jar" to "original-src".
Then add tmp/-deobf.jar to build path.
Copy "net.minecraft.ChatFormatting" from "original-src" to the source folder (to prevent a glitch).
To modify a class, copy from "original-src" to the source folder and fix errors.
You can create a script to automate all this and apply patches to the code (see Loom for example implementation, which has made versions for snapshots).
This is a quite complicated method that works with snapshots.
It looked like this thread was going in the right direction, then it was back to instructions for modding the client again. [/p]
FYI, I'm used to Eclipse but I really don't care what IDE I need to use.[/p]