Skip to content

Fabric

The com.possible-triangle.fabric plugin is an abstract layer around Fabric Loom, specifically version 1.11.

Like the other loader plugins, it tries to align with a common API interface, to make migration & sharing between them easier.

There are some fabric-only values, which fallback to gradle properties

Property Default Value
loaderVersion gradle.properties: fabric_loader_version
apiVersion gradle.properties: fabric_api_version
kotlinFabricVersion (1) gradle.properties: kotlin_fabric_version
  1. read more about kotlin support

Access Wideners

The fabric extension provides several ways to enable access wideners for the subproject.

build.gradle.kts
neoforge {
   // default path at <project-path>/src/main/resources/<mod-id>.accesswidener
   accessWidener()
   accessWidener(project(":other-sub-project"))
   // custom file path
   accessWidener(file("..."))
}

Datagen

Like other loaders, it can be configured using the dataGen method on the fabric extension. Everything else follows the same standard API as the other loaders.

Existing mods are also added as system properties to allow usage of Porting Lib's ExistingFileHelper.