Dolphin -> Gravity
This commit is contained in:
@@ -33,7 +33,7 @@ public class MeteorRejectsAddon extends MeteorAddon {
|
|||||||
modules.add(new AutoWither());
|
modules.add(new AutoWither());
|
||||||
modules.add(new ColorSigns());
|
modules.add(new ColorSigns());
|
||||||
modules.add(new Confuse());
|
modules.add(new Confuse());
|
||||||
modules.add(new Dolphin());
|
modules.add(new Gravity());
|
||||||
modules.add(new InteractionMenu());
|
modules.add(new InteractionMenu());
|
||||||
modules.add(new Glide());
|
modules.add(new Glide());
|
||||||
modules.add(new Lavacast());
|
modules.add(new Lavacast());
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
52
src/main/java/cloudburst/rejects/modules/Gravity.java
Normal file
52
src/main/java/cloudburst/rejects/modules/Gravity.java
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
package cloudburst.rejects.modules;
|
||||||
|
|
||||||
|
import meteordevelopment.orbit.EventHandler;
|
||||||
|
import minegame159.meteorclient.events.world.TickEvent;
|
||||||
|
import minegame159.meteorclient.mixininterface.IVec3d;
|
||||||
|
import minegame159.meteorclient.settings.BoolSetting;
|
||||||
|
import minegame159.meteorclient.settings.Setting;
|
||||||
|
import minegame159.meteorclient.settings.SettingGroup;
|
||||||
|
import minegame159.meteorclient.systems.modules.Module;
|
||||||
|
import net.minecraft.util.math.Vec3d;
|
||||||
|
|
||||||
|
import cloudburst.rejects.MeteorRejectsAddon;
|
||||||
|
|
||||||
|
public class Gravity extends Module {
|
||||||
|
|
||||||
|
public Gravity() {
|
||||||
|
super(MeteorRejectsAddon.CATEGORY, "gravity", "Modifies gravity.");
|
||||||
|
}
|
||||||
|
|
||||||
|
private final SettingGroup sgGeneral = settings.getDefaultGroup();
|
||||||
|
|
||||||
|
private final Setting<Boolean> dolphin = sgGeneral.add(new BoolSetting.Builder()
|
||||||
|
.name("dolphin")
|
||||||
|
.description("Disable underwater gravity.")
|
||||||
|
.defaultValue(true)
|
||||||
|
.build()
|
||||||
|
);
|
||||||
|
|
||||||
|
private final Setting<Boolean> moon = sgGeneral.add(new BoolSetting.Builder()
|
||||||
|
.name("moon")
|
||||||
|
.description("Tired of being on earth?")
|
||||||
|
.defaultValue(true)
|
||||||
|
.build()
|
||||||
|
);
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
private void onTick(TickEvent.Post event) {
|
||||||
|
if (mc.options.keySneak.isPressed()) return;
|
||||||
|
|
||||||
|
if (mc.player.isTouchingWater()) {
|
||||||
|
if (dolphin.get()) {
|
||||||
|
Vec3d velocity = mc.player.getVelocity();
|
||||||
|
((IVec3d) velocity).set(velocity.x, 0.002, velocity.z);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (moon.get()) {
|
||||||
|
Vec3d velocity = mc.player.getVelocity();
|
||||||
|
((IVec3d) velocity).set(velocity.x, velocity.y + 0.0568000030517578, velocity.z); // Yes, this was precisely calculated.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user