Results 1 to 5 of 5
  1. #1
    Rambolo's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    [private information]
    Posts
    5
    Reputation
    10
    Thanks
    1

    How to code a selective nuker

    Welcome to my first tutorial!

    I am not going to give you the variables! (skids must learn!)

    So for the first peice of code you want to go to 'EntityClientPlayerMP' and paste this code inside:
    Code:
            int var5000 = (int)mc.playerController.getBlockReachDistance();
            if(yourvarclass.yourvarmod)
            {
            	for(int x = -var5000; x < var5000 + 1; x++)
            	{
            		for(int z = -var5000; z < var5000 + 1; z++)
            		{
            			for(int y = -var5000; y < var5000 + 1; y++)
            			{
            				int e = (int) posX + x;
            				int f = (int) posY + y;
            				int g = (int) posZ + z;
            				if(mc.theWorld.getBlockId(e, f, g) == mods.blockID)
            				{
            					this.sendQueue.addToSendQueue(new Packet14BlockDig(0, e, f, g, 0));
            					this.sendQueue.addToSendQueue(new Packet14BlockDig(2, e, f, g, 0));
            				}
            			}
            		}
            	}
            }
    And for the second part you want to go into 'PlayerControllerMP' and find 'public void clickBlock' (press CTRL+F and then just paste that in)
    Then call that from the top of the void:
    Code:
            if(yourvarclass.yourvarmod)
            {
            	yourvarclass.blockID = mc.theWorld.getBlockId(par1, par2, par3);
            }
    Hint: the yourvarclass.blockID is an integer.
    Last edited by Rambolo; 06-21-2013 at 09:35 AM.

  2. The Following User Says Thank You to Rambolo For This Useful Post:

    HellBoy24 (10-07-2015)

  3. #2
    LordPankake's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    1,010
    Reputation
    260
    Thanks
    2,466
    My Mood
    Angry
    I don't think skids will get anything out of this. Also, this isn't how I would have done it, but it's close enough.
    Also some point's I'd like to mention:

    1. Why are you putting this EntityClientPlayerMP? Why not put it in it's own class for the sake or organization?
    2. Why not call the nuker void itself from clickBlock using the constructor and have it be a click nuker?
    Last edited by LordPankake; 06-20-2013 at 04:42 PM.

  4. #3
    Smaug's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    2,518
    Reputation
    121
    Thanks
    1,192
    Nice tutorial i guess (i dont know how to code)
    Member Level 1 since 4/20/11 - 8/4/14
    Member Level 2 since 8/4/14 - present

  5. #4
    Rambolo's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    [private information]
    Posts
    5
    Reputation
    10
    Thanks
    1
    1. I have a click nuker. That's it.

  6. #5
    Fisheater's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    46
    Interesting. Nice tut.

Similar Threads

  1. How To Code Combat Arms (TUT)
    By creedylol in forum Combat Arms Hacks & Cheats
    Replies: 10
    Last Post: 12-19-2008, 08:27 PM
  2. [Help] How to code speed? [vb 2008]
    By m4c4r0ni3z in forum Visual Basic Programming
    Replies: 6
    Last Post: 05-04-2008, 02:45 PM
  3. How to code invis and boneshot?
    By Jaybird94 in forum WarRock - International Hacks
    Replies: 17
    Last Post: 03-06-2008, 12:15 AM
  4. How to code OPK?
    By Jaybird94 in forum WarRock - International Hacks
    Replies: 19
    Last Post: 03-03-2008, 01:42 PM
  5. How to code a timer in visual C++ 6.0
    By nukeist_ in forum C++/C Programming
    Replies: 5
    Last Post: 12-12-2007, 02:18 PM

Tags for this Thread