/*
 * Copyright © 2014 - 2015 Alexander01998 and contributors
 * All rights reserved.
 * 
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package xyz.nulldev.ew.mods;

import net.minecraft.client.Minecraft;
import net.minecraft.network.play.client.C03PacketPlayer;
import tk.wurst_client.WurstClient;
import tk.wurst_client.api.Module;
import tk.wurst_client.events.listeners.UpdateListener;
import tk.wurst_client.mods.Mod;
import tk.wurst_client.mods.Mod.Category;
import tk.wurst_client.mods.Mod.Info;

@Info(category = Category.EXPLOITS,
        description = "Paralyze your enemies by walking to them.",
        name = "Paralyze")

@Module.ModuleInfo(version = 1.00f,
        minVersion = 151)
public class ParalyzeMod extends Mod implements UpdateListener {
    @Override
    public void onEnable() {
        super.onEnable();
        WurstClient.INSTANCE.events.add(UpdateListener.class, this);
    }

    @Override
    public void onDisable() {
        super.onDisable();
        WurstClient.INSTANCE.events.remove(UpdateListener.class, this);
    }

    @Override
    public void onUpdate() {
        for (int i = 0; i < 40001; i++) {
            Minecraft.getMinecraft().getNetHandler()
                    .addToSendQueue(new C03PacketPlayer(Minecraft.getMinecraft().thePlayer.onGround));
        }
    }
}

@@ -319,16 +319,62 @@
 .mods;%0A%0A
+import net.minecraft.entity.EntityLivingBase;%0A
 import n
@@ -585,24 +585,66 @@
 teListener;%0A
+import tk.wurst_client.utils.EntityUtils;%0A
 import tk.wu
@@ -1003,16 +1003,29 @@
 tener %7B%0A
+        %0A    
     @Ove
@@ -1022,32 +1022,36 @@
       @Override%0A
+    
     public void 
@@ -1150,39 +1150,125 @@
 r.class, this);%0A
+        EntityLivingBase en = EntityUtils.getClosestEntity(true, 360, false);%0A    
     %7D%0A%0A
+    
     @Override%0A  
@@ -1257,32 +1257,36 @@
       @Override%0A
+    
     public void 
@@ -1394,24 +1394,28 @@
 ass, this);%0A
+    
     %7D%0A%0A    @
@@ -1409,24 +1409,28 @@
      %7D%0A%0A    
+  
+  
 @Override%0A  
@@ -1423,24 +1423,28 @@
   @Override%0A
+    
     public v
@@ -1456,24 +1456,361 @@
 nUpdate() %7B%0A
+        en = EntityUtils.getClosestEntity(true, 360, false);%0A        double xDist = Math.abs(mc.thePlayer.posX - entity.posX);%0A        double yDist = Math.abs(mc.thePlayer.posY - entity.posY);%0A%09double zDist = Math.abs(mc.thePlayer.posZ - entity.posZ);%0A%09if(Math.sqrt((Math.pow(xDist, 2) + Math.pow(zDist, 2))) %3C 1D && zDist %3C 2D)%0A        
         for 
@@ -1829,13 +1829,13 @@
 i %3C 
-4
+30
 000
-1
 ; i+
@@ -1835,24 +1835,36 @@
 000; i++) %7B%0A
+            
             
@@ -1904,16 +1904,20 @@
 ndler()%0A
+    
         

Update ParalyzeMod.java