MinecraftHub.io
Explainer

What a library mod is and why mods ask for one

Library mods carry shared code that other mods depend on. This page covers what four common ones do, how to read a dependency list and what a wrong match means.

Published Updated Checked

A library mod adds shared code that other mods build on, rather than content of its own. Fabric API, Cloth Config, Architectury API and GeckoLib are the common ones, and they exist on Java Edition only. A mod that needs one lists it as a dependency. Browse the Java mods listing to see both kinds.

What a library or API mod is

On Modrinth, all four are tagged with the category "library", and so is YetAnotherConfigLib. A library is installed like any other mod, as a .jar file in the mods folder. It is not the mod loader. Fabric's own site calls Fabric Loader "the bare minimum" and says to combine it with Fabric API for the extra APIs mods use. Setting up the loader itself is covered in how to install Fabric.

Why a mod asks for one

A mod author who needs particles, events or a settings screen can reuse a library instead of writing that code again. Fabric API's page lists exposing hard-to-reach functionality such as particles, biomes and dimensions, plus events, registry synchronization and a rendering API. Cloth Config API describes itself as a config screen API. The trade-off is that one mod can pull in several extra files, and each must match your loader and game release.

Not every library is needed by every mod built with it. Architectury's page says its API is optional for projects built on the Architectury toolchain. A mod may therefore ask for it or not. Config libraries also compete: YACL's page says Cloth Config's developer is unlikely to add more features, which is the author's claim about a rival. Both stay in use, and YACL is listed on our site.

Four common examples and what each does

Four library mods compared on purpose, side and loader range, from their Modrinth pages read 12 October 2026
LibraryWhat its page says it doesSide on ModrinthLoaders with builds
Fabric APIHooks, events, registry synchronization and a rendering API (276,001,169 downloads)Client optional, server optionalFabric, 1.14 to 26.3
Cloth Config APIConfig screen API (178,399,197 downloads)Client optional, server optionalFabric 1.14 to 26.3, NeoForge 1.20.2 to 26.3, Forge stopped at 1.21.3 (13 December 2024)
Architectury APIAbstracts Fabric API and Forge API calls for multiplatform mods (104,776,335 downloads)Client required, server requiredFabric 1.16.5 to 26.3, NeoForge 1.20.2 to 26.3, Forge and Quilt stopped at 1.20.4
GeckoLib3D keyframe animation and rendering engine (74,068,572 downloads)Client required, server optionalFabric 1.16.5 to 26.3, Forge 1.12.2 to 26.3, NeoForge 1.20 to 26.3, Quilt stopped at 1.20.1

Libraries can depend on each other. Architectury's Fabric builds require Fabric API, shown below, while its NeoForge builds require nothing.

Architectury API

Java Mod by MaxNeedsSnacks

JavaNot for Bedrock26.2Fabric, Forge, NeoForge, QuiltLast checked

The one most mods on Fabric ask for is next.

Fabric API

Java Mod by FabricMC

JavaNot for Bedrock26.2FabricLast checked

How to read a dependency list

Fabric's wiki says to open the file you are downloading and look for a "Related Projects" entry at the bottom. Required dependencies must be downloaded, and optional ones may be. Modrinth's API sorts every dependency into one of four types.

  • required
  • optional
  • incompatible
  • embedded

Inside a Fabric mod, the requirements sit in fabric.mod.json under depends, recommends, suggests, conflicts and breaks. Read the list per file, not per mod. GeckoLib's newest Fabric build, 5.5.7, requires nothing, yet its older Fabric builds for 1.16.5 to 1.21.11 list Fabric API as required. The answer changes with your loader and Minecraft release.

What happens when one is missing or the wrong version

Fabric Loader reads the declared requirements, which is why it has an override file. Fabric's documentation gives the example of a mod that demands Minecraft 26.1 exactly although it also works on 26.1.2. The overrides go in fabric_loader_dependencies.json, and the same page warns that they are for modpack developers and should not be used by regular players. Its tip is to report the mismatch to the mod's developers instead.

Matching the version matters more than it once did. Fabric's wiki says older mods often worked on newer releases in the 1.14 era, but that this is no longer the case from 1.19.x onward. A stopped loader adds a limit of its own. Cloth Config has no Forge build after 1.21.3, so a Forge player on a newer release has no matching file. We did not run any of these combinations, so we cannot quote the exact error a missing library produces.

What this means if you use mods

Check the dependency list for the exact file you download, then add each required library for the same loader and Minecraft release. How to install Minecraft mods on Java covers the folder. Architectury is client required and server required on Modrinth, so a host needs it too, as client-side versus server-side mods explains. When you update, libraries must move with the mods that need them, as updating Fabric Loader and your mods describes. For the basics, see what a Minecraft mod is.

Sources

  1. 1.Fabric home page (fabricmc.net, read 12 October 2026)
  2. 2.Installing Mods, Fabric Wiki (wiki.fabricmc.net, last modified 25 August 2024)
  3. 3.Dependency Overrides, Fabric Documentation (docs.fabricmc.net, written for 26.2)
  4. 4.Get all of a project's dependencies, Modrinth Documentation (docs.modrinth.com)

Resources mentioned.

Related guides and articles.