The Raspberry Pi 3 Minecraft Server Recipe

So since I went through my last heavy blogging phase, my son grew up quite a bit and ended up getting into Minecraft. Being a sucker for games that allow you to build, I got into it too, and decided after not too long that it would be fun to play with him on a server. I also knew a teensy bit about the Raspberry Pi, and found out through some drifting about the interwebs that people had successfully set up very low-cost servers using the Pi. And thus the future opened up to me like a glorious sunrise over a new and wondrous world.

In an effort to ensure that I am able to repeat the process of building a server (which, not by coincidence, I happen to be doing right now), I’ve decided to put these instructions on the blog to make it easier for me to remember everything that needs to be done, and also to help out those lonely searchers who come this way, looking for what I had sought. Hence…

Marc’s Raspberry Pi Minecraft Server Instructions

  1. Start with a fresh install of NOOBS
  2. sudo apt-get update
  3. sudo apt-get upgrade
  4. Install latest version of Java SE Development: Look for Linux ARM32 v6/v7 Hard Float ABI; download via RPi browser to Downloads directory.
  5. Once downloaded, go to Downloads folder: cd ~/Downloads; then sudo cp [java filename].tar.gz /opt/ to move the file to the /opt/ directory, where java will be installed.
  6. Extract Java into the /opt/ directory: sudo tar xvzf [java filename].tar.gz (x tells tar to extract the files; v lists all the files as they are extracted – “verbose”; z tells tar to uncompress the file; f tells tar that you will give it a filename to work with)
  7. Check to make sure Java extracted correctly: sudo /opt/[java directory name]/bin/java -version
  8. Create a minecraft directory: sudo mkdir /home/minecraft
  9. Go to minecraft directory: cd /home/minecraft
  10. Obtain the builder tool from Spigot that will be used to build the server: sudo wget
  11. Run the builder tool (will take between 15-30 minutes):
    For Raspberry Pi 2: sudo java -jar BuildTools.jar
    For Raspberry Pi B+/B: sudo wget
    Or, if all else fails, this might be a good place to find spigot:
  12. When the download and install finishes, check to make sure it was successful by entering command ls and looking for spigot.jar
  13. Make sure you remain in the /home/minecraft directory to create the server files within that directory. This is accomplished by the entering of one of the following commands:
    Raspberry Pi B+/B: sudo /opt/jdk1.8.0_65/bin/java -Xms256M -Xmx496M -jar spigot-1.8.8.jar nogui
    Raspberry Pi 2: sudo /opt/jdk1.8.0_65/bin/java -Xms512M -Xmx1008M -jar spigot-1.8.8.jar
    Note: I ran into an Error: cannot access jarfile message when attempting to run the commands in step 12; to get around this, I launched from the /minecraft/ directory and removed the directory path to the spigot-1.8.8.jar file from the command.
  14. The server will stop because the eula.txt file needs to be modified.
  15. Type sudo nano eula.txt; change “false” in the eula text to “TRUE”, then [ctrl] x, y, and [enter] to save the change.
  16. Restart the server with the appropriate command from step 12 above.
  17. Spigot will now build the Minecraft world.
  18. When Spigot finishes building the world, type stop to quit the server.
  19. Now add plugins in the plugins folder: cd plugins