Results 1 to 6 of 6
  1. #1
    Banned
    Join Date
    Oct 2011
    Posts
    863
    Points
    1,141
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    863
    Points
    1,141
    Gamer IDs

    Steam ID: buttholemonger

    Contact info:

    Youtube Channel: youtube.com/triixsoldier

    Default Minecraft general knowledge thread. -Sky

    I started messing about with Minecraft coding and such and I find it just fantastic. And I thought I would share a bit of what I have learned from it. First off let me say I am no expert, I am no prodigy coder uber hax 1337 shit. I am a kid who enjoys doing this. I do not claim to be the best, because I am not.


    So lets get started. First if you do not have MCP setup just youtube it as it is fairly lengthly and boring if it were to be put into text.

    So after you have everything done and Eclipse is opened, go to
    Client>src>net.minecraft.src

    Now go to GUIINGAME and this is where we will start. so make a boolean, it will be a public static boolean fastplace = false;
    the reason fastplace = false is because we will be toggling it on and off using a key. You will need to import a few things but those will be in the same video as setting MCP Up on youtube.
    now that your boolean is in place, go to Client>src>net.minecraft.client and go to minecraft.java. Now press CTRL F to search search for rightClickDelayTimer and keep searching until you find

    rightClickDelayTimer = 4;
    Now what you will be doing is changing this to you're liking. The lowest it is available to go down to is 1. Thus letting you place blocks everywhere with ease.

    so now you would type this

    if(GuiIngame.fastplace)
    {
    rightClickDelayTimer = 1;
    }else
    rightClickDelayTimer = 4;
    }
    Okay so lets break it down.

    so the if(GuiIngame.fastplace) means if fastplace is toggled then to do the following. And the reason it is GuiIngame.fastplace is because GuiIngame is the class you have you're boolean in.
    then the { tells minecraft that when it is toggled to perform the following. Which is rightClickDelayTimer = 1; This is the speed of which the game allows you to place blocks at. You change it to one thus making it so you can shit blocks everywhere.
    then the } after rightClickDelayTimer = 1; tells the game that that is all that should be performed when this is toggled.
    the else after } is to say that when it is toggled in the off position to perform the rightClickDelayTimer at the regular speed which is 4. then you end the whole statement with a } to say that basically you are done here.
    now to make you're toggle go to GUIINGAME and scroll down to where it says recordplaying. you may search for it. And right above the } above recordplaying type this out

    if(checkKey(Keyboard.KEY_R)
    {
    GuiIngame.fastplace = !GuiIngame.fastplace;
    }
    then below that type out
    if(GuiIngame.fastplace)
    mc.rightClickDelayTimer = 1;
    fontrenderer.drawStringWithShadow("FastPlace", 2, 2, 0xFFFFFF);
    }else
    mc.rightClickDelayTimer = 4;
    }


    Okay so so you will get an error at mc.rightClickDelayTimer because that is in a different subcategory of eclipse/minecraft.jar. So all you have do is either rightclick the error balloon or hover you're mouse over mc.rightClickDelayTimer and click on change RightclickDelayTimer to public. That will make it so you can do anything you want with the function wherever you want. then the fontrenderer is just for the feel of using a client. It displays text in you're top right corner in Teal when fastplace is on. this works on singleplayer and multiplayer. Sorry for feeding skids with this if anyone cares, but I will always give code out in future tutorials, but I will always explain the code line by line as well.

    0 Not allowed! Not allowed!

  2. #2
    Nooblet angrymasteryoda's Avatar
    Join Date
    Mar 2010
    Posts
    6
    Points
    9
         User Info     Contact     Gamer ID
    Join Date
    Mar 2010
    Posts
    6
    Points
    9
    Gamer IDs

    Steam ID: angrymasteryoda

    Default

    i'm not seeing the } above recordPlaying can you give a snip-it of the code

    0 Not allowed! Not allowed!
    I is here

  3. #3
    Banned
    Join Date
    Oct 2011
    Posts
    863
    Points
    1,141
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    863
    Points
    1,141
    Gamer IDs

    Steam ID: buttholemonger

    Contact info:

    Youtube Channel: youtube.com/triixsoldier

    Default

    Quote Originally Posted by angrymasteryoda View Post
    i'm not seeing the } above recordPlaying can you give a snip-it of the code
    http://prntscr.com/98zd8
    sorry and there normally isn't a } bracket I added that on for my xp modification. But its just right there.

    0 Not allowed! Not allowed!

  4. #4
    Nooblet angrymasteryoda's Avatar
    Join Date
    Mar 2010
    Posts
    6
    Points
    9
         User Info     Contact     Gamer ID
    Join Date
    Mar 2010
    Posts
    6
    Points
    9
    Gamer IDs

    Steam ID: angrymasteryoda

    Default

    sweet thanks

    0 Not allowed! Not allowed!
    I is here

  5. #5
    Nooblet [LH]M&M~Man's Avatar
    Join Date
    May 2012
    Posts
    2
    Points
    5
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Posts
    2
    Points
    5

    Default

    Mine craft is a beast game

    Add me on Mw3: 3193-1251-6080

    :*) Latino heat is beast on black ops

    0 Not allowed! Not allowed!

  6. #6
    Banned
    Join Date
    Oct 2011
    Posts
    863
    Points
    1,141
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    863
    Points
    1,141
    Gamer IDs

    Steam ID: buttholemonger

    Contact info:

    Youtube Channel: youtube.com/triixsoldier

    Default

    Quote Originally Posted by [LH]M&M~Man View Post
    Mine craft is a beast game

    Add me on Mw3: 3193-1251-6080

    :*) Latino heat is beast on black ops
    Umm I do not really play the Wii unless it is with CrimsoN... Sorry. And keep it on topic please.

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 01:40 PM.
Powered by vBulletin®
Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.