Skip to content

Commit f0efe5c

Browse files
committed
Only Fabric Baritone support
1 parent 582ea50 commit f0efe5c

16 files changed

+26
-0
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ subprojects {
3030
"mappings"("net.fabricmc:yarn:$yarnMappings:v2")
3131
}
3232

33+
repositories {
34+
maven("https://babbaj.github.io/maven/")
35+
}
36+
3337
if (path == ":common") return@subprojects
3438

3539
apply(plugin = "com.github.johnrengelman.shadow")

common/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ dependencies {
2525

2626
// Add Kotlin
2727
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")
28+
29+
// Baritone
30+
modImplementation("baritone-api:baritone-api:1.10.2")
2831
}
2932

3033
// Avoid nested jars
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.lambda.module
2+
3+
import baritone.api.BaritoneAPI
4+
import baritone.api.pathing.goals.GoalXZ
5+
import com.lambda.event.events.TickEvent
6+
import com.lambda.event.listener.SafeListener.Companion.listener
7+
8+
object BaritoneTest : Module(
9+
name = "BaritoneTest",
10+
description = "Test Baritone"
11+
) {
12+
init {
13+
listener<TickEvent.Pre> {
14+
BaritoneAPI.getProvider().primaryBaritone.customGoalProcess.setGoalAndPath(GoalXZ(0, 0))
15+
}
16+
}
17+
}

fabric/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ dependencies {
4343
// Add dependencies on the required Kotlin modules.
4444
includeLib("org.reflections:reflections:0.10.2")
4545
includeLib("org.javassist:javassist:3.28.0-GA")
46+
includeLib("dev.babbaj:nether-pathfinder:1.5")
4647

4748
// Add mods to the mod jar
4849
includeMod("net.fabricmc.fabric-api:fabric-api:$fabricApiVersion")
4950
includeMod("net.fabricmc:fabric-language-kotlin:$kotlinFabricVersion")
51+
includeMod("baritone-api:baritone-unoptimized-fabric:1.10.2")
5052

5153
// Common (Do not touch)
5254
common(project(":common", configuration = "namedElements")) { isTransitive = false }

libs/baritone-api-1.10.2.jar

556 KB
Binary file not shown.
1.49 MB
Binary file not shown.

libs/baritone-api-forge-1.10.2.jar

1.5 MB
Binary file not shown.
1.5 MB
Binary file not shown.
478 KB
Binary file not shown.
1.41 MB
Binary file not shown.

0 commit comments

Comments
 (0)