[Tutorial] Creating a Basic Hacked Client

Posts 115 of 46 · Page 1 of 4
[Tutorial] Creating a Basic Hacked Client
Hey guys, I noticed some of the people are saying that the tutorials are a bit out-dated, so I here's a new one (1.4.7)

1. Install MCP, any recent version of Java Development Kit, and Eclipse. I assume since you're reading this that you've seen videos on how to do this or have done this already.

2. After MCP is set up and the source has been decompiled, run Eclipse.exe. A box will come up asking for a workspace. Nextto that, there is the browse button. Click that and browse to the folder "Eclipse" that is in your folder with all of MCP's contents and select it.
 
Workspace




3. Eclipse will then open with the workspace you selected. It will be black and you will have a few tools on your screen.
 
Eclipse Layout




4. Now once you open GuiIngame, you need to add a few things before we add any real hacks.
 
The Check Keys




5. Now that we can check keys, we can actually start.
We're going to want a title for our client. (I'll name mine "Derp")
 
Title

 
Where to

We will add our GUI above
Code:
 
if (this.recordPlayingUpFor > 0)
        {
            this.mc.mcProfiler.startSection("overlayMessage");
            var33 = (float)this.recordPlayingUpFor - par1;
            blablabla, etc.
            ...
and below
Code:
            GL11.glPopMatrix();
            this.mc.mcProfiler.endSection();
        }

 
Creating our Title



Now to make our menu better, we need some booleans.
Since storing a bunch of booleans in this file is a bit messy, we will make a new file to store them. I will name mine "var" since it's short and easy to remember.
Create a new java class file similiar to the one here.
Make sure it's in this package (So it won't throw errors and such)
Since the boolean is static, it can be accessed by other files.

Add a the menu boolean as shown. You don't have to add = false; at the end since by default booleans are false, but I do it anyways. It's a habit :P


Now that you've set up your boolean-holding class, put the drawrect from our main menu inside an if statement like this.
Code:
if(!yourvariablefile.menutoggle)
{
    drawRectHere;
}
Adding ! before the boolean means 'not'. So if the menu is Not open, it will draw the rect around the title like we told it to.


6.Now that we have a pretty title, we're going to add a basic menu.
 
Creating our Menu of hax




7. The menu and title are done! Now for the basic hacks.
 
Dem hax

Make booleans in your boolean-holding class for "fullbright" and "fly"
 
Making our Toggles


Use this as a reference for any future toggle

 
Fullbright



 
Fly

Navigate to EntityPlayerSP
Under the public void "onLivingUpdate" add this:




8. That's pretty much it. This is how basic clients are made. Follow a similiar setup as this and you can do quite a lot in a client.
Very nice tutorial, good job.
Nice job!
Quote Originally Posted by C++Coding View Post
My tutorial would have bee this.

"So you want to make a basic hacked client?Here The Java™ Tutorials Get reading."
Challenge: Using information only from this page (and links, no google), create a functioning kill aura.
(Although yes, knowing basic java IS kinda a pre-requiset)
Quote Originally Posted by LordPankake View Post
Challenge: Using information only from this page (and links, no google), create a functioning kill aura.
Do you think people can make a kill aura with out even knowing java?I'm pretty sure almost all "Coders" he can't create an object
Quote Originally Posted by C++Coding View Post
My tutorial would have bee this.


"So you want to make a basic hacked client?Here The Java™ Tutorials Get reading."

This guy is pretty badass.
Quote Originally Posted by Smaug View Post



This guy is pretty badass.
I have to repeat my self many times because people don't get it.You can't code a client without any java knowledge.It's like trying to solve an equation without knowing the formula
Quote Originally Posted by C++Coding View Post
I have to repeat my self many times because people don't get it.You can't code a client without any java knowledge.It's like trying to solve an equation without knowing the formula
This is true. My point was kinda silly as you pointed out, but still. Assuming a person is reading a thread about modding a java game, they probably know something about it, more or less. Also it starts to become like a secondary language like spanish or french after awhile(in terms of how much you understand it given time spent looking over it and seeeing how it works)

This is also a basic tutorial. There are much more effecient ways to do a gui, but usually those ways are not really "basic" and "simple".
Either way, this thread was helpful.
Really good tutorial thanks man and hope i can create a hack client :P
errmm Great tutorial but i m having some troubles.
Quote Originally Posted by TheR4pt0r View Post
errmm Great tutorial but i m having some troubles.
Your troubles are that you don't know real java.Please come back in 3-4 months when you have learned the basics of the language
Quote Originally Posted by TheR4pt0r View Post
errmm Great tutorial but i m having some troubles.
So what seems to be the problem? What kind of error does eclipse/java throw you?

Also, you could put the area that's affected in [.CODE] [./CODE] tags

Edit: From what you sent me, you're missing a ';' after your "public static boolean menu". If it's something else, do elaborate.
package net.minecraft.src;

public class var
{
public static booolean menu

}
This is my problem..i get 3 errors.. is syntax wrong? it said var should be defined as own file so i did "var" and it was correct...should i keep it this way?

---------- Post added at 05:44 PM ---------- Previous post was at 05:43 PM ----------

Asking is the best way learning.
Posts 115 of 46 · Page 1 of 4

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?