HomeJavaModsMiniFabricAPI
MiniFabricAPI

I don't have time to maintain this, sorry guys

This mod adds a couple of the modules from the Fabric API to Neoforge. Specifically:

This mod hopes to ease developing multiplatform mods and allow developers to use Fabric API's code in the common module.

For Developers (Installation, Setup, Etc)

Firstly, add Modrinth to your repositories.

repositories {
    maven {
        name = "Modrinth"
        url = "https://api.modrinth.com/maven"
    }
}

The second step will depend on what kind of project you are making. For the version, check our versions page.

Architectury:

dependencies {
    compileOnly "maven.modrinth:minifabricapi:${project.minifabricapi_version}"
}

Note that we use compileOnly since this API is only available for Neoforge. To make sure the sources are provided at runtime, download the mod JAR and drop it into your neoforge/run/mods folder. Get the Fabric API and drop it into your fabric/run/mods folder.

Basic Neoforge Project:

dependencies {
    implementation "maven.modrinth.minifabricapi:${project.minifabricapi_version}
}

Always remember to add this mod as a dependency in your neoforge.mods.toml so the game crashes with a clear view of what the user has to do rather than a NoClassDefFoundError.

[[dependencies.${mod_id}]]
    modId="minifabricapi"
    type="required"
    versionRange="${minifabricapi_version}"
    ordering="NONE"
    side="CLIENT"

How does the version system work? This mod matches the Fabric API version which it is built on, with an additional integer at the end to represent the patches of this mod specifically.

How can I contribute? If you are just the ordinary player who enjoys modding, hit that download button! The more downloads we get, the more aware other developers will become of this mod. If you are a developer, pull requests on our GitHub are available. Go ahead and add a module or two, it would be extremely helpful!

Report ANY and ALL issues on my GitHub. I CANNOT STRESS THIS ENOUGH. REPORTING ISSUES IS HOW THEY GET FIXED. IF YOU WANT AN ISSUE FIXED, REPORT IT.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more