You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val controlValue by setting("Control Value", Mode.Altitude)
53
-
val targetAltitude by setting("Target Altitude", 120, 0..256, 10, unit =" blocks", description ="Adjusts pitch to control altitude") { controlValue ==Mode.Altitude }
53
+
val targetAltitude by setting("Target Altitude", 319, 0..1500, 10, unit =" blocks", description ="Adjusts pitch to control altitude") { controlValue ==Mode.Altitude }
54
54
val targetSpeed by setting("Target Speed", 20.0, 0.1..50.0, 0.1, unit =" m/s", description ="Adjusts pitch to control speed") { controlValue ==Mode.Speed }
55
55
56
56
val horizontalSpeed by setting("Horizontal Speed", false, description ="Uses horizontal speed instead of total speed for speed control") { controlValue ==Mode.Speed }
privateval boostSpeed by setting("Boost", 0.00, 0.0..0.5, 0.005, description ="Speed to add when flying")
58
+
privateval boostSpeed by setting("Boost", 0.0, 0.0..0.5, 0.005, description ="Speed to add when flying")
55
59
privateval rocketSpeed by setting("Rocket Speed", 1.0, 0.0..2.0, 0.01, description ="Speed multiplier that the rocket gives you")
60
+
privateval angledRocketBoost by setting("Angled Rocket Boost", true, description ="Automatically scale the firework rocket boost based on your pitch angle")
61
+
privateval maxAngledBoost by setting("Max Angled Boost", 0.75, 0.0..5.0, 0.05, description ="Additional speed added on top of your base rocket speed when flying diagonally at exactly 45 degrees") { angledRocketBoost }
56
62
privateval mute by setting("Mute Elytra", false, "Mutes the elytra sound when gliding")
57
63
@JvmStatic val fakeFly by setting("Fake Fly", false, "Rapidly swaps the chestplate and elytra to give the appearance the player is flying without an elytra. May also reduce durability loss")
58
64
59
65
privateconstvalBOUNCE_TAB="Bounce"
60
-
privateconstvalCONTROL_TAB="Control"
66
+
// private const val CONTROL_TAB = "Control"
61
67
privateconstvalGRIM_CONTROL_TAB="Grim Control"
62
-
privateconstvalPACKET_TAB="Packet"
68
+
// private const val PACKET_TAB = "Packet"
63
69
privateconstvalGENERAL_TAB="None"
64
70
65
71
@Tab(GENERAL_TAB) @JvmStatic val generalMode by configBlock(GeneralElytraFly(this))
@@ -101,10 +107,18 @@ object ElytraFly : Module(
101
107
102
108
@JvmStatic
103
109
funboostRocket() = runSafe {
104
-
val vec = player.rotationVector
110
+
val rot =RotationManager.activeRotation
111
+
112
+
var targetSpeed =1.5* rocketSpeed
113
+
if (angledRocketBoost) {
114
+
val scale = sin(Math.toRadians(abs(rot.pitch) *2.0))
0 commit comments