Installing mods on Forge, NeoForge and Fabric
Mods can change Minecraft far more deeply than plugins: new blocks, mobs, dimensions, machines and whole new ways to play. They are also less forgiving. This guide covers installing mods on a Pat Host server, what players need on their side, and how to fix the crashes almost everyone meets at some point.
Pick a mod loader first
Mods do not run on plain Minecraft. They need a mod loader, and each mod is built for a particular one:
- Fabric is light and updates quickly to new Minecraft versions. Many performance and small quality-of-life mods are made for it.
- Forge is the oldest loader and has the largest library of big content mods, especially for older versions such as 1.12.2 and 1.20.1.
- NeoForge split from Forge in 2023. For 1.20.1 many mods work on both, but from 1.20.2 onwards the two are separate, and most large mods for recent versions are made for NeoForge.
A Fabric mod will not load on Forge, and the other way round. Some mods publish a separate file for each loader, so check you have the right one. If you are not sure which loader to use, look at the mods you want most and pick the loader they all support. You can switch your server's software and Minecraft version in the Versions tab.
Paper, Purpur and Spigot servers run plugins, not mods; for those, see installing plugins.
Installing from the Mods tab
Forge, NeoForge and Fabric servers have a Mods tab in the panel. It searches Modrinth and CurseForge, the two big public mod libraries, and only shows files that fit your server's loader and Minecraft version.
- Take a backup in the Backups tab, so you can go back if a mod breaks the world.
- Open the Mods tab and search for the mod.
- Pick a version from the list. Only versions for your loader and Minecraft version are shown.
- Install it. The file goes into the
modsfolder and is checked against the original download. - Install any dependencies the mod needs (see below).
- Restart the server and watch the console until it finishes loading.
Uploading your own mod files
You can also upload mods through the Files tab, into the mods folder. Every jar is compared byte for byte with official downloads. A file that matches an official release, for example from Modrinth or CurseForge, is verified and loads normally.
A file that does not match is marked Unverified and is renamed to end in .jar.disabled at the next start, so it does not load until it has been allowed. To get it checked, press Send request to check (AI): if the check finds it completely safe, it is allowed automatically; otherwise an admin looks at it, and you can open a ticket in our Discord to explain where it came from. A mod you paid for can be accepted; leaked or cracked copies are refused, because they are a common way malware spreads. The plugins guide explains these checks in more detail.
Client mods and server mods
Unlike plugins, many mods must be installed on both sides. A useful way to think about it:
- Content mods add blocks, items, mobs or dimensions. Every player needs the same mod, in the same version, or they cannot join.
- Server-only mods work entirely on the server: performance mods, world pre-generators, backup tools and permission mods. Players do not need them.
- Client-only mods change only what one player sees: shaders, minimaps, zoom, menu and graphics mods such as Sodium or Iris. They do not belong on a server. At best they do nothing there; at worst the server crashes on start-up. On Forge and NeoForge that crash often mentions an "invalid dist".
Mod pages on Modrinth say whether a mod is needed on the client, the server, or both. When in doubt, read the description.
Dependencies
Many mods are built on shared libraries and will not load without them. Common ones are:
- Fabric API, needed by most Fabric mods;
- Architectury API and Cloth Config, used by mods that support several loaders;
- GeckoLib, used for animated mobs and items;
- Kotlin for Forge or Fabric Language Kotlin, for mods written in Kotlin.
The mod's page lists what it requires. If you miss one, the server does not start and the console says which mod needs what, often with the version it wants. Dependencies need to match your loader and Minecraft version too.
Getting versions to match
Most mod problems are version problems. Three things have to line up:
- The Minecraft version. It must match exactly. A mod for 1.20.1 will usually not load on 1.20.4, even though the numbers look close.
- The loader version. Some mods need a recent loader build. The error message says which one.
- The mod versions on server and client. If your players have an older or newer copy of a mod than the server, they are refused at login with a list of mismatched mods.
Newer Minecraft versions also need newer Java: 1.20.5 and later need Java 21. If the console talks about an unsupported class file version, the server is on an older Java than the mod expects. Ask in a ticket if you cannot see how to fix it.
Modpacks
A modpack is a ready-made set of mods and configuration files. To run one:
- On the pack's CurseForge or Modrinth page, find its server files or server pack, if it has one. These leave out client-only mods for you.
- Set your server to the loader and Minecraft version the pack uses, in the Versions tab.
- Upload the pack's
modsandconfigfolders. For large packs, an SFTP client is quicker than the browser; the connection details are in the Settings tab. - Start the server and give it time. The first start of a big pack is slow.
- Make sure everyone plays the same version of the pack.
Large packs need a lot of memory. Check what the pack recommends, and read memory, swap and startup flags before choosing a server size. A modded server also takes longer to wake from sleep; see server sleep and wake-up.
Common crash causes
- A missing dependency. The console names it. Install it and restart.
- A client-only mod on the server. Remove shaders, minimaps and graphics mods from the
modsfolder. - The wrong Minecraft version or loader. Check each new mod's file is for your exact version and loader.
- Two copies of one mod. Updating by uploading a new file without deleting the old one leaves both. Keep only the newest.
- Two mods that clash. Remove the most recently added mod and try again. Adding mods a few at a time makes this easy to find.
- Not enough memory. The server stops during start-up or when players explore; see the memory guide.
- A disabled file. If a mod seems to be missing, check whether it was renamed to
.jar.disabledbecause it is unverified.
When a crash is not obvious, look in the crash-reports folder and in logs/latest.log. The first error near the top is usually the real cause; the lines after it are often only side effects.
