Skip to content

Adding to Gradle

Deadlydiamond98 edited this page Aug 2, 2024 · 20 revisions

Note, right now this is using cursemaven, once Modrinth is approved I'm going to switch to that (but it shouldn't effect functionality)

1.20.1

To add the library to your Project in 1.20.1 add the following

build.gradle

repositories {
    maven {
        url "https://cursemaven.com"
    }
}

dependencies {
    modImplementation "curse.maven:magicbarlib-1075641:${magic_bar_lib_version}"
}

gradle.properties

magic_bar_lib_version=5588452

fabric.mod.json

"depends": {
    "midnightlib": ">=1.0.0"
}

1.21

To add the library to your Project in 1.21 add the following

build.gradle

repositories {
    maven {
        url "https://cursemaven.com"
    }
}

dependencies {
    modImplementation "curse.maven:magicbarlib-1075641:${magic_bar_lib_version}"
}

gradle.properties

magic_bar_lib_version=5588897

fabric.mod.json

"depends": {
    "midnightlib": ">=1.0.0"
}

Clone this wiki locally