CoolHow to make a tracer hack!

Posts 1–11 of 11 · Page 1 of 1
How to make a tracer hack!

Hi guys today I am gonna show yow ass on how to make a tracer hack in minecraft!

First we need our instance of it
For me i made a external Module Base;

Code:
	public Tracers() {
		super("Tracers", Category.RENDER, Keyboard.KEY_NONE, true);
		
	}
Thats my tracer instance; First we need to define a method that can be placed as a render object for our tracer line overlay;

Goto: EntityRenderer.java (LCNTRL + SHIFT + R)

Search (LCNTRL + F) for "hand"

Under that paste this code:
Code:
for(Module m : DEFINE MODULE ARRAY)
        	m.onRender();
This will make the instance of onRender function now we can get to work!

Goto your tracers.class

Paste this:
Code:
public void onRender()
	{ }
If u want to know if onRender works simply paste this above the line:
Code:
@Override
If it doesnt give a error you defined it correctly!

So now we need to make the render functions for the lines;

Code:
public static void tracerLine(Entity entity, int mode)
		{
			double x =
				entity.posX
					- Minecraft.getMinecraft().getRenderManager().renderPosX;
			double y =
				entity.posY + entity.height / 2
					- Minecraft.getMinecraft().getRenderManager().renderPosY;
			double z =
				entity.posZ
					- Minecraft.getMinecraft().getRenderManager().renderPosZ;
			GL11.glBlendFunc(770, 771);
			GL11.glEnable(GL11.GL_BLEND);
			GL11.glLineWidth(2.0F);
			GL11.glDisable(GL11.GL_TEXTURE_2D);
			GL11.glDisable(GL11.GL_DEPTH_TEST);
			GL11.glDepthMask(false);		
                        //TODO: Defines COLOR	R,G,B,A	
                       GL11.glColor4d(0, 1, 0, 0.5F);
			GL11.glBegin(GL11.GL_LINES);
			{
				GL11.glVertex3d(0, Minecraft.getMinecraft().thePlayer.getEyeHeight(), 0);
				GL11.glVertex3d(x, y, z);
			}
			GL11.glEnd();
			GL11.glEnable(GL11.GL_TEXTURE_2D);
			GL11.glEnable(GL11.GL_DEPTH_TEST);
			GL11.glDepthMask(true);
			GL11.glDisable(GL11.GL_BLEND);
		}
Now when understanding u got this in the onRender function:
Code:
public void onRender()
	{if(!ENABLED FUNCTION) return;
for(Object o : getWorld().loadedEntityList) {
if(o instanceof EntityOtherPlayerMP) {
    EntityOtherPlayerMP entity = (EntityOtherPlayerMP)o;
tracerLine(entity, 0);
 }}
Final Result:


Thanks!

BTW I dont know why i looked at the ground....
Quote Originally Posted by Cataclyzmic3 View Post
Thx, thank you.
No thanks!
how did u get the decompiled minecraft code?
MCP 1.8 my friend.
I dont understand got my dick stuck in a toaster
Code:
for(Object o : getWorld().loadedEntityList)
getWorld() is undefined for type Tracers.

HELP!
Quote Originally Posted by FantaZeus View Post
Code:
for(Object o : getWorld().loadedEntityList)
getWorld() is undefined for type Tracers.

HELP!
Idk if you know any java;
but here is the fix

Change getWorld().loadedEntityList with

Minecraft.getMinecraft().theWorld.loadedEntityList and make sure to import Minecraft
Thanks man
time to stalk people in Minecraft
thank for you

- - - Updated - - -

thank for you

- - - Updated - - -

thank for you
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us