5078+ reviews
Order by 16:00 for same day shipping
14 days return
GB
EN
Individual
Business
You've probably heard of it or played it, Minecraft.
This well-known game is fun for young and old. It is a simple sandbox where you can build or make almost anything you can think of. Especially if you use mods. During this fun project you will learn how to make your own Minecraft server with a Raspberry Pi . Make sure you have a Minecraft account. What is nice about having your own server is that you can play with other people at the same time.
But now that that is said have fun making this project.
Before you can create your server, you need to connect your Raspberry Pi to a display.
We do this by putting the HDMI cable from the HDMI port on the Raspberry Pi into that of the screen. Your keyboard and mouse via the USB ports and the power via the mirco-USB connection. Once you have done this you have everything connected. We can now start making the server.
To create your server you will first need to download spigot. This is the file we will use to build the server, it contains all the building blocks we need. Follow the steps below and execute them in the Terminal.
First we create a directory for the spigot file and make sure we are in that directory.
mkdir /home/pi/spigot
cd /home/pi/spigot
Now we are going to download the spigot file which we do with this code below.
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jarcd /home/pi/spigot
sudo apt-get install git openjdk-8-jre-headless
git config --global --unset core.autocrlf
java -jar BuildTools.jar
ls -latr /home/pi/spigot/*.jar
Before you can start your server for the first time you will need to create a special folder for your server. Once you have created this move everything in the spigot folder to this folder. The explanation for how to do this is in the code below.
mkdir /home/pi/minecraft
mkdir /home/pi/minecraft/server
cp /home/pi/spigot/spigot-1.13.2.jar /home/pi/minecraft/server
Now that you know what spigot version you have and have created a folder for your server you can start to boot your server for the first time. It will probably give an error and shut down shortly after you boot it. This is because you need to change the false to true in the eula text file.
cd /home/pi/minecraft/server/
java -jar spigot-1.13.2.jar
nano eula.txt
sudo apt-get install git openjdk-8-jre-headless
git config --global --unset core.autocrlf
java -jar BuildTools.jar
java -jar spigot-1.13.2.jar
stop
Now you can configure your server to your wishes. So for example adjust the maximum player amount and many other things. You can adjust all this by typing the code below and then adjusting the file.
nano server.properties
To get to your server you first need to turn it back on. Do this with the code below.
java -jar spigot-1.13.2.jar
Now you have to start Minecraft in the same version as your spigot so in my case 1.13.2. When it is started go to multiplayer. Then select add server and type in the ip address of your Raspberry Pi with the port behind it. The port is 25565 by default but this can be changed in the properties file.
Now your Minecraft server is ready, have fun playing.
Are you happy with the result?
Did you complete this project to your satisfaction and would you like to learn more about programming?
Perhaps this online programming course is something for you!