Page 1 of 4 123 ... LastLast
Results 1 to 15 of 60
  1. #1
    TheFk?'s Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    97
    My Mood
    Relaxed

    >How to make your first hack client! <

    =========================
    Prerequisites:

    Have a normal brain
    Have JDK installed (Video tutorial: Java Programming Tutorial - 1 - Installing the JDK - YouTube)
    Basic Java knowledge

    =========================
    What you'll need:

    Eclipse (Download link: www.eclipse.org/downloads/moreinfo/java.php)
    Minecraft Coders Pack (Download link: MCP Releases - Minecraft Coder Pack)

    =========================
    Tutorial:
    MCP = Minecraft Coders Pack
    Credits: Nick ~ checkKey function

    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.
    Navigate to the class file you see called 'GuiIngame.java'.
    What we're going to do here is create our hotkey & overlay base. But before we can do that, we're going to need to import the keyboard.
    Where you see the other "imports" at the top, import the keyboard via:
    Code:
    import org.lwjgl.input.Keyboard;

    What this does is "call/declare" a raw Keyboard interface. This can be used to poll the current state of the keys, or read all the keyboard presses / releases since the last read.
    Next we need to create our check keystates function. We first need to declare our keystates, we can do this via:
    Code:
    private boolean keyStates[];
    Place this right under the class parenthesis.

    What we've done is declared a new boolean, which is a true/false variable. In this case, any object that is placed between the brackets, applies with the true/false system.
    Now we have to declare an instance of our boolean, in the initialization of the class, place:
    Code:
    keyStates = new boolean [256];
    This means, our boolean, can be true/false for any of these numbers between 0 and 256.

    Now for our actual check keystate code. Place this under the initialization, after the ending parenthesis.

    Typing it out helps you understand what each statement does.
    Now that you've done your hotkeys, you can do the GUI. Press 'CTRL' + 'F' and search for 'debug'. Create simple else statement at the bottom of the if.

    Here is where we are going to put our actual toggle codes. Toggling is split up into two parts, part one, where the hotkeys are pressed, part two, where the overlay is created.
    Scroll back to the top where you declared your 'keyStates' boolean. Now create another boolean for high jump.

    What this did was create a true/false variable for the hack.
    Now to do our toggle. Simply use the checkKey statement, then do the following:

    Next, we have to draw onscreen whether our hack is on or off.
    We can use fontrenderer, to draw a text overlay such as below.

    At the moment, all we have created is a toggle, we now have to code the actual hack. Navigate to 'EntityLiving.java' and find the 'jump()' function. Add a simple if statement.

    You have successfully created your first hacked client. To get the class files, goto your MCP folder then run 'recompile.bat' then 'reobfuscate.bat'. In the 'reobf' folder you will have the class files you can drag and drop into your 'minecraft.jar'.
    (Remember to delete the META-INF folder)
    Last edited by TheFk?; 09-25-2011 at 06:35 PM.

  2. The Following 8 Users Say Thank You to TheFk? For This Useful Post:

    fisherblue23 (01-26-2012),Hydra (11-15-2015),jomens235 (04-12-2015),mitko16 (06-18-2013),proman98 (10-03-2011),pwnagebeef (10-09-2011),tommykins20 (11-27-2011),crex (09-27-2011)

  3. #2
    Luisjoseda's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    El Paso
    Posts
    119
    Reputation
    10
    Thanks
    102
    My Mood
    Goofy
    Not bad...
    Previously made PvPShark.
    Now developing OreoPvP.

  4. #3
    Sync's Avatar
    Join Date
    Jul 2011
    Gender
    female
    Location
    Bat Gang
    Posts
    1,977
    Reputation
    239
    Thanks
    208
    My Mood
    Yeehaw
    To bad i already knew how to do this and i know java
    thanks tho.

  5. #4
    casakim's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Currently exploring the new planet called "MMC"
    Posts
    783
    Reputation
    12
    Thanks
    87
    My Mood
    Amazed
    As soon as i read this all, i got dizzy
    "I wasn't born to be forced by people.
    I will breathe the way I do and I will live the way I choose."


    <a href=https://www.mpgh.net/forum/335-minecraft-hacks/ target=_blank>https://www.mpgh.net/forum/335-minecraft-hacks/</a>

  6. #5
    crex's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    leaf village
    Posts
    11,667
    Reputation
    1365
    Thanks
    2,572
    Quote Originally Posted by casakim View Post
    As soon as i read this all, i got dizzy
    Yeah it's pretty lengthy.

  7. #6
    BlockPunk's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Just imagine me, I have coded for 12 teams and teams are still inviting me to code for them. I'm so dizzy.

  8. #7
    cod1's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Have you checked the roof?
    Posts
    167
    Reputation
    10
    Thanks
    7
    My Mood
    Sneaky
    Im not sure how to make a forcefeild can someone point me in the right direction?

    Don't look!!!

    You looked

  9. #8
    Hule's Avatar
    Join Date
    Oct 2011
    Gender
    female
    Location
    Italy
    Posts
    8
    Reputation
    10
    Thanks
    1
    Wow this looks pretty advanced. I've bookmarked it for a day where I got lots of time to spend

  10. #9
    Ryuesi's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Right here.
    Posts
    7,339
    Reputation
    413
    Thanks
    2,397
    My Mood
    Relaxed
    Not Bad .





    Contributor Since 24-11-2011 ~ 26-12-2011
    VM / PM




  11. #10
    cod1's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Have you checked the roof?
    Posts
    167
    Reputation
    10
    Thanks
    7
    My Mood
    Sneaky
    Quote Originally Posted by Hule View Post
    Wow this looks pretty advanced. I've bookmarked it for a day where I got lots of time to spend
    its pretty simple really the hardest part of it is making the hotkey not how high the jump is.

    Don't look!!!

    You looked

  12. #11
    bullpop's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Sweden
    Posts
    3,692
    Reputation
    287
    Thanks
    2,196
    My Mood
    Amused
    Quote Originally Posted by BlockPunk View Post
    Just imagine me, I have coded for 12 teams and teams are still inviting me to code for them. I'm so dizzy.
    Proof or GTFO
    MPGH Member Since 10/17/2010
    Battlefield Minion Since 01/22/2014 till - 08/27/2014
    APB Minion since 11/12/2011 till 4/16/2012

  13. #12
    casakim's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Currently exploring the new planet called "MMC"
    Posts
    783
    Reputation
    12
    Thanks
    87
    My Mood
    Amazed
    Quote Originally Posted by bullpop View Post
    Proof or GTFO
    Just live with it.
    "I wasn't born to be forced by people.
    I will breathe the way I do and I will live the way I choose."


    <a href=https://www.mpgh.net/forum/335-minecraft-hacks/ target=_blank>https://www.mpgh.net/forum/335-minecraft-hacks/</a>

  14. #13
    Sylv's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    2
    Lol damn, what a wall of text, must read it alllll

  15. #14
    alex606516's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My house.
    Posts
    567
    Reputation
    19
    Thanks
    38
    My Mood
    Flirty
    Good job. A little too descriptive though.
    Thank and rep me If I helped


    https://www.mpgh.net/forum/members/57...lex606516.html - My Mpgh profile

  16. #15
    Danicsis's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Spain
    Posts
    7
    Reputation
    10
    Thanks
    0
    thanks :P very good tutorial

Page 1 of 4 123 ... LastLast

Similar Threads

  1. [How To] Make your first Warrock hack in C++[>NoMenü<]
    By pwner318 in forum WarRock Hack Source Code
    Replies: 19
    Last Post: 12-08-2010, 06:25 PM
  2. How to make your own hacks?
    By BladeZ in forum General Game Hacking
    Replies: 1
    Last Post: 07-02-2009, 04:27 AM
  3. how to make your own hacks
    By julius026 in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 05-03-2009, 10:50 PM
  4. how to make your own hack!
    By blue213321 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 04-25-2009, 04:38 PM
  5. Replies: 28
    Last Post: 03-02-2009, 07:44 AM