Skip to content

Getting Started on 1.16 to 1.19.2

Fuzss edited this page Jan 10, 2024 · 1 revision

Set up your Gradle build script

The recommended way of adding FCAP to your project is via Gradle in your build.gradle file.

Selecting a version

In the groovy snippets make sure to replace <modVersion> with the version of FCAP you intend to use. Version numbers have a pretty simple form such as 8.0.0 (for Minecraft 1.20.1) or 20.4.0 (for Minecraft 1.20.4).

All available versions can be viewed on CurseForge & Modrinth.

Choosing a distribution

FCAP is available as multiple distributions depending on the mod loader / type of project you want to use it on. You will not need to depend on FCAP on the mod loader the config system is ported from.

Project Type Distribution Name Forge Api Namespace
Fabric forgeconfigapiport-fabric Intermediary

Adding the Fabric distribution to a Common Gradle module is possible, as long as only classes contained in net.minecraftforge.common and net.minecraftforge.fml.config are accessed.

Configuring repositories

repositories {
    maven {
        name = "Fuzs Mod Resources"
        url = "https://raw.githubusercontent.com/Fuzss/modresources/main/maven/"
    }
}

Configuring dependencies for Fabric Loom / Architectury Loom

dependencies {
    modApi "net.minecraftforge:forgeconfigapiport-fabric:<modVersion>"
}