마인크래프트 디컴파일을 해보자! :: MCP
프로그래밍 첫 강좌입니다.
MCP란?
마인크래프트 전용 디컴파일러 입니다.
MCP로 디컴파일을 하시면, 더 편리하게 모드 및 개조를 하실 수 있습니다.
디컴파일후, 이클립스라는 툴로 소스를 짜시면 됩니다.
이용약관
You are allowed to
- Use MCP to decompile the Minecraft client and server jar files.
- Use the decompiled source code to create mods for Minecraft.
- Recompile modified versions of Minecraft.
- Reobfuscate the classes of your mod for Minecraft.
You are NOT allowed to
- Use MCP to do anything that violated Mojangs terms of use for Minecraft.
- Release Minecraft versions or modifications that allow you to play without having bought Minecraft from Mojang.
- Release modified or unmodified versions of MCP anywhere.
- Use any of MCPs scripts, tools or data files without explicit written permission.
- Make money with anything based on MCP (excluding Minecraft mods created by using MCP).
- Use MCP to create clients that are used for griefing or exploiting server bugs.
- Release the decompiled source code of Minecraft in any way.
IRC(Internet Relay Chat)
server : irc.esper.net
channel : #mcp
마인크래프트 디컴파일
일단 1.4.7버전기준으로 설명하겠습니다.
1.4.7버전 기준 MCP버전은 726a버전이네요.
정말 많은 파일들이 안에 있습니다.
기본적으로 순정마인크래프트로 개발을 하기 위해선, 순정 minecraft.jar과 순정바닐라서버가 필요합니다.
순정 jar은 마인크래프트 forceupdate를 눌렀을때 다운로드가 되고, 순정바닐라서버는
여기에서 다운받으실 수 있습니다.
mcp726a\jars폴더안에 순정 minecraft.jar이 있는 bin 폴더와 순정 minecraft_server.jar을 넣어주시면됩니다.
이렇게 두개 넣어주시면 디컴파일 작업후에 순정 마인크래프트 클라이언트소스와 서버소스가 디컴파일을 하실 수 있습니다.
물론 모드가 들어간 class가 합쳐진 minecraft.jar을 넣으면 그 모드도 같이 디컴파일 됩니다.
넣어준후에 mcp726a폴더안 decompile.bat 파일을 실행시키시면 디컴파일이 진행됩니다.
디컴파일이 진행되다가 마지막에는 계속하시려면 아무키나 누르십시오 라는 말과함께 디컴파일이 끝납니다.
그려면 창을 닫아주시면 됩니다.
그림이제는 디컴파일된 소스를 열어보겠습니다.
윗쪽에 올려둔 이클립스를 실행시키고, 처음에 경로를 물어보는데, 다음과같이 설정하시면 됩니다.
mcp726a\eclipse 폴더로 연결시켜주세요.
이런식으로 연결시켜주시고 OK버튼을 눌러주시면 됩니다.
이클립스로 열어보시면 마인크래프트가 디컴파일되어 있습니다.
디컴파일이 잘되었는지 보고싶으면 상단에 재생버튼처럼생긴 이 버튼누르시면
처음상태의 마인크래프트가 실행이 됩니다.
이렇게 뜨시면 디컴파일이 완료된 것입니다.