Page 1 of 4 123 ... LastLast
Results 1 to 15 of 57
  1. #1
    blicbuddy's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    20

    Lightbulb | How to make your first hack client! | Original Author |

    To mods, you cannot close this thread by saying there is a previous one as I'm the original author of this thread. I requested the other thread to be closed but to no avail. If you really want me to bring plagiarism and legal action in, just ask me.

    =========================


    Outcome: Successfully set up MCP and create a simple, hotkeys, high jump hack + GUI. (And understand what you are doing unlike the other 3 tutorials out there that encourage C&P)
    =========================

    Prerequisites:
    • Have a normal brain
    • Have JDK installed (Video tutorial: )
    • Basic Java knowledge
    =========================

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

    Tutorial:
    MCP = Minecraft Coders Pack
    Credits: Nick ~ checkKey function and Blic for the tutorial.
    1. Do a clean force-update of your Minecraft to allow effective and stable decompiling
    2. Navigate to your ".minecraft" folder in your AppData (Press 'START' then 'RUN' then type '%appdata%\.minecraft').
    3. 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.
    4. Go back to your '.minecraft' folder and copy and paste the 'bin' and 'resources' folders into the MCP 'jars' folder.
    5. Run 'decompile.bat' afterwards, a 'src' & 'eclipse' folder should appear.
    6. Set your eclipse workspace to your MCP 'eclipse' folder.
    7. 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.
    8. Navigate to the class file you see called 'GuiIngame.java'.
    9. 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.
    10. 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.
    11. 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.

    12. 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.

    13. 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.
    14. 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.
    15. 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.
    16. Now to do our toggle. Simply use the checkKey statement, then do the following:

    17. 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.

    18. 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.

    19. 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)

    Result (if done correctly):

    Give credits if you use.

    - Blic
    Last edited by blicbuddy; 01-11-2012 at 08:23 PM.

  2. The Following 20 Users Say Thank You to blicbuddy For This Useful Post:

    -MODZ- (07-26-2013),Adrenaline (01-17-2016),Ahmad (06-09-2012),Cerruth (02-16-2014),chuvaksimpson (05-28-2012),eFlourick (05-18-2012),fronzensoul (09-17-2012),HELLOMYNAMEISHELLO (03-03-2012),holly hacker (08-19-2012),Jason` (08-23-2013),Killosaurus (05-18-2012),lendariod (12-04-2013),mmark5 (12-14-2012),rabir007 (07-31-2012),Scythen (10-12-2014),TheBombCom (08-19-2014),TheCow1 (01-10-2014),tzele (03-08-2012),webcam951 (01-18-2015),yellowsheepy (07-12-2012)

  3. #2
    teamrain's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    1
    Really good, i dont need that but its good for whos starting

  4. #3
    crex's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    leaf village
    Posts
    11,667
    Reputation
    1365
    Thanks
    2,572
    /stuck
    Good job

  5. #4
    X HiPPY's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    I typed everything the same way you did









    and i jumped the same height :\
    Attached Thumbnails Attached Thumbnails
    2.png  

    3.png  


  6. #5
    bulldogs's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Australia
    Posts
    25
    Reputation
    10
    Thanks
    1
    Nice Tutorial!

    I've downloaded it, now just searching up TuTs to get me ready.

  7. #6
    boohda1995's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    1
    My Mood
    Cool
    My English sucks, so i cant use the Tutorial xD

  8. #7
    TENAICHI's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Make one video teatcher plis plis!!

  9. #8
    HELLOMYNAMEISHELLO's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    My Mood
    Cheerful
    Could you make a tutorial for the creating a code/ making a program?

  10. #9
    lemarc's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    4
    man i feel retarded right now

  11. The Following 4 Users Say Thank You to lemarc For This Useful Post:

    DanisDGK (08-21-2017),Prometheois117 (07-18-2014),rikthefoo (12-11-2012),TommyMisery (04-05-2013)

  12. #10
    Baltasar's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    1
    Very nice, Good job.

  13. #11
    noobsludgerz's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    823
    My Mood
    Amazed
    Can you tell us how to make the 'activate cheat button' (in your case J) smooth cause when i hold it it will keep switching from on to off and it is really annoying.

  14. #12
    noobsludgerz's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    823
    My Mood
    Amazed
    OOH and the code u wrote isn't good (atleast the last part) cause even the animals and villagers jump the same height now.
    Sinds all animals/mobs/villagers extend EntityLiving

  15. #13
    wroe49's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    /double post... sorry computer fkd up on me.
    Last edited by wroe49; 03-27-2012 at 01:01 PM. Reason: fkd up double post

  16. #14
    wroe49's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    "6. Set your eclipse workspace to your MCP 'eclipse' folder.
    7. 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."

    Where do i set my workspace cuz this just confused me...............


    And when i follow step 6 i get this at the bottom of Eclipse
    Attached Thumbnails Attached Thumbnails
    Eclipse Warning bar..png  


  17. #15
    blicbuddy's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    20
    You could always check the instance of an entity.

    Pseudo-code:
    Code:
    if(!(entity instanceof EntityPlayer)) {
    return;
    }
    //continue on

Page 1 of 4 123 ... LastLast

Similar Threads

  1. [Tutorial] >How to make your first hack client! <
    By TheFk? in forum Minecraft Tutorials
    Replies: 59
    Last Post: 02-15-2012, 10:51 PM
  2. [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
  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