Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.80 KB | None | 0 0
  1.         if(mc.thePlayer.isCollidedHorizontally){
  2.             mc.thePlayer.motionY = (0.2D);
  3.            
  4.             float var6 = 0.15F;
  5.  
  6.             if (mc.thePlayer.motionX < (double)(-var6))
  7.             {
  8.                 mc.thePlayer.motionX = ((double)(-var6));
  9.             }
  10.  
  11.             if (mc.thePlayer.motionX > (double)var6)
  12.             {
  13.                 mc.thePlayer.motionX = ((double)var6);
  14.             }
  15.  
  16.             if (mc.thePlayer.motionZ < (double)(-var6))
  17.             {
  18.                 mc.thePlayer.motionZ = ((double)(-var6));
  19.             }
  20.  
  21.             if (mc.thePlayer.motionZ > (double)var6)
  22.             {
  23.                 mc.thePlayer.motionZ = ((double)var6);
  24.             }
  25.  
  26.             mc.thePlayer.fallDistance = (0);
  27.            
  28.             if (mc.thePlayer.motionY < -0.15D)
  29.             {
  30.                 mc.thePlayer.motionY = (-0.15D);
  31.             }
  32.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement