Arqade Asked by Griffin W. on September 24, 2020
I’m interested in browsing the Minecraft source code and see its classes – especially the code controlling the creeper. Is there a way to do that? Maybe open the minecraft.jar file and peek inside?
JAR files are simply ZIP files, so you should be able to open them with the archiving tool of your choice. Even Windows Explorer will open them if you change the file extension to .zip.
However, looking at the source isn't as easy as just unpacking the archive. It only contains the compiled .class files, and even if you do get your hands on a JVM byte code decompiler, it's obfuscated and spread out over hundreds of files.
You might want to have a look at MCP (Mod Coder Pack, formerly Minecraft Coder Pack), though. It's a community project that decompiles and (mostly) de-obfuscates the Minecraft sources to aid modders.
Correct answer by a cat on September 24, 2020
There's a way to do this; in fact, this way as well allows you to edit the code and... make your own mods! It's called MCP (Minecraft Coders' Pack), and is a bit of a complicated setup, but it is how nearly all Minecraft mods are made. Check out a video I made on YouTube on setting up and installing it:
Answered by Daniel Bezden on September 24, 2020
Interestingly enough, mention of source code release comes straight from the minecraft website.
"Once sales start dying and a minimum time has passed, I will release the game source code as some kind of open source. I'm not very happy with the draconian nature of (L)GPL, nor do I believe the other licenses have much merit other than to boost the egos of the original authors, so I might just possibly release it all as public domain."
Answered by user1473784 on September 24, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP