Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Pokechu22/97bf5bd528eeadef09dcbae8a15b009f to your computer and use it in GitHub Desktop.
Save Pokechu22/97bf5bd528eeadef09dcbae8a15b009f to your computer and use it in GitHub Desktop.
Setting up MCP for newer versions (e.g. 1.12.2)

It's possible to use create an MCP installation for versions of Minecraft where there hasn't been a full MCP release. It takes a little bit of manual setup, but the end result is highly useful.

  1. Download and extract the most recent MCP build from http://www.modcoderpack.com/. (Currently, the latest build is http://www.modcoderpack.com/files/mcp940.zip)

  2. Edit version.cfg in the conf folder, and change ClientVersion and ServerVersion to the version you want (for instance, 1.12.2).

  3. Download the SRG zip for the version you want; these can generally be found at http://mcpbot.bspk.rs/mcp/<version>/mcp-<version>-srg.zip (for example, http://mcpbot.bspk.rs/mcp/1.11.2/mcp-1.11.2-srg.zip) or at http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp/<version>/mcp-<version>-srg.zip (for example, http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp/1.12.2/mcp-1.12.2-srg.zip). (For 1.12.1 and 1.12.2, only the minecraftforge link works)

  4. Extract that zip into the MCP conf folder, overwriting files and the contents of the patches folder.

  5. Download the latest daily mappings from http://export.mcpbot.bspk.rs/. Even if they aren't for exactly the version you want, they will generally work.

  6. Extract the mapping zip into the MCP conf folder, overwriting files.

  7. Run MCP's decompile.bat as you normally would.

Note that for this to work, there must be a released SRG file for the version you want. The SRG file is what converts obfuscated names into an intermediate step where names are (mostly) the same between versions; the mappings files convert those intermediate names into the names you see and are used to.

Note that as always, the MCP license applies, even for development builds. Please read the LICENSE.txt included with MCP for more information about what you are and are not permitted to do.

An additional note: if you're using eclipse, you will need to manually fiddle with build paths due to updated libraries. You will also need to attach the native libraries, found in jars/versions/${VERSION}/${VERSION}-natives, to the libraries (e.g. LWJGL) for the game to launch.

@ItzZisker
Copy link

@RKvilt Throw off the oppressive chains of Microsoft and switch to Linux. Join the master race. For those most severely harmed by Windows OSes, I recommend Linux Mint, as it's one of the few Linuxes that don't cause Windows users permanent brain damage. Albeit. Linux Mint is bad because its all set up for you and there's no challenge in getting it exactly the way you want it with exactly the packages you want, but Linux Mint is a great way to ease the transition to Linux for beginners. Once you have broken free of Microsoft's mind games, you will discover true freedom and find it much easier to use MCP. I have laid down the path for you, but it is you who must traverse it. I wish you luck and low htop stats.

This post is extremely underrated. This is all I can say

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment