Server Setup
How to Add Mods to a Minecraft Server
Modding a server is three rules: one loader, jars in the mods folder, every client matched. Get those right and the boot log prints Loading N mods. Get them wrong and it crashes on the offending jar.
How mod loading works
- 1Pick one loaderChoose Forge OR Fabric for the whole server. Run the matching server jar once so it builds the config and creates an empty mods folder.
- 2Get server-side jarsDownload mods built for your exact MC version and loader from Modrinth or CurseForge. On Fabric, always add Fabric API as a dependency.
- 3Drop jars in modsStop the server, copy each .jar into the server's /mods folder. No nesting, no renaming, keep the .jar extension intact.
- 4Start and read the logBoot the server and watch the console for "Loading N mods". A missing-dependency or version-mismatch crash names the offending jar.
- 5Match every clientPlayers need the same loader, same MC version, and the same client-required mods. Server-only optimizers (Lithium, FerriteCore) don't need a client copy.
What you need
Quick answers
?
Forge or Fabric?
Both can't run at once. Fabric is lighter and faster to update; Forge has the deepest mod catalog. Match whatever your chosen mods are built for.
?
Where is the mods folder?
In the server's root directory, next to server.jar and world. It appears automatically the first time you launch the modded server jar.
?
Do I need Fabric API?
Almost always on Fabric. Most mods depend on it. If the log says a mod "requires fabric" then drop fabric-api.jar into the same mods folder.
?
Why does it crash on boot?
Usually a version mismatch (mod built for a different MC version) or a missing dependency. The crash report names the mod and what it expects.
?
Do clients need the same mods?
Yes for content and gameplay mods. Server-side-only mods (Lithium, FerriteCore, Spark) run fine without any client install.
?
Can I use plugins too?
Not on vanilla Forge/Fabric. For Bukkit-style plugins use Paper, or run a hybrid like Mohist if you genuinely need both.