Added Dolphin

This commit is contained in:
Cloudburst
2021-06-03 15:44:35 +02:00
parent c3fcef8d24
commit eca7213b73
2 changed files with 27 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ public class MeteorRejectsAddon extends MeteorAddon {
// modules.add(new AutoTNT());
modules.add(new ColorSigns());
modules.add(new Confuse());
modules.add(new Dolphin());
modules.add(new InteractionMenu());
modules.add(new Glide());
modules.add(new Lavacast());

View File

@@ -0,0 +1,26 @@
package cloudburst.rejects.modules;
import meteordevelopment.orbit.EventHandler;
import minegame159.meteorclient.events.world.TickEvent;
import minegame159.meteorclient.mixininterface.IVec3d;
import minegame159.meteorclient.systems.modules.Module;
import net.minecraft.util.math.Vec3d;
import cloudburst.rejects.MeteorRejectsAddon;
public class Dolphin extends Module {
public Dolphin() {
super(MeteorRejectsAddon.CATEGORY, "dolphin", "Disables underwater gravity.");
}
@EventHandler
private void onTick(TickEvent.Post event) {
if (mc.options.keySneak.isPressed()) return;
if (mc.player.isTouchingWater()) {
Vec3d velocity = mc.player.getVelocity();
((IVec3d) velocity).set(velocity.x, 0.002, velocity.z);
}
}
}