Install the Library

Let's use gradle!

To install and use the MModding Library with your mod, you need to add the following to your gradle/libs.versions.toml file:

[versions]
# ...
# under the quilted_fabric_api
mmodding_lib = "VERSION"

[libraries]
# ...
# under the quilted_fabric_api
mmodding_lib = { module = "com.github.MModding:MModding-Library", version.ref = "mmodding_lib" }

Tip: check the release tags on GitHub to see what to replace "VERSION" with.

Then go to the build.gradle file:

repositories {
    // ...
    maven { url 'https://jitpack.io' }
    maven { url = 'https://maven.terraformersmc.com' }
}

dependencies {
    // ...
    
    // MModding Library
    modImplementation libs.mmodding.lib
}

Last updated