Notice that this went missing in 1.6.1 MCP? Well here's a modified version of it for a quick fix.
Code:
public void faceEntity(Entity e)
{
double x = e.posX - mc.thePlayer.posX;
double y = e.posY - mc.thePlayer.posY;
double z = e.posZ - mc.thePlayer.posZ;
double d1 = (mc.thePlayer.posY + (double)mc.thePlayer.getEyeHeight())-(e.posY+(double)e.getEyeHeight());
double d3 = MathHelper.sqrt_double(x*x+z*z);
float f = (float)((Math.atan2(z, x)*180D)/Math.PI)-90F;
float f1= (float)(-((Math.atan2(d1, d3)*180D)/Math.PI));
mc.thePlayer.setPositionAndRotation(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, f, -f1);
}
Q: How do I call this / when?
A: faceEntity(e); You call this is when you have a for loop of entities and your instance of Entity is named e. (you can change the name of course)