Guest User

Untitled

a guest
Jan 3rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. for(Entity e : Minecraft.getMinecraft().theWorld.loadedEntityList) {
  2.     if(!(e instanceEntityLivingBase) || e instanceof EntityPlayerSP) {
  3.         continue;
  4.     }
  5.  
  6.     double d1 = mc.thePlayer.posX - e.posX;
  7.     double d0;
  8.  
  9.     for (d0 = mc.thePlayer.posZ - e.posZ; d1 * d1 + d0 * d0 < 1.0E-4D; d0 = (Math.random() - Math.random()) * 0.01D) {
  10.         d1 = (Math.random() - Math.random()) * 0.01D;
  11.     }
  12.  
  13.     float attackYaw = (float) (MathHelper.func_181159_b(d0, d1) * 180D / Math.PI - e.rotationYaw);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment