SilliestLib

SilliestLib

A small Library mod used in Silliest SMP mods.

585 downloads 1 followers

SilliestLib is a small library mod made for the Silliest SMP team, reducing re-used code and making some things easier for us :p

extra info

How to add SilliestLib to your projects.

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 the 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.

// 26.1.2
silliestlib_version = 2.0b+26.1.2
// 26.2 (Deprecated)
silliestlib_version = 1.3a+26.2
// 26.3 (Deprecated)
silliestlib_version = 1.4b+26.3

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.

SilliestLib.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.

before you ask Q: Can i use this project in my published modpacks?

A: You can do this with any of my projects aslong as the download stays hosted within the modrinth ecosystem :3

Version Minecraft Loader Download

SilliestLib-2.1a+26.1.2

2.1a+26.1.2

26.1.2
fabric, neoforge
Download

SilliestLib 2.0b+26.1.2

2.0b+26.1.2

26.1.2
fabric, neoforge
Download

SilliestLib-2.0a+26.1.2

2.0a+26.1.2

26.1, 26.1.1, 26.1.2
fabric
Download

SilliestLib-1.4b+26.3

1.4b+26.3

26.3
fabric
Download

SilliestLib-1.4a+26.3

1.4a+26.3

26.3
fabric
Download

SilliestLib-1.3a+26.2

1.3a+26.2

26.2
fabric
Download

SilliestLib-1.2a+26.2

1.2a+26.2

26.2
fabric
Download

SilliestLib-1.1b+26.2

1.1b+26.2

26.2
fabric
Download

SilliestLib-1.1a+26.2

1.1a+26.2

26.2
fabric
Download

SilliestLib-1.0a+26.2

1.0a+26.2

26.2
fabric
Download