How to install Minecraft Server on Raspberry Pi 4

From media_wiki
Revision as of 00:34, 11 February 2021 by U731219879 rc (talk | contribs)
Jump to: navigation, search

Basic File System Setup.
Step are following the Youtube Video by Macintosh Fan Technology

 https://www.youtube.com/watch?v=SBX-90NcAJo

Make sure your Java version is Java 8 or newer.
Open a terminal session:
Change Directory to Desktop

 cd home/pi/Desktop  or cd Desktop    

Make a new directory (Folder) called minecraft_server

 mkdir minecraft_server 
 Change to the directory
 cd minecraft_server   

Use the touch command to create a shell script file in that directory name start.sh

 touch start.sh

Enable the Read/Write attributes with Chmod command

 chmod +x start.sh

Modify the start.sh file using nano.

 sudo nano start.sh

Add the following 2 lines and save file:

 cd /home/pi/Desktop/minecraft_server/
 java -Xmx1024M -Xmx2000M -XX:+UseConcMarkSweepGC -jar spigot.jar nogui
 Use the Control key with the letter o to save content.
 Use the Control key with the letter x to close the file.

Now lets download the Spigot Server File from the getbukkit.org download.
Open Spigot Server Download using the following URL:

 https://getbukkit.org/download/spigot

Select the Spigot version needed for your server. I will use version 1.16.5 for this example
Once selected click Download for that version. Do not click Create a Server.
Spigot16-5-jar.PNG
In the Box that says You're about to download: click on the version link. Spigot 1.16.5.jar

Now move the theSpigot 1.16.5.jar from the Downloads directory(Folder) to the minecraft_Server directory (Folder).

cd /home/pi/Downloads   
mv Spigot 1.16.5.jar /home/pi/Desktop/minecraft_Server