i wanna make 2 mods in 1 like minimalism and the aimbot but the aim key for the aimbot is tab and the console for minimalism is also tab how can i change this i cant find the tab key in the code here it is :
[html]// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page:
http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
import java.util.List;
import net.minecraft.client.Minecraft;
import org.lwjgl.input.Keyboard;
// Referenced classes of package net.minecraft.src:
// BaseMod, ModLoader, StatList, WorldGenMinable,
// NBTBase, UnexpectedThrowable
public class mod_Aimbot extends BaseMod
{
public mod_Aimbot()
{
ModLoader.SetInGameHook(this, true, true);
frame = 0;
canpress = false;
}
public String Version()
{
return "1.0 (1.8.1)";
}
public boolean OnTickInGame(Minecraft minecraft)
{
StatList statlist = ModLoader.getMinecraftInstance().theWorld;
player = ModLoader.getMinecraftInstance().thePlayer;
frame++;
if(frame >= 5)
{
canpress = true;
}
if(frame < 5)
{
canpress = false;
}
if((Keyboard.isKeyDown(15) || Keyboard.isKeyDown(29) && !target) && canpress)
{
frame = 0;
Object aobj[] = statlist.b(player, NBTBase.a(player.aM - 128D, player.aN - 128D, player.aO - 128D, player.aM + 128D, player.aN + 128D, player.aO + 128D)).toArray();
Object aobj1[] = aobj;
int i = aobj1.length;
entityplayerdistance = 999D;
target = false;
for(int j = 0; j < i; j++)
{
Object obj = aobj1[j];
if(!(obj instanceof UnexpectedThrowable))
{
continue;
}
currentplayer = (UnexpectedThrowable)obj;
if(currentplayer.l.equalsIgnoreCase("jay_92") || currentplayer.l.equalsIgnoreCase("spowney") || currentplayer.l.equalsIgnoreCase("rayray31"))
{
continue;
}
double d3 = currentplayer.aM - player.aM;
double d5 = currentplayer.aO - player.aO;
currentplayerdistance = Math.sqrt(d3 * d3 + d5 * d5);
if(entityplayerdistance == 999D)
{
entityplayer = currentplayer;
entityplayerdistance = currentplayerdistance;
continue;
}
if(currentplayerdistance < entityplayerdistance)
{
entityplayer = currentplayer;
entityplayerdistance = currentplayerdistance;
}
}
if(entityplayer != null)
{
player.b((new StringBuilder()).append("Locked on ").append(entityplayer.l).toString());
target = true;
}
}
if(Keyboard.isKeyDown(29) && target)
{
double d = entityplayer.aM - player.aM;
double d1 = entityplayer.aO - player.aO;
double d2 = (entityplayer.aN - player.aN) + 1.2D;
if(d1 > 0.0D && d > 0.0D)
{
theta = Math.toDegrees(-Math.atan(d / d1));
} else
if(d1 > 0.0D && d < 0.0D)
{
theta = Math.toDegrees(-Math.atan(d / d1));
} else
if(d1 < 0.0D && d > 0.0D)
{
theta = -90D + Math.toDegrees(Math.atan(d1 / d));
} else
if(d1 < 0.0D && d < 0.0D)
{
theta = 90D + Math.toDegrees(Math.atan(d1 / d));
}
player.aS = (float)theta;
double d4 = Math.sqrt(d1 * d1 + d * d);
double d6 = -Math.toDegrees(Math.atan(d2 / d4));
player.aT = (float)d6;
}
return true;
}
WorldGenMinable player;
UnexpectedThrowable entityplayer;
UnexpectedThrowable currentplayer;
double entityplayerdistance;
double currentplayerdistance;
double theta;
boolean target;
int frame;
boolean canpress;
}
[/html]