Added Boost. Closes #21
This commit is contained in:
@@ -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());
|
||||
|
||||
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