public void onUpdate() { if(!(this.getToggled())) return; if(Minecraft.getMinecraft().thePlayer.isCollidedHorizontally) Minecraft.getMinecraft().thePlayer.motionY = 0.2; }