Introduction
I have seen plenty of tutorials circulating online on how to install mods on a Minecraft server. Most specifically Pixelmon. To summarize, their solution was to go pay for their proprietary Minecraft hosting/admin panels for ease of installation.
This tutorial can be seen as a general guide on installing Forge modded Minecraft servers with the example being Pixelmon for Minecraft Version 1.12.2.
Prerequisites
This guide is on how to install the Pixelmon server using Forge Server on a Linux Server
- Operating System: Ubuntu Linux server
- How to download Minecraft 1.12.2 forge client
- How to download Pixelmon mod
Installation
Firstly, we want to create a directory where we want to deploy this Minecraft server. Once that is done, we can change our working directory to it and begin downloading Minecraft-Forge-installer.jar onto the server.
Forge 1.12 server jar download
wget https://maven.minecraftforge.net/net/minecraftforge/forge/1.12.2-14.23.5.2860/forge-1.12.2-14.23.5.2860-installer.jar
Install forge server
Now that that jar file has been successfully downloaded to our server, we can run the following command to start the server installation process.
java -jar forge-1.12.2-14.23.5.2860-installer.jar --installServe
r
Troubleshoot (optional)
Command 'java' not found, but can be installed with: error
Java does not come packaged with new Linux servers. Luckily the error provides a solution for installing java onto the server. I found that OpenJDK version 1.8.0 worked the best with the mods and premade adventure maps.
sudo apt install openjdk-8-jre-headless
Then run the install forge server command again.
Run forge server
Time to finally run this thing!
java -jar forge-1.12.2-14.23.5.2860.jar --nogui
Now what??
Accept Eula
Failed to load eula.txt
Before a Minecraft server can begin, you will need to accept Mojang’s EULA agreement. A Eula, standing for End-user license agreement, specifies in detail the rights and restrictions which apply to the use of the software.
We can accept it by editing the .txt file in nano.
nano eula
- Change
eula=false
toeula=true
- Ctrl+X to save and exit
Run server again
This time it will start creating files necessary to run the Minecraft server such as configuration and world files. Now you can install any mods from here or just use it as a Vanilla Minecraft server.
To install mods, we will need to stop the Minecraft server using the Ctrl + C
shortcut.
Pixelmon server jar download
Change your working directory into the mods directory.
cd mods
Download Pixelmon server jar from the website.
wget https://download.nodecdn.net/containers/reforged/server/release/8.4.3/Pixelmon-1.12.2-8.4.3-server.jar
Delete the world folder
Deleting the old world file will allow the Pixelmon mod to create Pokemon structures and other necessary items.
rm -rf world/
Run server again
java -jar forge-1.12.2-14.23.5.2860.jar --nogui
Post Installation
Join the server from the game client
Lastly, join the Minecraft Pixelmon server and enjoy your Pokemon adventure with friends on Minecraft!