Advertisement
Portl

Untitled

Oct 3rd, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. package me.fulpix.plastic.module.impl.movement;
  2.  
  3. import me.fulpix.plastic.module.Category;
  4. import me.fulpix.plastic.module.Module;
  5. import org.lwjgl.input.Keyboard;
  6.  
  7. public class MotionSpeed extends Module{
  8.  
  9. public int motionDelay;
  10.  
  11. public MotionSpeed() {
  12. super("MotionSpeed", "MotionSpeed", Keyboard.KEY_V, Category.MOVEMENT);
  13. // TODO Auto-generated constructor stub
  14. }
  15.  
  16. public void onPreMotionUpdate() {
  17. if(Keyboard.isKeyDown(17) || Keyboard.isKeyDown(31) || Keyboard.isKeyDown(32) || Keyboard.isKeyDown(35)) {
  18. if(mc.thePlayer.onGround) {
  19. motionDelay++;
  20. motionDelay %= 2;
  21. if(motionDelay == 1)
  22. mc.thePlayer.motionX *= 3.0;
  23. mc.thePlayer.motionZ *= 3.0;
  24. }else{
  25. mc.thePlayer.motionX /= 1.8D;
  26. mc.thePlayer.motionY /= 1.8D;
  27. }
  28.  
  29. mc.thePlayer.moveStrafing *= 0.1F;
  30. mc.thePlayer.motionY = 0.03;
  31. }
  32.  
  33. mc.thePlayer.isAirBorne = false;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement