Skip to content

Setup Environment

Accessories supports both Fabric and Neoforge, and also support mods that are multiplatform by offering a Common target.

To start you will need to add the following mavens to your build.gradle:

build.gradle
    maven { url 'https://maven.wispforest.io/releases' }
    maven { url 'https://maven.su5ed.dev/releases' }
    maven { url 'https://maven.fabricmc.net' }

After declaring such, you will need to add the dependency within the dependencies block while also specifying the accessories_version within your gradle.properties:

build.gradle
dependencies {
    modImplementation("io.wispforest:accessories-fabric:${project.accessories_version}")
}
build.gradle
dependencies {
    implementation("io.wispforest:accessories-neoforge:${project.accessories_version}")
}

Multiloader

build.gradle
dependencies {
    modImplementation("io.wispforest:accessories-common:${project.accessories_version}")
}
build.gradle
dependencies {
    modImplementation("io.wispforest:accessories-neoforge:${project.accessories_version}")

    // Required due to issues with JIJ dependency resolving in arch or something
    forgeRuntimeLibrary("blue.endless:jankson:1.2.2")
    forgeRuntimeLibrary("io.wispforest:endec:0.1.9")
    forgeRuntimeLibrary("io.wispforest.endec:gson:0.1.5")
    forgeRuntimeLibrary("io.wispforest.endec:jankson:0.1.6")
    forgeRuntimeLibrary("io.wispforest.endec:netty:0.1.6")
}
build.gradle
dependencies {
    // Yarn Intermediary 
    compileOnly("io.wispforest:accessories-common:${project.accessories_version}")

    // Mojang Mappings
    compileOnly("io.wispforest:accessories-common:${project.accessories_version}-mojmap")
}

To start you will need to add the following mavens to your build.gradle:

build.gradle.kts
    maven("https://maven.wispforest.io/releases")
    maven("https://maven.su5ed.dev/releases")
    maven("https://maven.fabricmc.net")

After declaring such, you will need to add the dependency within the dependencies block while also specifying the accessories_version within your gradle.properties:

build.gradle.kts
dependencies {
    modImplementation("io.wispforest:accessories-fabric:${properties["accessories_version"]}")
}
build.gradle.kts
dependencies {
    implementation("io.wispforest:accessories-neoforge:${properties["accessories_version"]}")
}

Multiloader

build.gradle.kts
dependencies {
    modImplementation("io.wispforest:accessories-common:${properties["accessories_version"]}")
}
dependencies {
    modImplementation("io.wispforest:accessories-neoforge:${properties["accessories_version"]}")

    // Required due to issues with JIJ dependency resolving in arch or something
    forgeRuntimeLibrary("blue.endless:jankson:1.2.2")
    forgeRuntimeLibrary("io.wispforest:endec:0.1.9")
    forgeRuntimeLibrary("io.wispforest.endec:gson:0.1.5")
    forgeRuntimeLibrary("io.wispforest.endec:jankson:0.1.6")
    forgeRuntimeLibrary("io.wispforest.endec:netty:0.1.6")
}
build.gradle.kts
dependencies {
    // Yarn Intermediary 
    compileOnly("io.wispforest:accessories-common:${properties["accessories_version"]}")

    // Mojang Mappings
    compileOnly("io.wispforest:accessories-common:${properties["accessories_version"]}-mojmap")
}

Tip

It is recommended to get the latest version either from Modrinth, Curseforge or check the Maven for latest dev builds.


Last update: 2024-12-25