Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. public class Step extends Module{
  2.  
  3. private boolean didSend;
  4. private int sendTicks;
  5.  
  6. @Override
  7. public void onDisable() {
  8. Timer.timerSpeed = 1.0F;
  9. }
  10.  
  11. @EventTarget
  12. public void onTick(EventPreMotionUpdates event)
  13. {
  14. if (((this.mc.thePlayer.motionX != 0.0D) || (this.mc.thePlayer.motionZ != 0.0D)) && (this.mc.thePlayer.isCollidedHorizontally) && (!this.mc.thePlayer.isOnLadder()))
  15. {
  16. if (this.mc.thePlayer.onGround)
  17. {
  18. this.mc.thePlayer.motionY = 0.3998D;
  19. Timer.timerSpeed = 2.55F;
  20. }
  21. else if (this.mc.thePlayer.motionY <= -0.162D)
  22. {
  23. this.mc.thePlayer.motionY = 0.269D;
  24. Timer.timerSpeed = 1.387F;
  25. }
  26. }
  27. else {
  28. Timer.timerSpeed = 1.0F;
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement