Skip to content

Adding to Gradle

Deadlydiamond98 edited this page Aug 2, 2024 · 20 revisions

1.20.1

To add the library to your Project in 1.20.1 add the following (Note: this doesn't work quite yet, as the mod is still waiting for Modrinth approval, I'll remove this once it's approved and allows for this to work)

build.gradle

repositories {
    maven {
	name = "Modrinth"
        url = "https://api.modrinth.com/maven"
    }
}

dependencies {
    modImplementation "maven.modrinth:magic-bar-lib:${magic_bar_lib_version}"
}

gradle.properties

magic_bar_lib_version= (will put here once Modrinth Approved)

fabric.mod.json (Only if you want your mod to require Magic Bar Lib to boot)

{
    "depends": {
        "magic-bar-lib": ">=1.0.0"
    }
}

Clone this wiki locally