Added Dolphin
This commit is contained in:
@@ -32,6 +32,7 @@ public class MeteorRejectsAddon extends MeteorAddon {
|
|||||||
// modules.add(new AutoTNT());
|
// modules.add(new AutoTNT());
|
||||||
modules.add(new ColorSigns());
|
modules.add(new ColorSigns());
|
||||||
modules.add(new Confuse());
|
modules.add(new Confuse());
|
||||||
|
modules.add(new Dolphin());
|
||||||
modules.add(new InteractionMenu());
|
modules.add(new InteractionMenu());
|
||||||
modules.add(new Glide());
|
modules.add(new Glide());
|
||||||
modules.add(new Lavacast());
|
modules.add(new Lavacast());
|
||||||
|
|||||||
26
src/main/java/cloudburst/rejects/modules/Dolphin.java
Normal file
26
src/main/java/cloudburst/rejects/modules/Dolphin.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user