Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(Entity e : Minecraft.getMinecraft().theWorld.loadedEntityList) {
- if(!(e instanceEntityLivingBase) || e instanceof EntityPlayerSP) {
- continue;
- }
- double d1 = mc.thePlayer.posX - e.posX;
- double d0;
- for (d0 = mc.thePlayer.posZ - e.posZ; d1 * d1 + d0 * d0 < 1.0E-4D; d0 = (Math.random() - Math.random()) * 0.01D) {
- d1 = (Math.random() - Math.random()) * 0.01D;
- }
- float attackYaw = (float) (MathHelper.func_181159_b(d0, d1) * 180D / Math.PI - e.rotationYaw);
- }
Advertisement
Add Comment
Please, Sign In to add comment