Skip to content

Instantly share code, notes, and snippets.

@agaricusb
Created December 23, 2012 21:49
Show Gist options
  • Select an option

  • Save agaricusb/4366333 to your computer and use it in GitHub Desktop.

Select an option

Save agaricusb/4366333 to your computer and use it in GitHub Desktop.
How to decompile Minecraft using MCP with FML repackaged class names, _without_ FML's other changes (client/server merge with MCPMerger, access changes with AccessTransformer, and source patches)
Install MCP 7.25 for Minecraft 1.4.6 from http://mcp.oceanlabs.de/index.php/MCP_Releases into mcp725-pkgd
Install FML:
git clone https://github.com/cpw/FML
cd FML
ant
Copy FML's MCP configuration to the clean MCP installation (this includes the packaged mappings):
cp mcp/conf/* ../mcp725-pkgd/conf/
Apply FML commands patch to allow 'side 2' (client + server) to be recognized:
cd ../mcp725-pkgd/runtime
patch < ../../FML/commands.patch
Remove the checks to prevent decompiling server standalone: https://gist.github.com/4366195
conf/patches/* will patch fail, causing server recompile to fail: https://gist.github.com/4366211
Fix by applying this patch: https://gist.github.com/4366286
./recompile.sh should then work
./updatemd5.sh
yes
Decompiled source will now be in src/minecraft and src/minecraft_server as usual, but with FML/Forge-style package names instead of net.minecraft.src
@agaricusb
Copy link
Copy Markdown
Author

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