Page 1 of 4 1 2 3 ... LastLast
Results 1 to 15 of 60
  1. #1
    Choob
    MPGH Member
    TheFk?'s Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    83
    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 07:35 PM.

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

    fisherblue23 (01-26-2012), mitko16 (06-18-2013), proman98 (10-03-2011), pwnagebeef (10-09-2011), tommykins20 (11-27-2011), [MPGH]Woods (09-27-2011)

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

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

  5. #4
    Bobo's Trainer
    MPGH Member
    casakim's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Currently exploring the new planet called "MMC"
    Posts
    783
    Reputation
    12
    Thanks
    86
    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=http://www.mpgh.net/forum/335-minecraft-hacks/ target=_blank>http://www.mpgh.net/forum/335-minecraft-hacks/</a>

  6. #5
    Former Staff
    Woods's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Lost
    Posts
    11,297
    Reputation
    1007
    Thanks
    2,142
    My Mood
    Cold
    Quote Originally Posted by casakim View Post
    As soon as i read this all, i got dizzy
    Yeah it's pretty lengthy.
    Official Hugo Boss & Buttermilk Biscuits Channel (BossNBiscuits)
    Too lazy to install some basic mods? Get yourself some:
    .
    Want a free premium minecraft account? Get yourself a cracked one in this section: Minecraft Discussions


     
    Previous Name: Woods / Opticz
    • Minecraft Minion from: September 28th, 2011 - December 8th, 2013
    • League Of Legends Minion from: October 16th, 2011 - March 30th, 2012
    • AVA Minion from: January 6th, 2012 - March 30th, 2012
    • Battlefield Minion from: February 3rd, 2013 - December 8th, 2013
    • Combat Arms Wiki Editor from: June 15, 2011 - July 4, 2011


    Proud to be a part of the first gen. MPGH Editors.

  7. #6
    Leecher 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
    Advanced Member
    MPGH Member
    cod1's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Have you checked the roof?
    Posts
    166
    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
    Leecher Hule's Avatar
    Join Date
    Oct 2011
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    0
    Wow this looks pretty advanced. I've bookmarked it for a day where I got lots of time to spend

  10. #9
    MPGH Member
    Jutie's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Right here.
    Posts
    7,326
    Reputation
    413
    Thanks
    2,374
    My Mood
    Relaxed
    Not Bad .





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




  11. #10
    Advanced Member
    MPGH Member
    cod1's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Have you checked the roof?
    Posts
    166
    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
    Why so serious
    Donator
    bullpop's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Sweden
    Posts
    3,695
    Reputation
    287
    Thanks
    1,874
    My Mood
    Psychedelic
    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 -
    APB Minion since 11/12/2011 till 4/16/2012

  13. #12
    Bobo's Trainer
    MPGH Member
    casakim's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Currently exploring the new planet called "MMC"
    Posts
    783
    Reputation
    12
    Thanks
    86
    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=http://www.mpgh.net/forum/335-minecraft-hacks/ target=_blank>http://www.mpgh.net/forum/335-minecraft-hacks/</a>

  14. #13
    Leecher
    MPGH Member
    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
    Expert Member
    MPGH Member
    alex606516's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My house.
    Posts
    567
    Reputation
    19
    Thanks
    37
    My Mood
    Flirty
    Good job. A little too descriptive though.
    Thank and rep me If I helped


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

  16. #15
    Leecher 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 1 2 3 ... 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, 07:25 PM
  2. How to make your own hacks?
    By BladeZ in forum General Game Hacking
    Replies: 1
    Last Post: 07-02-2009, 05:27 AM
  3. how to make your own hacks
    By julius026 in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 05-03-2009, 11:50 PM
  4. how to make your own hack!
    By blue213321 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 04-25-2009, 05:38 PM
  5. Replies: 28
    Last Post: 03-02-2009, 08:44 AM