How To Make A Minecraft Server On Raspberry Pi

Huge Minecraft worlds inside a tiny Raspberry Pi Minecraft may not have the most impressive visuals or even a semblance of a story, but there are plenty of reasons why … Read more

Taylor Bell

Taylor Bell

Published on Apr 05, 2024

How To Make A Minecraft Server On Raspberry Pi

Huge Minecraft worlds inside a tiny Raspberry Pi

Minecraft running on a PC, with the server running on a Raspberry Pi 5

Minecraft may not have the most impressive visuals or even a semblance of a story, but there are plenty of reasons why it’s one of the best-selling games of all time. For starters, its unique mechanic of letting players build anything imaginable makes it great for any demographic. Pair its sandbox nature with a thriving community, and it’s clear why the game is still popular even after a decade.

If you love playing Minecraft with friends, you can even host a multiplayer session by creating a Minecraft server. Fortunately, you don’t need a cutting-edge PC just to create the server; even a tiny SBC like the Raspberry Pi can be used to host a Minecraft server. In this article, we’ll go over some methods to set up a Raspberry Pi-powered Minecraft server.

A lifestyle image of the Raspberry Pi 5

Related

Raspberry Pi 5 review: The holy grail of DIY projects got even better (and rarer)

The Raspberry Pi 5 is one of the most powerful consumer-grade SBCs out there. Sadly, its limited stock means you’ll have a hard time finding one.

Here is everything you need

In addition to the Raspberry Pi itself, you’ll need a microSD card to store the operating system and game files. Since the Minecraft server doesn’t require much storage, you can get away with an 8GB SD card to save money.

For a local multiplayer server, you’ll also need a LAN cable to plug into the Raspberry Pi’s Ethernet adapter. In terms of software, you must have an operating system pre-installed on your Raspberry Pi. We already have a guide on how to set up Ubuntu on the Raspberry Pibut the overall procedure is the same if you’re trying to install Raspberry Pi OS on a palm-sized computer.

  • A render of the Raspberry Pi 5

    Raspberry Pi 5

  • Blue Samsung EVO Select microSD, front view

    Samsung EVO Select microSD

  • Startech.com Cat 6 POE 100W Ethernet cable

    Startech.com Cat 6 POE Ethernet Cable

Finally, JDK is a necessary package for this project. If you’re on Ubuntu, you also need Git on your Raspberry Pi before you can create the Minecraft server. Here’s how:

  1. Open the terminal app
    The Raspberry Pi terminal app

  2. Install JDK with the help of this command:
    sudo apt install default-jdk
    The Raspberry Pi terminal with the JDK command highlighted

  3. Ubuntu users can install Git by pasting this command in the terminal:
    sudo apt install git
    The command to install Git on Ubuntu

How to make a Minecraft Java server with Pinecraft

Pinecraft is a third-party application that simplifies the setup and installation process. If you’re new to the Raspberry Pi landscape, or just want a simple installer that gets the job done, it’s a good idea to start things out with Pinecraft. Here’s how:

  1. Open the terminal once again
  2. Clone the Pinecraft repository to your microSD card using the Git command:
    git clone https://github.com/Cat5TV/pinecraft
    The Raspberry Pi terminal depicting the command to clone the Pinecraft repositiory

  3. Run the cd command to switch to the folder where you just cloned Pinecraft
    cd pinecraft
    The Raspberry Pi terminal depicting the command to switch to the Pinecraft folder

  4. Execute the install bash script by pasting this command in the terminal:
    sudo ./install
    The terminal window with the command to install Pinecraft

  5. Once the Pinecraft Installer boots up, choose OK twice
  1. Pick the user that will run the Minecraft server and press OK
    The procedure to select the user inside the Pinecraft installer

  2. Choose the game seed for your Minecraft world and tap OK
    The procedure to select the game seed inside the Pineberry installer

  3. Select the server type
    Selecting the server type in the Pinecraft installer

    Click OK once you’re done

  4. Pick between Survival and Creative game modes and hit OK
    The Pinecraft installer with the game modes highlighted

  5. Accept Mojang’s End User License Agreement by tapping Yes
    The option to accept the Mojang EULA inside the Pinecraft installer

  6. Choose whether you want to launch the Pinecraft server at startup
  7. Tap OK one more time, and wait for Pinecraft to download the necessary files
    The confirmation window inside the Pinecraft installer

  8. Launch the server by executing the following command in the terminal:
    ~/minecraft/server
    The command to launch the Pinecraft server

Although Pinecraft provides a hassle-free experience, it doesn’t support the latest version of Minecraft Java. If playing on newer Minecraft releases is important to you, you’ll need to look into alternative software packages. Luckily, Mojang provides an official server app that you can use to host your multiplayer session.

  1. Open the terminal and use the mkdir command to create a new folder for the server:
    mkdir minecraft_server
    The procedure to create a directory for a Minecraft Server

  2. Switch to this folder with the cd command:
    cd minecraft_server
    The terminal command to switch to the minecraft_server directory

  3. Execute this command to download the Minecraft server app:
    wget https://piston-data.mojang.com/v1/objects/8dd1a28015f51b1803213892b50b7b4fc76e594d/server.jar
    The terminal command used to retrieve the Minecraft Server software

  4. Run the server by pasting this command into the terminal:
    java -Xmx4096M -Xms4096M -jar server.jar
    The command to initialize the Minecraft server

    You can change the values of -Xmx and -Xms to change the amount of memory allocated to the server. Also, if you don’t want the GUI version, you can add the nogui string at the end.

  5. Next, open the EULA file using the Nano text editor
    sudo nano eula.txt
    The command to open the Mojang EULA text file

  6. Change the value of the eula string from False to True
    Changing the value of the eula string to true

    Press Ctrl+X to save the document, and tap Y when prompted for confirmation

  7. Run the server a second time with the help of the command used in step 4

If you followed these steps correctly, the server should be up and running in a few seconds.

How to find the IP address of your Raspberry Pi

Before you can connect to the Raspberry Pi server from another system, you’ll need to find the IP address of your Raspberry Pi.

  1. Click on the Wi-Fi/Ethernet option on the taskbar
  2. Hover your cursor over Advanced Options and select Connection Information
    The Wi-Fi settings on the Raspberry Pi

  3. Note the IP address under the IPv4 header
    The IPv4 address of a Raspberry Pi

How to connect to the Raspberry Pi server?

Now that you’re done setting up the Minecraft server on the Raspberry Pi, you can connect to it by launching Minecraft Java on another PC.

  1. Open the Minecraft Launcher and click on the Play button under the Minecraft Java section
    The Minecraft Launcher with option to play Minecraft Java selected

  2. Once Minecraft boots up, select Multiplayer
    The procedure to launch Minecraft in Multiplayer mode

  3. Click on the Add Server button
    The Add Server button in Minecraft

  4. Enter the Server Name and type the IP address of the Raspberry Pi under Server Address before clicking on Done
    The procedure to add a new Minecraft server

  5. Select the server you just added and press Join Server
    The procedure to join a Minecraft server

If you’re using a server using Pinecraft, you’ll need to install version 1.20.2 since the app doesn’t support the latest release of Minecraft Java

  1. Open the Minecraft Launcher and navigate to the Installations tab of Minecraft Java before clicking on New Installation
    The procedure to install an older version of Minecraft Java

  2. Give it a nameset release 1.20.2 as the versionand click on the Create button
    The settings used to create a new installation of Minecraft Java

  3. Press Play and wait for Minecraft Launcher to finish downloading the older release
    The Play button next to an older release of Minecraft Java

  4. If you want to switch to another version, head back to the Play tab and click on the drop-down arrow next to the Play button
    The procedure to switch to another version of Minecraft Java

Running a Minecraft server on a palm-sized Raspberry Pi

A screenshot of the Raspberry Pi OS running Minecraft Java server

And that’s it for this guide. If you want to experiment a bit, you can start by using other game seeds and server types within Pinecraft. Conversely, if you are using the official method, you can modify the game settings in the properties files by running the nano server.properties command in terminal.

Now that you know how to create a Minecraft server on the Raspberry Pi, you might want to try running it on a Steam Deck. Alternatively, you can browse through our favorite GPUs if you want to play Minecraft with more demanding graphical mods.

beagleboard sbc attached to drone

Related

Best Raspberry Pi alternatives

The Raspberry Pi is just one of many great single-board computer options available for a variety of projects.

Partager cet article

Inscrivez-vous à notre newsletter