PostMinecraft Code Thread

Posts 110 of 10 · Page 1 of 1
Minecraft Code Thread
Minecraft Code Thread
Basically this thread will contain user contributed code for Minecraft that the community can then go on and use.
I hope that this thread will be a thriving part of the section and will help a lot of people.
If you wish to contribute some code you use the template below:

Hack name:
Description:
Code:
Code

Guess i'll start it off,

Hack name: Spam
Description: Sends the same message
indiscriminately in chat
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));
}
Edit: Fail lol
Quote Originally Posted by Gku2 View Post
@Lonesome Cowboy

This Is More Of A Skid Friendly Tutorial?
I had seen that there was one of these threads in the Garry's Mod section and it was quite popular and so I thought I would make one for the Minecraft community
Simple yet funny to see others reactions

Code:
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));
}
Hack name: GodMode / FreezeHealth
Description: Makes you freeze where you are and you can't be damaged. NCP may cause issues.
Code:
Code:
if(10Client.GodMode)
{
this.mc.thePlayer.isDead = true;
}
else
{
this.mc.thePlayer.isDead = false;
}
Quote Originally Posted by RandomAmazingGuy View Post
Hack name: GodMode / FreezeHealth
Description: Makes you freeze where you are and you can't be damaged. NCP may cause issues.
Code:
Code:
if(10Client.GodMode)
{
this.mc.thePlayer.isDead = true;
}
else
{
this.mc.thePlayer.isDead = false;
}

You don't need this... You only need mc.
Quote Originally Posted by bsquidwrd View Post
Simple yet funny to see others reactions

Code:
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));
}
Thank you for your contribution but please set out your post with the template found on the original post.





---------- Post added at 10:18 PM ---------- Previous post was at 10:17 PM ----------

Quote Originally Posted by RandomAmazingGuy View Post
Hack name: GodMode / FreezeHealth
Description: Makes you freeze where you are and you can't be damaged. NCP may cause issues.
Code:
Code:
if(10Client.GodMode)
{
this.mc.thePlayer.isDead = true;
}
else
{
this.mc.thePlayer.isDead = false;
}
Thanks i'm sure this code can be used
[COLOR=#000000][SIZE=2][B]Although this thread is disappearing, I just had to contribute.

Hack name: Fly
Description: Allows the player to fly in survival.
Code:
if(Var.fly)
{
    mc.thePlayer.capabilities.isFlying = true;
}else
{
    mc.thePlayer.capabilities.isFlying = false;
}
Hack name: Fullbright
Description: Increases the gamma making the world bright.
Code:
if(Var.fullbright)
{
    mc.gameSettings.gammaSetting++;
}else
    mc.gameSettings.gammaSetting = 1.0F;
}
Hack name: PvP ESP
Description: creates a sphere out of lines with a radius of the float radius
Code:
Code:
        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();
        }
Look at my turorial on how to call it(same as were you call your normal esp), call renderPlayerSphere
Posts 110 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?