Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Please use this guide instead, this one was written in a hurry and I forgot I had the older one.

Basically, you'll want to start with the MCP 1.12 release (temporarily at http://www.modcoderpack.com/files/mcp940.zip ), and then modify it to work with 1.12.2. This is actually quite simple. First, you need to edit conf/version.cfg and set both versions to 1.12.2. That on its own is not enough, but it's a critical step. Then you need to grab new SRG mappings. Normally you'd get that through the !srg command, but MCPBot doesn't have it for some versions. Instead, you can get it through forge's maven. (normally it's also on the export site but not for 1.12.2). The link is http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp/1.12.2/mcp-1.12.2-srg.zip . To set that up, first delete the conf/patches folder (otherwise patches will be merged, breaking things), and then unzip the contents of that ZIP into conf, overwriting files as prompted. Then, grab a fresh set of MCP mappings. You can get this just via the export site: http://export.mcpbot.bspk.rs/ . Grab the latest fields, methods, and params CSV files, and place those in conf as well. That's all! You can now run the normal MCP scripts, and it'll work for that version.

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.

Copy link

ghost commented Oct 15, 2017

that dident work):

@xiphmont
Copy link

xiphmont commented Nov 24, 2017

Thanks, worked perfectly.

@Ghent
Copy link

Ghent commented Dec 13, 2017

Worked great for me, thank you!

@stevex86-old
Copy link

stevex86-old commented Dec 23, 2017

One more thing that you may have to do if you're the Eclipse project or importing into another IDE – the Eclipse project configuration adds the 1.12 jar, 1.12 natives, and Realms dependencies to the classpath. Due to the discrepancies in version you have to modify the classpath to reflect the proper versions per 1.12.2:

e.g. in eclipse/Client/.classpath

<classpathentry kind="lib" path="jars/versions/1.12.2/1.12.2.jar">
	<attributes>
		<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="Client/jars/versions/1.12.2/1.12.2-natives"/>
	</attributes>
</classpathentry>
<classpathentry kind="lib" path="jars/libraries/com/mojang/realms/1.10.17/realms-1.10.17.jar"/>

@gurland
Copy link

gurland commented Feb 27, 2018

Thanks! It works

@orborb
Copy link

orborb commented Mar 28, 2018

When I try to decompile, it just says:

ERROR:root:FATAL ERROR
Traceback (most recent call last):
File "runtime\decompile.py", line 61, in decompile
commands = Commands(conffile, verify=True, no_patch=no_patch, workdir=workdir, json=json)
File "E:\DarkSun\runtime\commands.py", line 178, in init
normalStart = self.readconf(workdir, json)
File "E:\DarkSun\runtime\commands.py", line 491, in readconf
self.versionClient, self.versionServer = self.getVersions()
TypeError: 'NoneType' object is not iterable

@Dyiing
Copy link

Dyiing commented May 31, 2018

Works as expected, many thanks.

@hYdos
Copy link

hYdos commented Jul 20, 2018

can u do a 1.13 guide plz im making a custom server jar and need the src code

@max0782YT
Copy link

max0782YT commented May 11, 2021

When i try to debug, says:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl64 in java.library.path: C:\Users\User.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.2.v20210201-0955\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/User/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.2.v20210201-0955/jre/bin/server;C:/Users/User/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.2.v20210201-0955/jre/bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Java\jdk-13.0.2;C:\Program Files\Java\jdk-13.0.2\bin;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Java\jdk-16;C:\Program Files\Java\jdk-16\bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\Users\User.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.2.v20210201-0955\jre\bin;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Users\User.dotnet\tools;C:\Users\User\AppData\Local\GitHubDesktop\bin;C:\WINDOWS\System32;;.
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2447)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:809)
at java.base/java.lang.System.loadLibrary(System.java:1893)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:87)
at org.lwjgl.Sys.(Sys.java:117)
at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:3300)
at net.minecraft.client.main.Main.main(Main.java:39)
at Start.main(Start.java:11)

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