Skip to content

Adding to Gradle

Deadlydiamond98 edited this page Mar 2, 2025 · 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=5721350

fabric.mod.json

"depends": {
    "magiclib": ">=1.0.3"
}

1.21

To add the library to your Project in 1.21 add the following (Do note, updates for the 1.21 branch have been temporarily stopped until the next Legend of Steve update, so 1.21 is outdated)

build.gradle

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

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

gradle.properties

magic_bar_lib_version=5721351

fabric.mod.json

"depends": {
    "magiclib": ">=1.0.3"
}

Clone this wiki locally