0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Add FastLadderHack

This commit is contained in:
Alexander01998 2019-09-15 05:50:34 +02:00
parent cc50391ffc
commit 28a08b59d8
2 changed files with 54 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public final class HackList implements UpdateListener
public final FastBreakHack fastBreakHack = new FastBreakHack();
// public final FastBowHack fastBowHack = new FastBowHack();
// public final FastEatHack fastEatHack = new FastEatHack();
// public final FastLadderHack fastLadderHack = new FastLadderHack();
public final FastLadderHack fastLadderHack = new FastLadderHack();
public final FastPlaceHack fastPlaceHack = new FastPlaceHack();
// public final FightBotHack fightBotHack = new FightBotHack();
public final FishHack fishHack = new FishHack();

View File

@ -0,0 +1,53 @@
/*
* Copyright (C) 2014 - 2019 | Wurst-Imperium | All rights reserved.
*
* This source code is subject to the terms of the GNU General Public
* License, version 3. If a copy of the GPL was not distributed with this
* file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt
*/
package net.wurstclient.hacks;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.util.math.Vec3d;
import net.wurstclient.Category;
import net.wurstclient.SearchTags;
import net.wurstclient.events.UpdateListener;
import net.wurstclient.hack.Hack;
@SearchTags({"FastClimb", "fast ladder", "fast climb"})
public final class FastLadderHack extends Hack implements UpdateListener
{
public FastLadderHack()
{
super("FastLadder", "Allows you to climb up ladders faster.");
setCategory(Category.MOVEMENT);
}
@Override
public void onEnable()
{
WURST.getEventManager().add(UpdateListener.class, this);
}
@Override
public void onDisable()
{
WURST.getEventManager().remove(UpdateListener.class, this);
}
@Override
public void onUpdate()
{
ClientPlayerEntity player = MC.player;
if(!player.isClimbing() || !player.horizontalCollision)
return;
if(player.input.movementForward == 0
&& player.input.movementSideways == 0)
return;
Vec3d velocity = player.getVelocity();
player.setVelocity(velocity.x, 0.2872, velocity.z);
}
}