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
@JvmStatic val mode by setting("Mode", FlyMode.Bounce)
58
-
privateval inventory by setting("Inventory", true, "Allow using fireworks from the players inventory")
60
+
privateval inventory by setting("Inventory", true, "Allow using fireworks from the players inventory") { mode ==FlyMode.GrimControl }
59
61
60
62
//ToDo: Implement these commented out settings
61
63
privateval takeoff by setting("Takeoff", true, "Automatically jumps and initiates gliding") { mode ==FlyMode.Bounce }
62
64
privateval autoPitch by setting("Auto Pitch", true, "Automatically pitches the players rotation down to bounce at faster speeds") { mode ==FlyMode.Bounce }
privateval flagPause by setting("Flag Pause", 20, 0..100, 1, "How long to pause if the server flags you for a movement check") { mode ==FlyMode.Bounce }
66
71
// private val passObstacles by setting("Pass Obstacles", true, "Automatically paths around obstacles using baritone") { mode == FlyMode.Bounce }
@@ -85,8 +90,11 @@ object ElytraFly : Module(
85
90
}
86
91
87
92
listen<TickEvent.Pre> {
88
-
if (mode ==FlyMode.GrimControl) onTickGrimControl()
89
-
elseif (mode ==FlyMode.Bounce) onTickBounce()
93
+
when (mode) {
94
+
FlyMode.Bounce-> onTickBounce()
95
+
FlyMode.GrimControl-> onTickGrimControl()
96
+
else-> {}
97
+
}
90
98
}
91
99
92
100
listen<TickEvent.Post> {
@@ -170,9 +178,22 @@ object ElytraFly : Module(
170
178
return
171
179
}
172
180
173
-
startFlyPacket()
181
+
if (!player.getFlag(Entity.GLIDING_FLAG_INDEX) || yMotion) {
182
+
player.setFlag(Entity.GLIDING_FLAG_INDEX, true)
183
+
startFlyPacket()
184
+
}
174
185
}
175
186
187
+
@JvmStatic
188
+
fungetModifiedBounceVelocity(original:Vec3d) =
189
+
runSafe {
190
+
if (!yMotion ||!player.isGliding ||!player.isOnGround) return@runSafe original
191
+
val speed =Speedometer.calculateSpeed(true, SpeedUnit.BlocksPerSecond)
192
+
if (speed >= speedLimit) return@runSafe original
193
+
if (speed <= yMotionStartSpeed) return@runSafe original
Copy file name to clipboardExpand all lines: src/main/kotlin/com/lambda/module/modules/world/AirPlace.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ object AirPlace : Module(
68
68
69
69
privatevar distance by setting("Distance", 4.0, 1.0..7.0, 0.01).group(Group.General)
70
70
privateval distanceScrollBind by setting("Distance Scroll Bind", Bind(KeyCode.Unbound.code, GLFW.GLFW_MOD_CONTROL), "Allows you to hold the given key and scroll to adjust distance").group(Group.General)
71
+
// Credit to THCFree for the rotation scroll idea
71
72
privateval rotationScrollBind by setting("Rotation Scroll Bind", Bind(KeyCode.Unbound.code, GLFW.GLFW_MOD_ALT), "Allows you to hold the given key and scroll to adjust the rotation of the block you're placing").group(Group.General)
72
73
73
74
privateval renderState by setting("Render State", true).group(Group.Render)
0 commit comments