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)
![](https://s12.postimg.org/dwq176lkt/TRACERS_PIC.png)
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:
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....
![Poker Face](images/emotions/pokerface.gif)