SSGL Wiki

Setting up SSGL

Adding the dependency

⚠️ The project isn't approved on Curseforge or Modrinth yet, so clone the repository, compile the mod, and use that jar for now instead. Or wait for Curseforge or Modrinth's approval.

YourMod/
├── libs/
│   └── ssgl-1.0+26.3.jar
├── src/
│   └── main/
│       ├── java/...
│       └── resources/...
└── build.gradle

Add it to your build.gradle:

dependencies {
    // ...
    implementation files("libs/ssgl-1.0+26.3.jar")
}

Replace the filename with the actual downloaded version.

Declare SSGL as a dependency

Your fabric.mod.json must declare SSGL as a dependency:

"depends": {
    // ...
    "ssgl": ">=1.0+26.3"
}

Use the appropriate version constraints for your project and the SSGL release you support.

SSGL does not require Fabric API. Your own mod can still use Fabric API independently.

Imports

The main entry point is:

import smilenotalive.ssgl.SSGL;

GUI-related classes are available under:

import smilenotalive.ssgl.gui.*;

You can also import individual classes when preferred.