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
* Baritone.kt Darft
* Update baritone.kt
* Compile fix
All of the original stuff and more works.
* New Baritone controls
* Baritone.kt complete
* Fix typos
Co-authored-by: Constructor <fractalminds@protonmail.com>
Copy file name to clipboardExpand all lines: src/main/kotlin/com/lambda/client/module/modules/client/Baritone.kt
+72-22
Original file line number
Diff line number
Diff line change
@@ -19,22 +19,54 @@ object Baritone : Module(
19
19
showOnArray = false,
20
20
alwaysEnabled = true
21
21
) {
22
-
privateval showOnRadar by setting("Show Path on Radar", true, description ="Show the current path on radar.")
23
-
privateval color by setting("Path Color", ColorHolder(32, 250, 32), visibility = { showOnRadar })
24
-
privateval allowBreak by setting("Allow Break", true)
25
-
privateval allowSprint by setting("Allow Sprint", true)
26
-
privateval allowPlace by setting("Allow Place", true)
27
-
privateval allowInventory by setting("Allow Inventory", false)
28
-
privateval freeLook by setting("Free Look", true)
29
-
privateval allowWaterBucketFall by setting("Water bucket clutch", true, description ="Uses a water bucket to get down quickly.")
30
-
privateval maxFallHeightBucket by setting("Max bucket height", 20, 5..255, 5, { allowWaterBucketFall }, description ="Max height that baritone can use a water bucket.")
31
-
privateval allowDownwardTunneling by setting("Downward Tunneling", true)
32
-
privateval allowParkour by setting("Allow Parkour", true)
33
-
privateval allowParkourPlace by setting("Allow Parkour Place", true)
34
-
privateval avoidPortals by setting("Avoid Portals", false)
35
-
privateval renderGoal by setting("Render Goals", true)
36
-
privateval failureTimeout by setting("Fail Timeout", 2, 1..20, 1, unit ="s")
37
-
privateval blockReachDistance by setting("Reach Distance", 4.5f, 1.0f..10.0f, 0.5f)
privateval allowBreak by setting("Allow Break", true, { page ==Page.BASIC }, description ="Allow Baritone to break blocks.")
31
+
privateval allowPlace by setting("Allow Place", true, { page ==Page.BASIC }, description ="Allow Baritone to place blocks.")
32
+
privateval allowSprint by setting("Allow Sprint", true, { page ==Page.BASIC }, description ="Allow Baritone to sprint.")
33
+
privateval allowInventory by setting("Allow Inventory", false, { page ==Page.BASIC }, description ="Allow Baritone to move items in your inventory to your hotbar.")
privateval buildInLayers by setting("Build In Layers", false, { page ==Page.BASIC }, description ="Build/mine one layer at a time in schematics and selections.")
38
+
privateval layerOrder by setting("Top To Bottom", false, { buildInLayers && page ==Page.BASIC }, description ="Build/mine from top to bottom in schematics and selections.")
39
+
40
+
/* Visual */
41
+
privateval freeLook by setting("Free Look", true, { page ==Page.VISUAL }, description ="Move without having to force the client-sided rotations.")
42
+
privateval renderGoal by setting("Render Goals", true, { page ==Page.VISUAL }, description ="Render the goal.")
43
+
privateval censorCoordinates by setting("Censor Coordinates", false, { page ==Page.VISUAL }, description ="Censor coordinates in goals and block positions.")
44
+
privateval censorRanCommands by setting("Censor RanCommands", false, { page ==Page.VISUAL }, description ="Censor arguments to ran commands, to hide, for example, coordinates to #goal.")
45
+
privateval showOnRadar by setting("Show Path on Radar", true, { page ==Page.VISUAL }, description ="Show the current path on radar.")
46
+
privateval color by setting("Path Color", ColorHolder(32, 250, 32), visibility = { showOnRadar && page ==Page.VISUAL }, description ="Path color for the radar.")
47
+
48
+
/* Fall */
49
+
privateval maxFallHeightNoWater by setting("Max Fall Height", 3, 3..5, 1, { page ==Page.FALL }, description ="Distance baritone can fall without water.")
50
+
privateval allowWaterBucketFall by setting("Water Bucket Clutch", true, { page ==Page.FALL }, description ="Uses a water bucket to get down quickly.")
51
+
privateval maxFallHeightBucket by setting("Max Bucket Height", 20, 10..250, 10, { allowWaterBucketFall && page ==Page.FALL }, description ="Max height that baritone can use a water bucket.")
52
+
53
+
/* Advanced */
54
+
privateval blockReachDistance by setting("Reach Distance", 4.5f, 1.0f..10.0f, 0.5f, { page ==Page.ADVANCED }, description ="Max distance baritone can place blocks.")
55
+
privateval enterPortals by setting("Enter Portals", true, { page ==Page.ADVANCED }, description ="Baritone will walk all the way into the portal, instead of stopping one block before.")
56
+
privateval blockPlacementPenalty by setting("Block Placement Penalty", 20, 0..40, 5, { page ==Page.ADVANCED }, description ="Decrease to make Baritone more often consider paths that would require placing blocks.")
57
+
privateval blockBreakAdditionalPenalty by setting("Block Break Additional Penalty", 2, 0..10, 1, { page ==Page.ADVANCED }, description ="Lower chance to break blocks. This is a tiebreaker.")
58
+
privateval jumpPenalty by setting("Jump Penalty", 2, 0..10, 1, { page ==Page.ADVANCED }, description ="Additional penalty for hitting the space bar (ascend, pillar, or parkour) because it uses hunger.")
59
+
privateval assumeWalkOnWater by setting("Assume Walk On Water", false, { page ==Page.ADVANCED }, description ="Allow Baritone to assume it can walk on still water just like any other block. Requires jesus to be enabled.")
60
+
privateval failureTimeout by setting("Fail Timeout", 2, 1..20, 1, { page ==Page.ADVANCED }, unit ="s")
61
+
privateval avoidance by setting("Avoidance", false, { page ==Page.ADVANCED }, description ="Enables the 4 avoidance settings. It's disabled by default because of the noticeable performance impact.")
privateval mobAvoidanceCoefficient by setting("Mob Avoidance Coefficient", 1.5f, 0f..5f, 0.5f, visibility = { avoidance && page ==Page.ADVANCED }, description ="Set to 1.0 to effectively disable this feature. Set below 1.0 to go out of your way to walk near mobs.")
privateval mobSpawnerAvoidanceCoefficient by setting("Mob Spawner Avoidance Coefficient", 1.5f, 0f..5f, 0.5f, visibility = { avoidance && page ==Page.ADVANCED }, description ="Set to 1.0 to effectively disable this feature. Set below 1.0 to go out of your way to walk near mob spawners.")
66
+
67
+
privateenumclassPage {
68
+
BASIC, VISUAL, FALL, ADVANCED
69
+
}
38
70
39
71
init {
40
72
settingList.forEach {
@@ -72,20 +104,38 @@ object Baritone : Module(
72
104
privatefunsync() {
73
105
BaritoneUtils.settings?.let {
74
106
it.chatControl.value =false// enable chatControlAnyway if you want to use it
0 commit comments