snail stealing our modules smh
This commit is contained in:
@@ -30,7 +30,7 @@ Also includes unmerged PRs.
|
|||||||
- ColorSigns
|
- ColorSigns
|
||||||
- Confuse
|
- Confuse
|
||||||
- Coord Logger (World events from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/impl/misc/CoordFinder.java))
|
- Coord Logger (World events from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/impl/misc/CoordFinder.java))
|
||||||
- Gravity (Half ported from [Cornos](https://github.com/cornos/Cornos/blob/master/src/main/java/me/zeroX150/cornos/features/module/impl/movement/MoonGravity.java), half writen by me)
|
- Gravity (Ported from [Cornos](https://github.com/cornos/Cornos/blob/master/src/main/java/me/zeroX150/cornos/features/module/impl/movement/MoonGravity.java)
|
||||||
- InteractionMenu (Ported from [BleachHack](https://github.com/BleachDrinker420/BleachHack/pull/211))
|
- InteractionMenu (Ported from [BleachHack](https://github.com/BleachDrinker420/BleachHack/pull/211))
|
||||||
- Glide
|
- Glide
|
||||||
- Lavacast
|
- Lavacast
|
||||||
|
|||||||
@@ -19,13 +19,6 @@ public class Gravity extends Module {
|
|||||||
|
|
||||||
private final SettingGroup sgGeneral = settings.getDefaultGroup();
|
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()
|
private final Setting<Boolean> moon = sgGeneral.add(new BoolSetting.Builder()
|
||||||
.name("moon")
|
.name("moon")
|
||||||
.description("Tired of being on earth?")
|
.description("Tired of being on earth?")
|
||||||
@@ -37,16 +30,9 @@ public class Gravity extends Module {
|
|||||||
private void onTick(TickEvent.Post event) {
|
private void onTick(TickEvent.Post event) {
|
||||||
if (mc.options.keySneak.isPressed()) return;
|
if (mc.options.keySneak.isPressed()) return;
|
||||||
|
|
||||||
if (mc.player.isTouchingWater()) {
|
if (moon.get()) {
|
||||||
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();
|
Vec3d velocity = mc.player.getVelocity();
|
||||||
((IVec3d) velocity).set(velocity.x, velocity.y + 0.0568000030517578, velocity.z); // Yes, this was precisely calculated by the cornos dev (https://github.com/cornos/Cornos/blob/master/src/main/java/me/zeroX150/cornos/features/module/impl/movement/MoonGravity.java)
|
((IVec3d) velocity).set(velocity.x, velocity.y + 0.0568000030517578, velocity.z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user