Home Interests Raspberry Pi

How to Run a Minecraft Server on the Raspberry Pi

A whole world trapped inside your Pi.
howchoo   (467)
December 7, 2023
9 minutes

Share

You'll Need 1

What you'll need
Interests
Howchoo is reader-supported. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you buy through our links.
Posted in these interests:
READY PLAYER 1
gaming • 85 guides
Minecraft is an epic sandbox video game developed by Swedish game developer Mojang Studios.
minecraft • 66 guides
pi • 92 guides

There are several ways to go about running a Minecraft server on the Raspberry Pi. In this guide, I’ll cover how to install Nukkit—a cross-platform Minecraft server that’s super easy to set up on the Raspberry Pi. This server should work with PCs, consoles, and tablets running Minecraft 1.14.

I’ll be using a Raspberry Pi 3 B+. You may be able to use a Raspberry Pi 1 or 2 for this project, but the performance will be much better with a Pi 3 or 4.

Looking to play Minecraft directly on your Raspberry Pi instead? Check out my guide on that!

1 – Install and set up Stretch

Raspberry Pi OS is the latest Raspberry Pi operating system. However, I recommend installing Raspbian Stretch for this project. I tested this release with Buster and ran into a few Java issues. By switching to Stretch, everything went buttery smooth.

How to Install Raspberry Pi OS on Your Raspberry Pi
Get the new official Raspberry Pi OS on your Pi.

Visit our guide on how to install Raspbian Stretch if you need it. When Stretch is installed, follow the setup wizard. Connect to the internet using either an ethernet cable or WiFi. Be sure not to update Stretch to Buster.

2 – Adjust Raspbian settings

Once the OS has been installed, you should prepare your Raspberry Pi with a few settings in the raspi-config menu. If you don’t have a screen to connect to the Pi, visit our guide on how to enable SSH without a monitor.

How to Enable SSH on Raspberry Pi OS Without a Screen
The SSH protocol is disabled by default.

  1. Open a Terminal on the Raspberry Pi.
  2. Enter sudo raspi-config.
  3. Enable SSH under Interfacing Options > SSH.
  4. Open Advanced Options and go to Memory Split. Set this to 16MB to free memory resources for our Minecraft server.
  5. Under Boot Options look for Desktop/CLI and set it to Console.
  6. Go to Advanced and choose Expand Filesystem.
  7. Select Finish.

3 – Install Java

Install Java on the Raspberry Pi by running the following command.

sudo apt install oracle-java8-jdk

4 – Create a Nukkit folder

Create a folder just for Nukkit using the following command.

mkdir nukkit

Go into the Nukkit folder.

cd nukkit

5 – Install Nukkit

Install Nukkit using the following command.

wget -O nukkit.jar https://ci.nukkitx.com/job/NukkitX/job/Nukkit/job/master/lastSuccessfulBuild/artifact/target/nukkit-1.0-SNAPSHOT.jar

6 – Set Nukkit language

When Nukkit is installed, run it with this command.

sudo java -jar nukkit.jar

You will be prompted to choose a language. Go ahead and set the language for your server.

7 – Managing your Minecraft server

Once the server is installed and running, you can apply custom settings. Managing your Minecraft server is as easy as editing a file. Make sure you’re in the Nukkit folder and run the following.

sudo nano server.properties

Edit this file to adjust things like player count, difficulty, game mode, white lists, and more. Save your changes with Ctrl + X and close out of the file.

8 – Connect to the server

Restart the Raspberry Pi and run your server with the following command.

sudo java -jar nukkit.jar

This server runs version 1.14. Connect to the server with a client that’s running the same version of Minecraft. Nukkit should work with PC, console, and tablet users (but not Minecraft Pi Edition).

Note: The Java version of Minecraft on PC will not connect to the Nukkit server. You must use the Windows version. The screenshot on this step was taken using the Windows edition.

The server IP address and port number will be visible in the Nukkit terminal window. The server IP will be the same as the Raspberry Pi by default.

Congratulations! You should have a private Minecraft server running on the Raspberry Pi.

NEXT UP

Top 10 Enchantments in Minecraft

howchoo   (467)
March 25, 2024

The longer you play Minecraft, the more you realize that early-game tools just won’t cut it. Exploring the enchantment feature of Minecraft can be exciting, but also intimidating. Rather than worry about researching enchantments, below are the best enchantments in Minecraft! To learn how to enchant items, check out this guide! In this guide, you’ll see

Continue Reading

howchoo

 467 guides

Introducing Howchoo, an enigmatic author whose unique pen name reflects their boundless curiosity and limitless creativity. Mysterious and multifaceted, Howchoo has emerged as a captivating storyteller, leaving readers mesmerized by the uncharted realms they craft with their words. With an insatiable appetite for knowledge and a love for exploration, Howchoo's writing transcends conventional genres, blurring the lines between fantasy, science fiction, and the surreal. Their narratives are a kaleidoscope of ideas, weaving together intricate plots, unforgettable characters, and thought-provoking themes that challenge the boundaries of imagination.

Discover interesting things!

Explore Howchoo's most popular interests.

Explore