How to add mods to a Minecraft server, step by step
How to add mods to a running Minecraft server. Check its loader, match versions with your friends, leave out client-only mods, fill the mods folder and restart.
· 7 min readThe short answer
To add mods to a Minecraft server, make sure it runs the same mod loader and Minecraft version as your friends, such as NeoForge for 1.21.1. Back up the world, stop the server, copy the mod .jar files into its mods folder without any client-only mods, then start it again. Everyone needs the same mods and versions.
Your server is up and your friends can join. Now you want it running the same mods they have. The good news is that adding them mostly means copying files into one folder. The catch is that the server has to be the right kind first, and the mods have to match on both sides.
Before you start: back up the world
Copy the world folder somewhere safe, or take a backup in your host's control panel. NeoForge's own guide says to back up your world before updating mods, and adding them deserves the same care. It's usually safe, but a backup is what saves you if it isn't.
Step 1: Check your server's loader
Mods need a mod loader, the program that loads them into the game. Each mod file is built for a specific loader, and a NeoForge server won't load a Fabric or Forge file. A plain Minecraft server has no loader at all, so it ignores mods.
On a rented server, the control panel normally shows the server type. On your own server, look in the server folder:
| What you see | What you have |
|---|---|
libraries/net/neoforged/neoforge | NeoForge. The next folder down is named after its version. |
A plugins folder | Probably Paper or Spigot. These run plugins, which aren't the same as mods. |
No mods or plugins folder | Probably plain Minecraft, with no loader. |
A mods folder but no NeoForge folder | Check the first lines of logs/latest.log, or ask your host. |
Paper's documentation is clear that Forge and Fabric mods won't run on it, so a Paper server can't take your friends' mods. If your server has the wrong loader, or none, you need to install the right one. Our guide to making a modded Minecraft server has the NeoForge steps. Bring your world folder across afterwards, and on a rented server, look for a server type or version setting in the control panel.
Step 2: Match the versions
The server and your friends need the same three things:
- The same Minecraft version. Mods are built for specific versions, so a 1.21.1 mod needs a 1.21.1 server.
- The same loader. A NeoForge server needs NeoForge versions of each mod.
- The same loader version, to be safe. NeoForge's numbers follow Minecraft's: 21.1.x means Minecraft 1.21.1. Your launcher's profile settings show which one your friends use.
Step 3: Get the mods from the right place
Playing a modpack? Don't collect the mods by hand. Look for the pack's server pack first, in the exact version your friends play. It's already set up for a server, and our server guide shows where to find one.
Using your own list of mods? The surest way to match is to use the same files your friends have. Open the pack's folder from the launcher (usually an Open folder button) and copy the .jar files from its mods folder. Leave them as .jar files. Don't unzip them.
If you download mods yourself, choose the version made for your exact Minecraft version and loader. NeoForge recommends getting mods from CurseForge or Modrinth, as mod files should only come from sources you trust.
Many mods need another mod to work, often a shared library. Copying your friends' whole mods folder brings those along. If you're picking mods one at a time, check each mod's page for what it requires.
Step 4: Leave out client-only mods
Client-only mods change what a player sees or hears, so they only make sense in a player's game. Dedicated servers don't include the game's client code, so these mods can crash a server while it starts.
- Sodium and Iris are clear examples. Modrinth lists both as client-only, and says neither is supported on a server.
- Modrinth's mod pages show whether a mod belongs on the client, the server or both.
- Labels aren't always right. If a mod adds blocks, items or mobs, it goes on the server and in every player's game.
- Some mods work on one side alone. spark, for example, can run on just the server. Those mods don't have to match.
Your friends keep their client-only mods. They only stay out of the server.
Step 5: Stop the server, add the mods, start it again
- Stop the server. Type
stopin the server console, or run/stopin-game if you have full operator permissions. This saves the world, then shuts the server down. On a rented server, use the stop button in the control panel. - Copy the
.jarfiles into themodsfolder in the main server folder, next toworld. On a rented server, upload them with the host's file manager. If there's nomodsfolder on a new NeoForge server, it appears after the first start. - Copy the
configfolder too, if your friends changed any mod settings. - Start the server. Use
run.bator./run.sh, or your usual start button. Modded servers can take a while. It's ready when the console saysDone.
You have to do a full restart. The /reload command only reloads data packs, not mods.
If the server won't start
Open logs/latest.log in the server folder and read from the bottom up, or look for a new file in crash-reports. These NeoForge messages are the common ones:
| Message | What to do |
|---|---|
is a Fabric mod and cannot be loaded | You have the Fabric version. Swap it for the NeoForge one. |
is for Minecraft Forge or an older version of NeoForge | You have the wrong version of the mod. Get the NeoForge build for your Minecraft version. |
Mod X requires Y | Add mod Y, or the version the message asks for. |
incompatible | Two mods can't run together. Remove one, or use different versions. |
If the crash names a client-only mod, take it off the server. If you can't tell which mod is to blame, take out half, try again, and keep halving. Our guide to finding the mod causing a crash goes step by step.
Join and check
Once the server is up, have a friend join. If everything matches, they'll load straight in.
If they get kicked to a screen listing missing mods or versions that don't match, a mod on one side differs from the other. Our guide to the mismatched mod channel list shows how to find the difference.
Keep everyone in step
Matching once isn't enough. Turn off automatic mod updates in everyone's launcher, and change the server and everyone's game at the same time. When a change could affect the world, read how to update a modpack without losing your world first. More mods also need more memory, so check how much RAM your server needs.
Or start with a pack that's been tested on both sides
Matching a server to your friends by hand is fiddly. Packspire builds NeoForge 1.21.1 packs and tests each one on a real server and a real game client, measuring memory as it goes, so the pack's page tells you what to set in your launcher and how much a server needs.
Plan your pack with Packspire, or see how to play modded Minecraft with friends for the other ways to play together.
Frequently asked questions
Where do I put mods on a Minecraft server?
In the mods folder inside the main server folder, next to the world folder. Use the original .jar files, and restart the server so it loads them.
Can I add mods to a vanilla Minecraft server?
Not directly. A vanilla server has no mod loader, so you need to install one first, such as NeoForge. Back up the world before you do.
Can I add mods to a Paper server?
No. Paper runs plugins, and its documentation says Forge and Fabric mods won't run on it. To use mods, you need a server running a mod loader.
Do I have to restart the server after adding mods?
Yes. Stop it and start it again. /reload won't do it, because it only reloads data packs.
Do my friends need the same mods as the server?
Yes, for every mod that adds content, and in the same versions. Client-only mods can stay in their games, and a few server-side mods, like spark, don't need to be on their side.
Sources
- NeoForge user guide: installing a server, for the
modsfolder, run scripts, trusted mod sources and backups - NeoForge docs: sides, on client code missing from dedicated servers
- NeoForge docs: versioning, for how NeoForge versions map to Minecraft versions
- FancyModLoader's English text, for the wording of mod loading errors
- Paper: adding plugins, for the
pluginsfolder and why mods won't run on Paper - Modrinth API documentation, for how mods are marked as client-only or server-side
- Minecraft Wiki: /stop and /reload, for what each command does
