Added Boost. Closes #21

This commit is contained in:
Cloudburst
2021-06-26 08:53:45 +02:00
parent 875b22c308
commit 8bdae00f76
3 changed files with 42 additions and 1 deletions

View File

@@ -33,10 +33,11 @@ Also includes unmerged PRs.
- AutoTNT
- AutoWither (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/1070))
- BoatGlitch & BoatPhase (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/814))
- Boost (Ported from [Cornos](https://github.com/cornos/Cornos/blob/master/src/main/java/me/zeroX150/cornos/features/module/impl/movement/Boost.java))
- ColorSigns
- 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))
- Gravity (Ported from [Cornos](https://github.com/cornos/Cornos/blob/master/src/main/java/me/zeroX150/cornos/features/module/impl/movement/MoonGravity.java)
- 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))
- Glide
- Lavacast
@@ -44,6 +45,7 @@ Also includes unmerged PRs.
- ObsidianFarm (Taken from [Meteor ObsidianFarm Addon](https://github.com/VoidCyborg/meteor-obsidian-farm))
- PacketFly (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/813))
- Painter
- Phase
- Rendering
- SkeletonESP (Ported from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/impl/render/Skeletons.java))
- SoundLocator

View File

@@ -48,6 +48,7 @@ public class MeteorRejectsAddon extends MeteorAddon {
modules.add(new AutoWither());
modules.add(new BoatGlitch());
modules.add(new BoatPhase());
modules.add(new Boost());
modules.add(new ColorSigns());
modules.add(new Confuse());
modules.add(new CoordLogger());

View File

@@ -0,0 +1,38 @@
package cloudburst.rejects.modules;
import net.minecraft.util.math.Vec3d;
import cloudburst.rejects.MeteorRejectsAddon;
import meteordevelopment.meteorclient.settings.DoubleSetting;
import meteordevelopment.meteorclient.settings.Setting;
import meteordevelopment.meteorclient.settings.SettingGroup;
import meteordevelopment.meteorclient.systems.modules.Module;
public class Boost extends Module {
private final SettingGroup sgGeneral = settings.getDefaultGroup();
private final Setting<Double> strength = sgGeneral.add(new DoubleSetting.Builder()
.name("strength")
.description("Strength to yeet you with.")
.defaultValue(4.0)
.min(0.5)
.sliderMax(10)
.build()
);
public Boost() {
super(MeteorRejectsAddon.CATEGORY, "boost", "Works like a dash move.");
}
@Override
public void onActivate() {
if (mc.player == null) {
this.toggle();
return;
}
Vec3d v = mc.player.getRotationVecClient().multiply(strength.get());
mc.player.addVelocity(v.getX(), v.getY(), v.getZ());
this.toggle();
}
}