Added Boost. Closes #21
This commit is contained in:
@@ -33,10 +33,11 @@ Also includes unmerged PRs.
|
|||||||
- AutoTNT
|
- AutoTNT
|
||||||
- AutoWither (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/1070))
|
- 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))
|
- 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
|
- 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 (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))
|
- InteractionMenu (Ported from [BleachHack](https://github.com/BleachDrinker420/BleachHack/pull/211))
|
||||||
- Glide
|
- Glide
|
||||||
- Lavacast
|
- Lavacast
|
||||||
@@ -44,6 +45,7 @@ Also includes unmerged PRs.
|
|||||||
- ObsidianFarm (Taken from [Meteor ObsidianFarm Addon](https://github.com/VoidCyborg/meteor-obsidian-farm))
|
- 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))
|
- PacketFly (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/813))
|
||||||
- Painter
|
- Painter
|
||||||
|
- Phase
|
||||||
- Rendering
|
- Rendering
|
||||||
- SkeletonESP (Ported from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/impl/render/Skeletons.java))
|
- SkeletonESP (Ported from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/impl/render/Skeletons.java))
|
||||||
- SoundLocator
|
- SoundLocator
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public class MeteorRejectsAddon extends MeteorAddon {
|
|||||||
modules.add(new AutoWither());
|
modules.add(new AutoWither());
|
||||||
modules.add(new BoatGlitch());
|
modules.add(new BoatGlitch());
|
||||||
modules.add(new BoatPhase());
|
modules.add(new BoatPhase());
|
||||||
|
modules.add(new Boost());
|
||||||
modules.add(new ColorSigns());
|
modules.add(new ColorSigns());
|
||||||
modules.add(new Confuse());
|
modules.add(new Confuse());
|
||||||
modules.add(new CoordLogger());
|
modules.add(new CoordLogger());
|
||||||
|
|||||||
38
src/main/java/cloudburst/rejects/modules/Boost.java
Normal file
38
src/main/java/cloudburst/rejects/modules/Boost.java
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user