Setting Up A Modded Java Minecraft Server

Preamble

Minecraft is a bit notorious for being difficult to mod, given there’s oodles of different modloaders and versions to work with, there’s edge cases galore.
If you’re new to the Minecraft modding scene and you’d like to know more about each modding platform and how they differ, check out this post here.

0. Create a new Minecraft Java Instance in AMP

Easy as that, press the Create Instance button, then select Minecraft Java Edition from the drop-down. Feel free to use an existing instance as well if you already sorta know what you’re doing (sometimes things are easier with a blank slate).

1. CurseForge

Just as a general note, do not try and upload the client manifest zip or the “server pack” from the CurseForge launcher, as that is seemingly busted.

1.1. Finding and Importing the Server Pack Zip into AMP

Thank @Greelan for this bit, I forgot you could do it this way.

Step 1: Go to the CurseForge page of your choice. For the purposes of this guide, we’ll be looking at ATM10 since it covers a few weird edge cases.

Step 2: Browse to the Files tab and click on the version of the pack you want to run

Step 3: Scroll down a little and click on the Additional Files section below the version info

Step 4: Click the ... next to the file and press Download File

Step 5: Cancel the download, then right-click and copy the try again link

Step 6: Manage the Minecraft instance and click on the File Manager tab on the left

Step 7: Right click an empty space in the File Manager and press Download file here

Step 8: Enter the URL into the field and press Ok

Step 9: Right click the file named download and rename it to server.zip

1.2. Extracting the Zip

Sounds easy doesn’t it? Sometimes it is, and other times things are extra complicated for seemingly no reason. so much fun

Step 1: Right click the server.zip and press Extract Here

Step 2: Assess the situation

Normally in the / directory you should now have a pile of new files named mods, config, libraries etc. And if you click on the mods folder you should see a bunch of .jar files (those are your mods).
If you see those files you can skip to 1.4. Cleanup.

If you only see one new folder (like in this example), continue on to Step 3

Step 3: Right click the new folder and press Create Archive

Counter intuitive, I know, but bear with me.

Step 4: Right click your new zip and press Extract Here

Things are in the right place now! You should see all of the folder’s files barfed into the / directory.

1.3. Double Check

Check that you now have some new config and mods, and some other folders in the server’s directory.

If not, review the steps for extracting the zip to make sure the files aren’t in a nested folder, otherwise the pack might have one of those stupid start scripts that downloads the mods.
Commonly those are labled as a startserver.sh/.bat or installserver.sh/.bat.

If that is the case:

  1. Download the modded files to a folder on your PC
  2. Run the installer in that folder (double click the .bat (BATCH) file if you’re on Windows)
  3. Select all the files inside the folder
  4. Zip the files
  5. Upload the zip to AMP and run through the previous section again

1.4. Cleanup

You can now delete any .zip you used while setting up the server, and delete the extra ServerFiles folder if you have one of those as well.

Now you’re ready to move onto 3. Configuring the Server to finish setting up the server.

2. Feed The Beast

2.1. Installation

Currently there’s a slight bug in AMP, requiring you to delete all of the instance’s files before running the modpack installer.

When following 3. Configuring the Server you will need to change the Server Type setting to the required modloader. The server won’t start properly otherwise.

2.1.1. x86 Systems

Step 1: Delete the server.properties file and the plugins folder, then right click the Trash folder and empty it.

Step 2: Set the Server Type setting to Feed The Beast (New Source)

Found under Configuration -> Minecraft -> Server and Startup

Step 3: Select the modpack you want using the FTB Modpack setting

Step 4: Press Download/Update

Step 5: Continue onto 3. Configuring the Server to finish setting up the server

2.1.2. ARM Systems

If you’re running Linux and you’re familiar with the terminal, upload the ARM installer to AMP using AMP’s File Manager and run it as the amp Linux user.
First run sudo su -l amp, then you’ll find the file under /home/amp/.ampdata/instances/{TheInstnaceName}/Minecraft

Step 1: Download the server installer from the FTB site

Step 2: Run the installer on your PC in a new folder

Step 3: Select the files inside the folder and zip them

Step 4: Extract the .zip using AMP’s File Manager

*For a more in-depth rundown on working with the zip, see 1.2. Extracting the Zip

Step 5: Continue onto 3. Configuring the Server to finish setting up the server

3. Configuring the Server

In this section we’ll be going over how you can find important modloader and Java information across different files and enter that info into AMP’s web interface.

3.1. AMP’s Settings

The following settings are all in Configuration -> Minecraft
Here we go with some definitions:

  • Arg -Xmx:
    → Goes under Java and Memory -> Memory Limit (MB) in terms of megabytes (1 GB → 1024 MB)
    Note: Allocating more than 16GB of RAM can have a negative performance impact on the CPU due to larger Garbage Collection (GC) spikes.

  • Arg -Xms:
    → Goes under Java and Memory -> Memory pre-allocation (MB) in terms of megabytes (1 GB → 1024 MB)
    Note: You can leave this as 256 MB unless directed otherwise by the modpack creator or the author of the startup arguments you’re using.

  • Any argument prefixed with -D or -XX::
    Java and Memory -> Additional java options separated by spaces
    Note: Do not add these under Server and Startup -> Additional server arguments

  • Arg -jar jarname.jar:
    → Select the Jar under Server and Startup -> Server Jar
    Note: Forge 1.17.1-1.20.2 and NeoForge 1.20.1-present do not have conventional startup Jars. In such cases, select the Server Type (modloader) and version the modpack needs and leave the Server Jar as Autoselect.

3.2. Understanding Start Scripts

Some common filenames for server start scrips are run.sh, start.sh, and startserver.sh. You’ll also see these files with the .bat file extension (you may have all, some, or none of these files, but the core ideas still apply).

3.2.1. Breaking Down run.sh

Open the run.sh file in AMP’s file manager.

  1. This file contains a list of Additional java options that you can copy into AMP’s settings
  2. Here you’ll see the Forge/NeoForge version the modpack is using

Here’s another example using a different startup command

  1. Java and Memory -> Memory Limit (MB)4096
  2. Java and Memory -> Memory pre-allocation (MB)2048
  3. Java and Memory -> Additional java options-Dfile.encoding=UTF8 -Dfml.readTimeout=180
  4. Server and Startup -> Server Jarforge-1.20.4-49.2.0-shim.jar
  5. 49.2.0 would be the Forge version the modpack is using

3.2.2. Breaking Down startserver.sh

Please note, some of these alternate startup scripts may differ, so this is a general rundown using the one from the CurseForge example.
Open the startserver.sh file in AMP’s file manager.

At the top of the script you’ll see a line with:
NEOFORGE_VERSION=21.1.143, FORGE_VERSION=xxxx or FABRIC_VERSION=xxxx
This will be the Forge/NeoForge version the modpack is using

  1. This file contains a list of Additional java options that you can copy into AMP’s settings

3.2.3. GTNH

I don’t have a screenshot handy at the moment, but GTNH differs slightly from the other examples.

Enter the following into your settings:

  1. Server and Startup -> Server TypeForge
  2. Server and Startup -> Forge Version → The Forge version the pack currently uses
  3. Server and Startup -> Server Jarlwjg13ify-forgePatches.jar
  4. Java and Memory -> Java versionJava 17 (or Java 21 if specified)
  5. Java and Memory -> Additional java options-Dfml.readTimeout=180 @java9args.txt

3.3. Modloader Information

You should see the modpack’s modloader and version in your launcher, or after loading up the modpack you’ll see the version info in the bottom left of the Minecraft main menu.

All of these settings are under: Configuration -> Minecraft -> Server and Startup

  • For Server Type you’ll want to select Fabric, Forge, or NeoForge depending on the information shown.

  • Now you’ll want to select the correct version of the modloader in AMP’s settings.

  • Press Download/Update

  • If you’re using Forge/NeoForge set the Server Jar to Autoselect

3.4. Java Settings

All of these settings are under: Configuration -> Minecraft -> Java and Memory

Most often the modpack’s authors will have a recommended amount of RAM to use for the server. If not, anywhere from 6-12GB should do.
This setting is called Memory Limit (MB)

Some modpacks also have suggested Java arguments for you to use while running the server.
You can add these under Additional java options
Make sure to exclude Xmx, Xms, jar, and nogui since AMP’s settings already handle these.

Some versions of Minecraft require different Java runtimes in order to start up and run correctly, so here’s a quick rundown (see a more in depth explanation below).
This setting is called Java Version

  • Minecraft 1.7.10-1.15.2 use Java 8
  • Minecraft 1.16.5 use either Java 8 or Java 11 depending on the mods you’re running
  • Minecraft 1.17.1-1.20.4 use Java 17
  • Minecraft 1.20.5-1.21.5 use Java 21

4. Additional Java Information

Minecraft Version Server Type Java Version Class file version Extra Notes
<= 1.4.7 any Java 7 Class file version 51 Later versions work, mileage may vary
1.6.4 any Java 7, 8 Class file version 52 Later versions work, mileage may vary
1.7 - 1.15.2 any Java 8 Class file version 52 Later versions work, mileage may vary
1.16 - 1.16.5 any Java 8, 11 Class file version 52 or 55 Later versions work, mileage may vary
1.16.x Forge Java 8, 11 Class file version 52 or 55 Depends on the mods you’re running
1.16.5 Paper Java 16 Class file version 60 Can be disabled via a startup arg
1.17 - 1.17.1 any Java 16, 17 Class file version 60 or 61 Later versions work, mileage may vary
1.18 - 1.20.4 any Java 17 Class file version 61 Later versions work, mileage may vary
1.20.5 - 1.21.11 any Java 21 Class file version 65 Later versions work, mileage may vary
26.1 any Java 25 Class file version 69 Later versions work, mileage may vary

A table comparing Java runtime versions to class versions: Java version history - Wikipedia

See this post here regarding installing more Java runtimes: AMP Dependencies - Java
Please Note:
a. You’ll need to stop/start the MC instance via the main panel for the Java versions to refresh.
b. You may need to reboot if stopping/starting the instance doesn’t work

On Linux:
Run getamp installJava as root to download Java 8, 11, 17, 21, and 25

On Windows make sure:
a. You select the default install location
b. You add Java to the PATH variable

8 Likes
Making a modded minecraft world with friends
Minecraft Neoforge Server Modpack Zip-File
Startup Issue with Minecraft - Failed to Start minecraft server
Server constantly "starting" ATM10 Minecraft
Game port 25565 not listening, unable to start Minecraft server
I selected FTB Presents Direwolf20 1.21 but AMP installs Minecraft 1.21.5 instead of 1.20.1. I tried manual .jar setup, reinstalling, and creating new instances but the issue remains
Startup Issue with Minecraft - server wont boot
FTB Modpack Cannot Install
Startup Issue with Minecraft - it keeps saying needs luna
Customization with Minecraft - Trying to add a modpack but having issues
Customization with Minecraft - universal.jar files do not work
Startup Issue with Minecraft - Unable to start my minecraft world
Connectivity Problem with Minecraft - Not connecting to the server
Update Failure with Minecraft - Latest neoforge does not install correctly
Startup Issue with Minecraft - Modded Minecraft server stalls/won't start
Customization with Application Deployment - update .jar please
Customization with Minecraft - can get a modpack to work
Customization with Minecraft - Server not starting after adding mods
Connectivity Problem with Minecraft - Minecraft Skyfactory 4
Startup Issue with Minecraft - My vanilla server crashes
Startup Issue with Minecraft - Modpack intsall not working
Connectivity Problem with Minecraft - Cannot connect to the Server
Startup Issue with Minecraft - Having trouble getting a Forge Minecraft server to start
Minecraft - My server will not work at all
Shell script won't run
New to doing a modded server
Trying to import and existing prominance 2 server but unable to do so
Minecraft Modded Server using ps1 File
Cannot start FTB Server, missing minecraft_server.jar
Startup Issue with Minecraft - ATM10 not starting
Minecraft - i cant do this i cant install modpacks
Startup Issue with Minecraft - trying to start server but getting error Minecraft/minecraft_server.jar is missing
Customization with Minecraft - I cant figure out how to install minecraft java mods
Startup Issue with Minecraft - FTB StoneBlock 4 (1.0.7) wont start
Customization with Minecraft - downloading mods
Customization with Minecraft - Wont load/ attempt to run downloaded content
Startup Issue with Minecraft - Minecraft FTB Ultimate doesn't start
Configuration with Minecraft - Modded Minecraft setup - Forge
Customization with Minecraft - modding issues
Startup Issue with Minecraft - unable to start the server
Startup Issue with Minecraft - Server crashes on startup
Startup Issue with Minecraft - its crashing
Startup Issue with Minecraft Server - Server will not start up
Customization with Application Deployment - I can not use a modpack
Customization with Minecraft - I dont know how to put a modpack on
Customization with Application Deployment - Cannot make the mods work with the server
Startup Issue with Minecraft - Issue on server startup: potentially mods compatability
Customization with Minecraft - adding modpack
Startup Issue with Minecraft - Can't enter into the server
Startup Issue with Minecraft - Server not starting after adding mods
Customization with Minecraft - server wont launch with forge
Connectivity Problem with Application Deployment - Connection Lost Internal Server Error
Startup Issue with Minecraft - Hit start and it said unable to run
Minecraft FTB Sky Adventures Quest book disapearence
Startup Issue with Minecraft - GTNH Server unable to start
Startup Issue with Minecraft - Modpack Install
Customization with Minecraft - How do I upload a previous world with a modpack
Currently trying to run a GregTech New Horizons 2.8.4 server and installing java 25
Customization with Minecraft - i want to install the Modpack "ATM10 to the Sky"
Customization with Minecraft - i don't know where i can upload mods and world
Update Failure with Minecraft - it does not want to install the version 1.20.1 forge
Customization with Minecraft - Installation of Curseforge Modpack
Connectivity Problem with Minecraft - the ip dosnt work
Startup Issue with Minecraft - Scan for new JARs does nothing
Customization with Minecraft - Trying to run BIGCHADGUYS plus modpack server
Customization with Minecraft - modded minecraft with a custom server type
Configuration with Minecraft - Forge not works
Configuration with Minecraft - Version of minecarft
Startup Issue with Minecraft - Modpack will not open with the Server
Startup Issue with Minecraft - el server inicia y se apaga
Startup Issue with Minecraft - minecraft server was giving internal exception error
Startup Issue with Minecraft - Attempting to startup but never gets there
Application Deployment - Hello Hostinger Support,
Startup Issue with Minecraft - Forge Minecraft Server uses .jar instead of .bat/.sh file
Customization with Minecraft - cant add mods to minecraft server
Customization with Minecraft - How to download forge and install mods on the server?
Connectivity Problem with Minecraft - cant connect to server, assist?
Startup Issue with Minecraft - unable to run server after adding mods into mod directory
Update Failure with Minecraft - server can't start due to minecraft_server.jar missing
Startup Issue with Minecraft - The server doesn't want to start with forge 14.23.5.2860
Minecraft - I am unsure what to do
Startup Issue with Minecraft - Unable to startup modded server for prominence2 hasturian era
Customization with Minecraft - Mods not working correctly
Connectivity Problem with Minecraft - Can't connect to NeoForge server
Update Failure with Minecraft - Modpack/Mods not loading
Startup Issue with Minecraft - unable to find server jar for oceanblock 2 server
Startup Issue with Minecraft - Keeps trying to install the modpack when I hit start
Customization with Minecraft - How do i create a modded server
Startup Issue with Minecraft - Can't start the server with Tensura mod installed
Startup Issue with Minecraft - added mods and now its not running
Startup Issue with Minecraft - Server missing file, prevents server from starting
Startup Issue with Minecraft - Wont start up at all
Customization with Minecraft - Modded Minecraft Server Won't Start
Customization with Minecraft - Need to upload a Curseforge Modpack but Can't
Startup Issue with Minecraft - ATM 10
Customization with Application Deployment - How to mod or add forge to a server
Startup Issue with Minecraft - New modpack unable to run
Startup Issue with Minecraft - Error when starting instance
Minecraft - I want to migrate my existing ATM10 server so AMP
Startup Issue with Minecraft - Stoneblock 4
Connectivity Problem with Minecraft - Unable to Connect to Forge Server
Connectivity Problem with Minecraft - cant connect
Startup Issue with Minecraft - Forge keeps trying to update
Customization with Minecraft - Unable to run any modpack or modloader despite installation
Startup Issue with Minecraft - mods installed, not starting
Minecraft - I am unable to open my server from the launcher
Startup Issue with Minecraft - Minecraft Modpack GregTech New Horizons not starting
Startup Issue with Minecraft - Unable to load Datapacks
Customization with Minecraft - installing modpack
Customization with Minecraft - Having issues installing a mod pack
Update Failure with Minecraft - FTB Skys 2 Server
Startup Issue with Minecraft - FTB Skies 2 doesn't use the correct server config
Customization with Minecraft - cant load modpack
Customization with Application Deployment - I can't install modpacks on my Minecraft server.
Startup Issue with Minecraft - Crashing immediately
Startup Issue with Minecraft - Server wont start Create stranded at Sea
Update Failure with Minecraft - created instance, moved mod folders, change neoforge, start failure
Customization with Minecraft - trouble modding the server
Connectivity Problem with Minecraft - unable to connect to server
Startup Issue with Minecraft - Infinite loading while starting GTNH server (logs included)
Startup Issue with Minecraft - Server loops while trying to start, occurs during world gen
Resolved myself - Connectivity Problem with Minecraft Sevtech Ages - Cannot connect to server
Connectivity Problem with Minecraft - will not let me join the server
Customization with Minecraft - Server will not start with forge, only vanillia
Customization with Minecraft - mods and client clash
Customization with Minecraft - Cant connect to the server, modpack doesnt work
Configuration with Minecraft - FTB Evolutions Modpack
Startup Issue with Minecraft - FTB Skies 2 doesn't use the correct server config
Startup Issue with Minecraft - My Minecraft server won’t open
Configuration with Minecraft - All the mods 9 not recognizing mod files
Customization with Minecraft - Mods cannot be installed
FTB Evolution Server, showing the wrong version, even after update
Configuration with Minecraft - unable to set mods up
Customization with Minecraft - How do I add a modpack to AMP servers?
How to setup second hdd as backup and how to setup a custom game temp
Minecraft FTB Academy 1.16 install error
Unable to start Forge server and send ticket
Startup Issue with Minecraft - Can not figure out how to install any mods
Minecraft serverssssss
Startup Issue with Minecraft - it says that is is unable to start server
Startup Issue with Minecraft - Server wont start at all stuck on java error minecraft 1.16.5 forge 36.2.34
Minecraft - FTB Direwolf20 1.21 NeoForge does not start
Configuration with Minecraft - Mods not going installing
Startup Issue with Minecraft - Unable to start instance Modded Minecraft
Customization with Minecraft - JEI not working
Minecraft - couldn't connect to server
Update Failure with Minecraft - Trying to update ATM 10 to the latest version

Awesome tutorial man! We needed a Knowledge Base for setting up modded mc servers. Thank you so much for your time! Great Job!

4 Likes

If I have a mod pack that isn’t a original curseforge modpack but my mod pack thart i have what do i do?

It’s pretty much the same idea, you just upload a zip of your mod files instead of grabbing a server pack zip.

I’ve tried doing this with my own custom pack and it doesn’t work.

ngl this is what the community needed, you basically covered what i was previously struggling with which is goated.

Doesn’t work with custom packs, you’d need to upload the mods the usual way

1 Like

Thank you for the walkthrough.

Everytime I try I just get a overrides folder and nothing exports.

1 Like

Did you ever find the solution?

I found the solution. I was trying to run the new direwolf 20 on minecraft 1.21.1. You need to install the mods with a bat file that is in one of the files.