Skip to content

Commit ecae048

Browse files
committed
Added baritone to modloaders
1 parent 0ce35d7 commit ecae048

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
import net.fabricmc.loom.api.LoomGradleExtensionAPI
23
import net.fabricmc.loom.task.RemapJarTask
34

45
val modId = property("mod_id").toString()
@@ -8,6 +9,8 @@ val minecraftVersion = property("minecraft_version").toString()
89
val yarnMappings = property("yarn_mappings").toString()
910

1011
val libs = file("libs")
12+
val Project.loom: LoomGradleExtensionAPI
13+
get() = (this as ExtensionAware).extensions.getByName("loom") as LoomGradleExtensionAPI
1114

1215
plugins {
1316
kotlin("jvm") version "1.9.23"

forge/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ dependencies {
6666

6767
// Add mods to the mod jar
6868
includeMod("thedarkcolour:kotlinforforge:$kotlinForgeVersion")
69-
69+
includeMod("baritone-api:baritone-unoptimized-forge:1.10.2")
70+
7071
// MixinExtras
7172
implementation("io.github.llamalad7:mixinextras-forge:$mixinExtrasVersion")
7273
compileOnly(annotationProcessor("io.github.llamalad7:mixinextras-common:$mixinExtrasVersion")!!)

neoforge/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ dependencies {
6060
// Add dependencies on the required Kotlin modules.
6161
includeLib("org.reflections:reflections:0.10.2")
6262
includeLib("org.javassist:javassist:3.28.0-GA")
63+
includeLib("dev.babbaj:nether-pathfinder:1.5")
6364

6465
// Add mods to the mod jar
6566
includeMod("thedarkcolour:kotlinforforge-neoforge:$kotlinForgeVersion")
67+
includeMod("baritone-api:baritone-unoptimized-neoforge:1.10.2")
6668

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

quilt/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ dependencies {
5858
// Add dependencies on the required Kotlin modules.
5959
includeLib("org.reflections:reflections:0.10.2")
6060
includeLib("org.javassist:javassist:3.28.0-GA")
61+
includeLib("dev.babbaj:nether-pathfinder:1.5")
6162

6263
// Add mods to the mod jar
6364
includeMod("org.quiltmc.quilt-kotlin-libraries:quilt-kotlin-libraries:$kotlinQuiltVersion") {
@@ -66,6 +67,9 @@ dependencies {
6667
exclude("net.fabricmc.fabric-api")
6768
}
6869

70+
// We'll need to include the fabric modloader in quilt for this to work
71+
// includeMod("baritone-api:baritone-unoptimized-fabric:1.10.2")
72+
6973

7074
// Common (Do not touch)
7175
common(project(path = ":common", configuration = "namedElements")) { isTransitive = false }

0 commit comments

Comments
 (0)