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.
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.
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.
- Open a Terminal on the Raspberry Pi.
- Enable SSH under Interfacing Options > SSH.
- Open Advanced Options and go to Memory Split. Set this to 16MB to free memory resources for our Minecraft server.
- Under Boot Options look for Desktop/CLI and set it to Console.
- Go to Advanced and choose Expand Filesystem.
- Select Finish.
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.
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.