Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.fulpix.plastic.module.impl.movement;
- import me.fulpix.plastic.module.Category;
- import me.fulpix.plastic.module.Module;
- import org.lwjgl.input.Keyboard;
- public class MotionSpeed extends Module{
- public int motionDelay;
- public MotionSpeed() {
- super("MotionSpeed", "MotionSpeed", Keyboard.KEY_V, Category.MOVEMENT);
- // TODO Auto-generated constructor stub
- }
- public void onPreMotionUpdate() {
- if(Keyboard.isKeyDown(17) || Keyboard.isKeyDown(31) || Keyboard.isKeyDown(32) || Keyboard.isKeyDown(35)) {
- if(mc.thePlayer.onGround) {
- motionDelay++;
- motionDelay %= 2;
- if(motionDelay == 1)
- mc.thePlayer.motionX *= 3.0;
- mc.thePlayer.motionZ *= 3.0;
- }else{
- mc.thePlayer.motionX /= 1.8D;
- mc.thePlayer.motionY /= 1.8D;
- }
- mc.thePlayer.moveStrafing *= 0.1F;
- mc.thePlayer.motionY = 0.03;
- }
- mc.thePlayer.isAirBorne = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement