To get a mods folder for a Minecraft server, you must install a modded server loader such as Forge, Fabric, or Quilt instead of using the standard vanilla server software. The mods folder is automatically generated the first time you run the modded server jar file and accept the End User License Agreement. If you are using a vanilla server, this folder will never appear because vanilla software cannot load external mod files.

Install a Mod Loader to Generate the Folder

The vanilla server software provided by Mojang does not support mods and therefore does not include a mods directory. You must replace the vanilla server engine with a loader that can read .jar mod files. Labels and menu options may differ slightly depending on the version of the loader you use.

  1. Download the installer for your chosen mod loader, such as Forge or Fabric, from the official project website.
  2. Run the installer file on your computer and select the Install Server option from the menu.
  3. Create a new, empty folder on your hard drive specifically for the server files to prevent them from mixing with other data.
  4. Set the installation path in the installer to point to that empty folder and click OK.
  5. Locate the server jar file in the folder and run it using a batch file or the command line.
  6. Open the eula.txt file that appears in the folder, change the line eula=false to eula=true, and save the file.
  7. Restart the server jar file and wait for the console to finish the initial boot sequence.
  8. Close the server console once the world has loaded; the mods folder will now be visible in the main server directory.

Match Your Server Loader to Your Client

A common point of failure is the mismatch between the server loader and the player's game loader. If the server uses Forge, every player connecting to that server must also have Forge installed on their own computer. If the server uses Fabric, players must use Fabric. You cannot mix these loaders on a single server instance.

Symptom Cause Fix
Mods folder is missing after run EULA not accepted in eula.txt Change eula=false to eula=true and restart
Server crashes on startup Incompatible mod versions Remove recently added mods one by one to find the conflict
Players cannot connect Client loader differs from server Ensure player is using the same loader (e.g., Fabric) as the server
Mod items not appearing Mod placed in client folder only Copy the .jar file into the server's mods folder

If you are unsure which loader to choose, check the requirements of the specific mods you want to use. Most mods are developed for either Forge or Fabric, and they are rarely compatible with both. You can check this on the mod's download page under the supported loaders section.

Populate the Mods Folder with Compatible Files

Once the folder exists, you can begin adding mods. However, you must distinguish between server-side mods and client-side mods. Server-side mods affect the game logic, world generation, and mechanics for everyone. Client-side mods only affect the individual player's experience, such as mini-maps or performance enhancers.

To add a mod, download the .jar file and move it directly into the mods folder. Do not unzip or extract the .jar files, as the server loader reads the compressed archive directly. If you add a mod that requires a library or a core mod to function, you must also place that library file in the mods folder, or the server will fail to boot.

For a worked example, imagine you want to install a basic mod pack consisting of 3 mods: a map mod, a performance mod, and a new ore mod. The map mod is client-side only, the performance mod is both, and the ore mod is server-side. You would place the performance mod and the ore mod in the server's mods folder. You would leave the map mod out of the server folder, as placing client-only mods on a server often causes the server to crash during the startup sequence because it tries to load graphical assets that do not exist on a headless server.

Handling Mod Dependencies

Many mods rely on other mods to work. For example, if you install a mod that adds complex machinery, it might require a separate API mod. If you forget the API, the server console will print a long error message during startup, typically stating that a specific class or mod is missing. Read the console output carefully; it will usually name the exact missing mod and the version required. Download that specific dependency and place it in the mods folder before restarting.

Manage Server Resources for Modded Gameplay

Modded servers require significantly more RAM than vanilla servers. While a vanilla server might run comfortably on 2GB of RAM, a modded server with 50 to 100 mods typically requires at least 4GB to 8GB of RAM to prevent lag and crashes. If you simply double-click the jar file, the server will use the default Java memory allocation, which is often too low for mods.

To allocate more memory, you must use a startup script. Create a text file in your server folder and rename it to start.bat (on Windows) or start.sh (on Linux). Inside this file, you will use a Java command to specify the memory. For example, to allocate 6GB of RAM, you would use the flags -Xms6G and -Xmx6G. The Xms flag sets the initial memory allocation, and Xmx sets the maximum limit. Setting these to the same value prevents the server from lagging while it requests more memory from the system during gameplay.

If you notice the server is stuttering or the console reports "Can't keep up! Is the server overloaded?", check your RAM usage in the system monitor. If the memory usage is consistently at 90% or higher, increase the Xmx value in your startup script by 1GB increments until the warnings stop. Be careful not to allocate all of your system's physical RAM, as the operating system needs about 2GB to 4GB to function properly; leaving too little for the OS can cause the entire computer to freeze.

Configure Mod Settings and Player Access

After the server has run successfully with mods, you will notice new folders and files appearing alongside the mods folder. These are configuration files, usually found in a folder named config. These files allow you to change how mods behave without changing the mod code itself. You can open these .toml or .json files with any basic text editor to adjust settings such as ore spawn rates, machine speeds, or disabled items.

When you change a configuration file, you must restart the server for the changes to take effect. Some mods allow you to reload configs using a command in the game console, but a full restart is the most reliable method to ensure every setting is applied. Always back up your config folder before making major changes, as a single typo in a configuration file can prevent the server from starting.

Finally, ensure your players have the exact same set of mods installed on their local machines. The most efficient way to do this is to zip your server's mods folder (excluding the client-only mods) and send it to your players. They can then drop these files into their own local %appdata%/.minecraft/mods folder. This ensures that the mod versions match perfectly, preventing "mismatched mod channel" errors when players attempt to join the server.

Decision List for Server Setup

  • If you want high performance and lightweight mods, then use Fabric.
  • If you want large, complex overhaul mods and deep content, then use Forge.
  • If the server crashes immediately after adding a mod, then check the logs folder for the crash report.
  • If you are hosting on a professional hosting service, then use the FTP manager or File Manager in the control panel to upload files to the mods folder.
  • If you cannot find the mods folder after installing the loader, then check that you are running the modded jar and not the vanilla one.