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:
parent
cc50391ffc
commit
28a08b59d8
@ -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();
|
||||
|
53
src/main/java/net/wurstclient/hacks/FastLadderHack.java
Normal file
53
src/main/java/net/wurstclient/hacks/FastLadderHack.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user