SHARE
TWEET

Untitled

a guest Jul 17th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.        
  2. if (Speed.faithful.i() && Speed.mc.thePlayer.onGround && isMoving()) { //FAITHFUL
  3.             Timer.setTimerRate(0.33f);
  4.             this.s(2.0);
  5.             Speed.mc.thePlayer.onGround = true;
  6.         }        
  7.  
  8.  
  9.  
  10. if (Speed.evermine.i()) { //EVERMINE
  11.             if (isMoving()) {
  12.                 this.s(0.34);
  13.             }
  14.             if (Speed.mc.thePlayer.onGround && isMoving()) {
  15.                 Speed.mc.thePlayer.motionY = 0.41;
  16.             }
  17.         }
  18.  
  19.  
  20.  
  21.  
  22.     @Override
  23.     public void dd() { //ON DISABLE
  24.         Timer.setTimerRate(1.0f);
  25.     }
  26.  
  27.     public void s(final double s) {
  28.         Speed.mc.thePlayer.motionX = -MathHelper.sin(this.gg()) * s;
  29.         Speed.mc.thePlayer.motionZ = MathHelper.cos(this.gg()) * s;
  30.     }
  31.  
  32.     public static boolean isMoving() {
  33.         return Speed.mc.thePlayer.moveForward != 0.0f || Speed.mc.thePlayer.moveStrafing != 0.0f;
  34.     }
  35.  
  36. //CLASSE DEL TIMER ============================================================================================================
  37.     public static Slider min;
  38.     public static Slider max;
  39.     private long lastRateChange;    
  40.     private static Field timerField;
  41.     private static Field speedField;
  42.  try {
  43.             Timer.timerField = Minecraft.class.getDeclaredField("field_71428_T");
  44.             Timer.speedField = net.minecraft.util.Timer.class.getDeclaredField("field_74278_d");
  45.         }
  46.         catch (NoSuchFieldException ex) {}
  47.     }
  48.    
  49.     @SubscribeEvent
  50.     public void a(final TickEvent.RenderTickEvent e) {
  51.         if (System.currentTimeMillis() > this.lastRateChange + 1000L) {
  52.             final double minRate = Timer.min.getMinecraft();
  53.             final double maxRate = Timer.max.getMinecraft();
  54.             setTimerRate((float)(minRate + MathUtils.random.nextDouble() * (maxRate - minRate)));
  55.             this.lastRateChange = System.currentTimeMillis();
  56.         }
  57.     }
  58.    
  59.     @Override
  60.     public void dd() {
  61.         setTimerRate(1.0f);
  62.     }
  63.    
  64.     public static void setTimerRate(final float rate) {
  65.         try {
  66.             Timer.timerField.setAccessible(true);
  67.             final net.minecraft.util.Timer timer = (net.minecraft.util.Timer)Timer.timerField.get(Timer.mc);
  68.             Timer.timerField.setAccessible(false);
  69.             Timer.speedField.setAccessible(true);
  70.             Timer.speedField.set(timer, rate);
  71.             Timer.speedField.setAccessible(false);
  72.         }
  73.         catch (Throwable t) {}
  74.     }
  75. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top