Is there any way to get the source code of Minecraft servers? I tried decompiling but I get very obfuscated arguments, classes, and methods.
If the answer is no, how did services like Bukkit and Spigot create their 'servers'?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityIs there any way to get the source code of Minecraft servers? I tried decompiling but I get very obfuscated arguments, classes, and methods.
If the answer is no, how did services like Bukkit and Spigot create their 'servers'?
There is the modcoderpack. It contains the minecraft client and server code: http://www.modcoderpack.com/website/releases
As far as I'm aware, your only option is to decompile the .jar
and cope with the fact that the results are obfuscated, just like everybody else. In the past, there were tools to help deobfuscate the decompiled Minecraft code, as discussed here. I have no idea if such tools are still maintained, and as such can't make recommendations.
In theory you could obtain a source license from Microsoft, and get the raw source that way, but only if they were even willing to entertain such a deal in general and with you in the specific.