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
Mod .jar files
/mods folder
Fabric API
Matching MC version
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.
More guides on this site
Guides that go with this one
How to Install a Fabric Server (1.21.4)
Set up a Fabric server step by step: download the launcher, drop in Fabric API, add Lithium and...
How to Fix Mods Not Loading in Minecraft
Fix Minecraft mods not loading or not appearing in-game. Covers mod folder placement, version...
How to Install a Forge Server
Run the Forge installer with --installServer, accept the EULA, and boot a modded Minecraft server. Real...
How to Install Paper on a Minecraft Server
Swap your vanilla server jar for paper-*.jar in five steps. Faster TPS, fewer crashes, and full plugin...
How to Install Plugins on a Minecraft Server
Drop a .jar into the /plugins folder, restart the server, and watch the [PluginName] Enabled line...
How to Survive the First Night in Minecraft
Dusk to dawn in one move: punch wood, throw up a 1x1 dirt-and-log box, drop a torch and a bed. Stop...
Hosting →
Managed Hosting
Skip the setup: a managed server online in minutes.
Database →
Command Reference
Syntax, arguments and examples for every command.
Database →
Item Database
Every item with its stats, IDs, recipes and uses.
Guides →
More Server & Admin guides
Run a server: setup, hosting, permissions, worlds and crossplay.