Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ryanhcode/sable/llms.txt

Use this file to discover all available pages before exploring further.

This guide shows how to add Sable as a Maven dependency from the RyanHCode Maven repository. Pick the tab below that matches your mod’s platform, then paste the snippet into your build.gradle.
repositories {
    exclusiveContent { // Sable
        forRepository {
            maven {
                url = "https://maven.ryanhcode.dev/releases"
                name = "RyanHCode Maven"
            }
        }
        filter {
            includeGroup("dev.ryanhcode.sable")
            includeGroup("dev.ryanhcode.sable-companion")
        }
    }
}

dependencies {
    api("dev.ryanhcode.sable:sable-common-${project.minecraft_version}:${project.sable_version}")
}

Gradle properties

The snippets above reference two properties that you define in your own gradle.properties file:
  • sable_version — the version of Sable you want to depend on (e.g. 1.2.2).
  • minecraft_version — the Minecraft version you are targeting (e.g. 1.21.1).
sable_version=1.2.2
minecraft_version=1.21.1
You can browse all published Sable versions on the RyanHCode Maven repository at https://maven.ryanhcode.dev/releases/dev/ryanhcode/sable/. The artifact ID follows the pattern sable-common-<minecraft_version> or sable-fabric-<minecraft_version> depending on the platform.

Optional integration with sable-companion

If you only need lightweight, optional compatibility with Sable — for example to register a simple block property or react to a Sable event without making Sable a hard runtime dependency — use the sable-companion library instead. Its group ID is dev.ryanhcode.sable-companion, and it is already included in the filter block of the repository declaration above, so no additional repository configuration is required.

Build docs developers (and LLMs) love