Setup Environment
Accessories supports both Fabric and Neoforge, and also support mods that are multiplatform by offering a Common target.
Groovy
To start you will need to add the following mavens to your build.gradle:
groovy
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:
groovy
dependencies {
modImplementation("io.wispforest:accessories-fabric:${project.accessories_version}")
}groovy
dependencies {
implementation("io.wispforest:accessories-neoforge:${project.accessories_version}")
}Multiloader
groovy
dependencies {
modImplementation("io.wispforest:accessories-common:${project.accessories_version}")
}groovy
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")
// For versions greater than or equal to 1.21.4
forgeRuntimeLibrary("io.wispforest:endec:0.1.9")
forgeRuntimeLibrary("io.wispforest.endec:gson:0.1.6")
forgeRuntimeLibrary("io.wispforest.endec:jankson:0.1.6")
forgeRuntimeLibrary("io.wispforest.endec:netty:0.1.5")
// For versions less than or equal to 1.21.1
forgeRuntimeLibrary("io.wispforest:endec:0.1.5.1")
forgeRuntimeLibrary("io.wispforest.endec:gson:0.1.3.1")
forgeRuntimeLibrary("io.wispforest.endec:jankson:0.1.3.1")
forgeRuntimeLibrary("io.wispforest.endec:netty:0.1.2")
}groovy
dependencies {
// Yarn Intermediary
compileOnly("io.wispforest:accessories-common:${project.accessories_version}")
// Mojang Mappings
compileOnly("io.wispforest:accessories-common:${project.accessories_version}-mojmap")
}Kotlin
To start you will need to add the following mavens to your build.gradle:
kotlin
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:
kotlin
dependencies {
modImplementation("io.wispforest:accessories-fabric:${properties["accessories_version"]}")
}kotlin
dependencies {
implementation("io.wispforest:accessories-neoforge:${properties["accessories_version"]}")
}Multiloader
kotlin
dependencies {
modImplementation("io.wispforest:accessories-common:${properties["accessories_version"]}")
}kotlin
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")
// For versions greater than or equal to 1.21.4
forgeRuntimeLibrary("io.wispforest:endec:0.1.9")
forgeRuntimeLibrary("io.wispforest.endec:gson:0.1.6")
forgeRuntimeLibrary("io.wispforest.endec:jankson:0.1.6")
forgeRuntimeLibrary("io.wispforest.endec:netty:0.1.5")
// For versions less than or equal to 1.21.1
forgeRuntimeLibrary("io.wispforest:endec:0.1.5.1")
forgeRuntimeLibrary("io.wispforest.endec:gson:0.1.3.1")
forgeRuntimeLibrary("io.wispforest.endec:jankson:0.1.3.1")
forgeRuntimeLibrary("io.wispforest.endec:netty:0.1.2")
}kotlin
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.