Skip to content

Getting Started

Tslat edited this page Aug 1, 2025 · 20 revisions

To get SBL working in your dev environment, you'll need to do the following:

  1. Add the library to your dependencies

Example usage:

repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = 'SmartBrainLib'
                url = 'https://dl.cloudsmith.io/public/tslat/sbl/maven/'
            }
        }
        filter { 
            includeGroup('net.tslat.smartbrainlib')
        }
    }
}

NeoForge:

dependencies {
    implementation "net.tslat.smartbrainlib:SmartBrainLib-neoforge-${project.minecraft_version}:${project.sbl_version}"
    // Example: implementation "net.tslat.smartbrainlib:SmartBrainLib-neoforge-1.21.1:1.16.5"
}

Forge:

dependencies {
    implementation fg.deobf("net.tslat.smartbrainlib:SmartBrainLib-forge-${project.minecraft_version}:${project.sbl_version}")
    // Example: implementation fg.deobf("net.tslat.smartbrainlib:SmartBrainLib-forge-1.21.1:1.16.5")
}

Fabric:

dependencies {
    modImplementation "net.tslat.smartbrainlib:SmartBrainLib-fabric-${project.minecraft_version}:${project.sbl_version}"
    // Example: modImplementation "net.tslat.smartbrainlib:SmartBrainLib-fabric-1.21.1:1.16.5"
}
  1. Refresh gradle in your IDE

image

  1. (If on Forge) Regen runs in your IDE

unknown

  1. Add the dependency to your mods.toml
[[dependencies.mymodid]]
    modId="smartbrainlib"
    mandatory=true
    versionRange="[1.16,)"
    ordering="NONE"
    side="SERVER"

You should now be able to use SBL in your dev and compile your mod with it as a dependency!

Clone this wiki locally