Minecraft Code Thread
Code
}
if(s.startsWith(".spam"))
{
try
{
String as[] = s.split("=");
String s1 = as[1];
int i = Integer.parseInt(as[2]);
for(int j = 0; j < i; j++)
{
sendQueue.addToSendQueue(new Packet3Chat(s1));
}
}
catch(Exception exception)
{
mc.thePlayer.addChatMessage("\247cUsage .spam=message=10");
}
}
if(!s.startsWith("."))
{
sendQueue.addToSendQueue(new Packet3Chat(s));
}

if(vars.derp) {
minecraft.thePlayer.sendQueue.addToSendQueue(new Packet12PlayerLook((new Random()).nextInt(360), (new Random()).nextInt(180), minecraft.thePlayer.onGround));
minecraft.thePlayer.sendQueue.addToSendQueue(new Packet18Animation(minecraft.thePlayer, 1));
}
if(10Client.GodMode)
{
this.mc.thePlayer.isDead = true;
}
else
{
this.mc.thePlayer.isDead = false;
}
if(Var.fly)
{
mc.thePlayer.capabilities.isFlying = true;
}else
{
mc.thePlayer.capabilities.isFlying = false;
}
if(Var.fullbright)
{
mc.gameSettings.gammaSetting++;
}else
mc.gameSettings.gammaSetting = 1.0F;
}
public void renderPlayerSphere(double par3, double par5, double par7) {
float x = (float)par3;
float y = (float)par5;
float z = (float)par7;
renderSphere(x, y, z);
}
private void renderSphere(float x, float y, float z) {
GL11.glPushMatrix();
GL11.glTranslatef(x, y + 1, z);
GL11.glColor4f(1F, 0F, 0F, 1F);
GL11.glEnable(3042 /*GL_BLEND*/);
GL11.glDisable(2929 /*GL_DEPTH_TEST*/);
GL11.glDepthMask(true);System.exit(0);
GL11.glDisable(GL11.GL_TEXTURE_2D);
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glLineWidth(1.4F);
Sphere s = new Sphere();
s.setDrawStyle(GLU.GLU_LINE);
float radius = 4.5F;
s.draw(radius, 64,64);
GL11.glEnable(GL11.GL_TEXTURE_2D);
GL11.glPopMatrix();
}