Skip to main content
Version: NG7

NeoGradle Configurations

NeoGradle has numerous configurations that can change how the development environment is configured.

Enabling Access Transformers

Access Transformers can widen the visibility or modify the final flag of Minecraft classes, methods, and fields.

To enable Access Transformers in the production environment, you can set accessTransformers to the configuration file in question:

minecraft {
// ...

// Add an Access Transformer file relative to the project's directory
accessTransformers {

// Multiple files can be specified and are applied in order

In production, NeoForge will search for Access Transformer files as specified in mods.toml, or at META-INF/accesstransformer.cfg if none are specified: