Skip to content

Adding to Gradle

Deadlydiamond98 edited this page Aug 3, 2024 · 20 revisions

Important: You also need to add MidnightLib!

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=5591521

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=5591525

fabric.mod.json

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

Clone this wiki locally