Build a Minecraft mod with Fabric
Fabric is a mod loader, not a Paper plugin platform. Check the loader, descriptor, and dependencies, then test the mod against a matching game release.

Where Fabric fits in a Minecraft project
Fabric is a lightweight modding toolchain and loader whose components update frequently. A Fabric mod runs through Fabric Loader, not as a Bukkit or Paper plugin. Depending on its code, it may need the loader and dependencies on both server and client. Some server-only mods do not need to be installed on clients, but do not assume that from the file name. Read the project documentation and fabric.mod.json to identify entrypoints and requirements.
The descriptor defines the mod ID, version, Minecraft and Loader ranges, and required dependencies. It is commonly stored under src/main/resources and should appear at the JAR root after the build. If a mod does not load, confirm the file was not nested under an extra archive directory and that its metadata matches the loader in use. A successful JAR build does not create missing metadata or add support for an unlisted game release.
Gradle and Fabric Loom
Modern Fabric projects commonly use Gradle with the Fabric Loom development plugin. The project may include build.gradle or build.gradle.kts, settings such as settings.gradle, and a Gradle wrapper. Upload the root containing those files and the source. Keep the wrapper while cleaning the project; it pins the Gradle release. Generated .gradle and build folders can usually be removed because they are recreated.
Fabric dependencies can include Loader, Minecraft APIs, and independent libraries. fabric-api is not required by every mod; include it only if the source uses it. Use Loom's appropriate dependency configurations, such as modImplementation for mod-specific libraries, and follow the project's existing structure rather than copying one line from an old tutorial into a different release. Plugin names and versions change with Minecraft; inspect the current build configuration.
Game versions and Java
Fabric compatibility involves at least Minecraft, Fabric Loader, and the APIs or libraries used by the mod. Fabric API may have its own version as well. A recent mod release is not automatically compatible with every loader. Check the depends ranges in the descriptor and the Loader startup log. If the project uses mappings or mixins, compatibility with a game release may be more sensitive than a dependency number alone suggests.
Java is separate from Fabric versioning. The Gradle toolchain or compiler setting determines output bytecode; the JVM running Minecraft must be able to read it. For invalid source release: 21, make sure the compiler supports the requested level. For Unsupported class file major version 65, determine whether Gradle or the game runtime is unable to read Java 21 bytecode. The Java chart and major version 65 guide explain the distinction.
Detect and build a Fabric project
When preparing the archive, keep the build file, descriptor, source, game resources, and access or mapping files the project needs. Do not upload stale build output as if it were source. If the repository has several modules, include the root so Gradle can find its subprojects. Inspect the ZIP after creating it; compressing a folder from inside the project can leave important settings outside the archive.
The build service can prepare a JDK and Gradle, then run the configured task, but it does not test every in-game behavior. After downloading the JAR, check for fabric.mod.json, compiled classes, and resources, then test it with a compatible Minecraft profile and Loader. If the Loader log says dependencies are missing, inspect the descriptor and dependency scopes. If the mod loads but a feature fails, you need a gameplay test or runtime log; rebuilding alone does not repair code logic.
Common issues
A Minecraft compatibility message may mean the depends range does not include the current release. A Loom setup failure may come from an incompatible Gradle or plugin version. NoClassDefFoundError can mean a dependency was not packaged or installed. Do not bundle Loader or Minecraft APIs without explicit instructions; Fabric provides parts of the runtime, and a duplicate copy can conflict.
If your project contains plugin.yml and imports org.bukkit, it is probably a server plugin rather than a Fabric mod. The Paper guide covers that path. If you use Forge or NeoForge, read the Forge guide; those projects use different tools and metadata. For a Java error, use source release 21 or the general troubleshooting guide.
Install the mod on the server and client
A Fabric mod may be server-side only or require the client and server. fabric.mod.json describes entrypoints and dependency ranges, while the project documentation explains how the mod is meant to be played. If it adds items, screens, or data the client needs, install the matching release on the client too. Required dependencies need compatible releases; installing one JAR does not automatically install every Fabric library.
Test in a separate game profile rather than adding the mod to a large existing folder. That makes dependency conflicts easier to isolate. Start the mod by itself with Fabric Loader, add required libraries, then add other mods. Keep the full Loader log; a version-range failure usually appears before the mod's own code begins.