Prerequisites:
Have a functioning brain
Have JDK installed (Video tutorial:
)
What you'll need to do this:
Eclipse (Download link:
http://www.eclipse.org/downloads/package...rs/indigor)
Minecraft Coders Pack (Download link:
MCP Releases - Minecraft Coder Pack
How to get MCP Working ( Thanks BLIC )
- Do a clean force-update of your Minecraft to allow effective and stable decompiling
- .Navigate to your ".minecraft" folder in your AppData (Press 'START' then 'RUN' then type '%appdata%\.minecraft').
- Extract MCP and run "cleanup.bat" and then "updatemcp.bat", this will update all the tools you will need to decompile and recompile your client with.
- Go back to your '.minecraft' folder and copy and paste the 'bin' and 'resources' folders into the MCP 'jars' folder.
- Run 'decompile.bat' afterwards, a 'src' & 'eclipse' folder should appear.
- Set your eclipse workspace to your MCP 'eclipse' folder.
- Time to get coding! In eclipse, set the workspace to the following folder. 'Client' > 'src' > 'net.minecraft.src', this will be our directory for creating our hacks.)
Now open up eclipse and navigate to GuiIngame.java and find this piece of code
Code:
fontrenderer.drawStringWithShadow((new StringBuilder()).append("Minecraft Beta 1.8.1 (").append(mc.debug).append(")").toString(), 2, 2, 0xffffff); fontrenderer.drawStringWithShadow(mc.debugInfoRend ers(), 2, 12, 0xffffff); fontrenderer.drawStringWithShadow(mc.func_6262_n() , 2, 22, 0xffffff); fontrenderer.drawStringWithShadow(mc.debugInfoEnti ties(), 2, 32, 0xffffff); fontrenderer.drawStringWithShadow(mc.func_21002_o( ), 2, 42, 0xffffff); [/CODE]
and below it find
Code:
fontrenderer.drawStringWithShadow("Minecraft 1.8.1 blah blah blah", 2, 2, 0xFFFAF0);
After you have found that rename it whatever you want it to be and run minecraft by clicking on the arrow button in eclipse next to the ant.
Congratulations! Create a new world and see your results.
Now. If you want to add something that will tell you your cords / fps
just add this below it
Code:
drawString(fontrenderer, (new StringBuilder()).append("X: ").append((int)mc.thePlayer.posX).toString(), 350, 200, 0x00CC00); drawString(fontrenderer, (new StringBuilder()).append("Y: ").append((int)mc.thePlayer.posY).toString(), 350, 211, 0x00CC00); drawString(fontrenderer, (new StringBuilder()).append("Z: ").append((int)mc.thePlayer.posZ).toString(), 350, 222, 0x00CC00); drawString(fontrenderer, mc.debug.substring(0, mc.debug.indexOf(",")), 350, 233, 0x00CC00);
The first 3 retrieves your cords and prints them out
the last one tells you your fps
This wasn't the best of guides so i'm sorry.
To fix ERRORS
Make sure you have your resources folder in the jars folder!
Update MCP
Update build paths