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
description = "Automatically control attitude or speed while elytra flying",
35
+
tag = ModuleTag.MOVEMENT,
36
+
) {
37
+
val controlValue by setting("Control Value", Mode.Altitude)
38
+
39
+
val maxPitchAngle by setting("Max Pitch Angle", 45.0, 0.0..90.0, 1.0, unit ="°", description ="Maximum pitch angle")
40
+
val disableOnFirework by setting("Disable On Firework", false, description ="Disables the module when a firework is used")
41
+
42
+
val targetAltitude by setting("Target Altitude", 120, 0..256, 10, unit =" blocks", description ="Adjusts pitch to control altitude") { controlValue ==Mode.Altitude }
43
+
val altitudeControllerP by setting("Altitude Control P", 1.2, 0.0..2.0, 0.05).group(Group.AltitudeControl)
44
+
val altitudeControllerD by setting("Altitude Control D", 0.85, 0.0..1.0, 0.05).group(Group.AltitudeControl)
45
+
val altitudeControllerI by setting("Altitude Control I", 0.04, 0.0..1.0, 0.05).group(Group.AltitudeControl)
46
+
val altitudeControllerConst by setting("Altitude Control Const", 0.0, 0.0..10.0, 0.1).group(Group.AltitudeControl)
47
+
48
+
val targetSpeed by setting("Target Speed", 28.0, 0.1..50.0, 0.1, unit =" m/s", description ="Adjusts pitch to control speed") { controlValue ==Mode.Speed }
49
+
val horizontalSpeed by setting("Horizontal Speed", false, description ="Uses horizontal speed instead of total speed for speed control") { controlValue ==Mode.Speed }
50
+
val speedControllerP by setting("Speed Control P", 6.75, 0.0..10.0, 0.05).group(Group.SpeedControl)
51
+
val speedControllerD by setting("Speed Control D", 4.5, 0.0..5.0, 0.05).group(Group.SpeedControl)
52
+
val speedControllerI by setting("Speed Control I", 0.3, 0.0..1.0, 0.05).group(Group.SpeedControl)
53
+
54
+
val useFirework by setting("Use Firework", false, "Automatically use fireworks to maintain speed or height")
55
+
val minHeight by setting("Min Height", 50, 0..256, 10, unit =" blocks", description ="Minimum height to use fireworks") { useFirework }
56
+
val minSpeed by setting("Min Speed", 15.0, 0.1..50.0, 0.1, unit =" m/s", description ="Minimum speed to use fireworks") { useFirework }
0 commit comments