Skip to content

Adding the dependency

WereF0X edited this page Jul 8, 2026 · 3 revisions

Welcome to the Access Denied API documentation.

Before getting started with making your own requirements, you will need to add the API dependency to your project.

This process will be pretty straightforward in most cases. However, if you are using MultiLoader, the instructions will be a bit different and will be covered later on.


In your build.gradle file, find the repositories section and add the following:

    maven {
        url = "https://cursemaven.com"
    }

The section should look like this, given you don't have over repositories already declared:

repositories {
    maven {
        url = "https://cursemaven.com"
    }
}

Now, head to the dependencies section, and add what is shown below:

    implementation "curse.maven:access-denied-api-1423093:FILE_ID"

You now need to replace FILE_ID with the correct file ID for the mod loader and version you are using. The latest values for these are as follows:

  • NeoForge
    • 1.21.1: 8393618
  • Fabric
    • 1.21.1: 8393621

So, for example, the dependency line for an Addon using NeoForge 1.21.1 would be: implementation "curse.maven:access-denied-api-1423093:8393618"

Reload your Gradle setup.


If you are not using MultiLoader, skip this section and go directly to the next page.

On MultiLoader, there are a few more instructions.

In the common module, add this to the build.gradle repositories section:

    maven {
        url = "https://cursemaven.com"
    }

And then this in the dependencies section:

    compileOnly "curse.maven:access-denied-api-1423093:8392543"

Now, follow the initial instructions in this guide, in the loader-specific modules.
This will make sure you have the API available in the common module for all classes that are loader agnostic, and have the loader specific ones in the correct places.


We can now move on to Creating your first Requirement.

Clone this wiki locally