Skip to content
HyperionDash edited this page Jul 8, 2026 · 20 revisions

How to add SilliestLib to your projects

NOTE: the project is not currently published on modrinth, and so this example will not work at the moment, please use implementation files() to add the mod jar from your files to your project of the plain implementation

build.gradle

we start in your build.gradle, where you add this as your repositories block

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

then, in dependencies block, you add this

dependencies {
    // SilliestLib
    implementation "maven.modrinth:silliestlib:${project.silliestlib_version}"
}

gradle.properties

in your gradle.properties, you now need to add the mod version, this changes with every update to the mod, so make sure to change it to update SilliestLib

silliestlib_version=5C7uJjvj

this is technically optional and can replace ${project.silliestlib_version} in the build.gradle instead of being here, but is cleaner to do here

fabric.mod.json

to make sure people can debug issues when SilliestLib is missing, remember to add the mod into the dependencies block, due to my versioning scheme not matching the semantic version format, make sure you have to version as * or it wont work :p

"depends": {
	"silliestlib": "*"
}

Your ModInitializer

before you can start any modding, in the onInitialize() method of your ModInitializer you have to add one simple line.

init(MOD_ID);

alternatively, MOD_ID can be replaced with either a string of your modId or a call to where you store your modId

Clone this wiki locally