Saturday, October 1, 2022
Google search engine
HomeTechnologyHow to set up a Minecraft server on Raspberry Pi

How to set up a Minecraft server on Raspberry Pi

You want to run your own Minecraft server? The Raspberry Pi is the ideal choice. How to set up a Minecraft server using a Raspberry Pi

You want to play Minecraft on your terms? You can create your own server and share your worlds with your friends.

It’s amazing, but it’s true: You can do all this with a Raspberry Pi.

My son loves Minecraft, and he asks me every day to play with him. It’s difficult to do this while he is playing on his tablet. It seems inappropriate to allow him to go online, as he is only young.

It’s easy. Here’s how you can set up a Minecraft server on Raspberry Pi.

What you will need to set up a Raspberry Pi Minecraft server

You will need the following items to install a Minecraft server onto your Raspberry Pi:

  • A Raspberry Pi 3 and Raspberry Pi 4 power cable.
  • Ethernet cable
  • 16GB microSD cards or larger

While older Pi models can be used, the results won’t be as good. An Ethernet cable is preferred because it is quicker than Wi-Fi. Wireless networking is possible, but faster connections mean better server provision and in-game performance.

These instructions will help you create the best Minecraft server.

If you use the above with remote SSH connections, you can set up a Minecraft server for your Raspberry Pi. You will also need:

  • USB keyboard
  • USB mouse (or a combination thereof)
  • 1 x HDMI Cable
  • A compatible monitor or display

These peripherals should be connected before you turn on the Raspberry Pi.

A copy of Minecraft will be required on your computer. You won’t have the Raspberry Pi allow you to host more than 10 people. You should not host more than 10 people on the Pi 3. You can install Minecraft server on Raspberry Pi 4 if you have more RAM.

READ MORE: What is the Difference between Raspberry Pi 4 and Other Models?

Which Minecrafter is This?

There are many versions of Minecraft.

You can create a Minecraft server using Raspberry Pi. This will allow you to access the world from any Minecraft-compatible device except MinecraftPi. This server will run Minecraft on Windows PCs, Android tablets, iOS devices, Amazon Fire tablets, and TVs.

 

This means that if you have multiple devices on your network, they could all be able to access the Minecraft server.

You’ll need to download the main Minecraft open-world game by Mojang.

Step 1: Install Raspberry Pi OS, and Configure Your Pi

Get a new copy of Raspberry Pi OS. You’ll find the latest version at www.raspberrypi.org/software/operating-systems. To quickly write the Raspberry Pi OS image onto your microSD card, you can use Raspberry Pi Imager.

RELATED: How to Install an Operating System on Raspberry Pi

Next, configure Raspberry Pi OS to run the Minecraft server. Have you connected a keyboard and monitor to it? If yes, you can open the Raspberry Pi Configuration Tool in the Preferences Menu on the desktop.

 

To access SSH via , use sudo raspberryi-config . This will open the text-based configuration tool.

Make the following modifications:

  • Go to Advanced Options > memory split to change the setting to 16MB. This will allow the server to use more memory.
  • Next, navigate to Boot Option > Desktop/CLI then select Console. This is not necessary for Raspberry Pi OS Lite.
  • This can be done with a Raspberry Pi 1 and 2. This step can be skipped by Raspberry Pi 3 or 4 users.
  • Allow SSH in Advanced Settings > SSH
  • Next, visit Advanced > Expand filesystem.

After making these changes, navigate to Finish then reboot Raspberry Pi OS at the prompt. Login again and locate the IP address with:

 

sudo hostname -I

Or:

ifconfig

Before you continue, make a note of your IP address.

Step 2: Install Minecraft Server on Raspberry Pi

Cloudburst’s Nukkit server software is required to install Minecraft on Raspberry Pi. Nukkit is a special version of Minecraft Pocket Edition that can be installed easily on the Pi using the command line.

Install Java first. This is necessary for Nukkit’s operation:

sudo oracle-java8 -jdk

Next, create a directory called “nukkit” and then open it.

mkdir nukkit cd nukkit

Once you’re done, download Nukkit server software. It’s much easier to paste this into an SSH session if you are precise.

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

(The project page has the most current builds.

After downloading, you can run Nukkit

sudo java -jar nukkit.jar

Nukkit will prompt you to create the server. Next, select your language (we used english) and then wait for the Minecraft server to be generated.

Step 3: Configure your Minecraft Raspberry Pi Server

After you have verified that the Minecraft server has been properly set up, it is time to configure it. Nukkit includes two configuration files: nukkit.yml, and server.properties.

 

These can be edited by simply opening them in your preferred text editor. You can use nano on Raspberry Pi OS.

sudo nano nukkit.yml

Or

sudo nano server.properties

You can make many changes. You can make any changes you wish, but the Raspberry Pi 4 cannot do too much processing.

The Minecraft Wiki contains a list of server properties. However, it is recommended that you edit several immediately. Start with:

max-players=10

Older Raspberry Pi models won’t work with more than 10. You may be able to handle 5-6 players. There are many other configuration options that you may be interested in.

pvp=on

This is for player-vs.-player action. You can also set difficulty.

difficulty=1

This is the simplest setting.

Once you are done, press CTRL + X for save and exit. Then, run:

sudo java -jar nukkit.jar

This will reboot your Minecraft server but not the Raspberry Pi.

Step 4: Connect to Raspberry Pi Minecraft Server

Now your Minecraft server should be available on your local network. This can be checked by running a HTTP ping command on another device using the IP address that you have noted earlier. If your Raspberry Pi returns a response, you can continue.

 

You just need to launch Minecraft on your tablet or computer.

  1. Click Play > Servers
  2. Select Add Server.
  3. Input new server details (name, IP address)
  4. Verify that the port number is the same as the one in the server properties

You should list your Raspberry Pi Minecraft server as an option to connect to if it is online. To play, simply select the server.

Step 5: Use Nukkit plugins to extend your Minecraft server functions

You might not like the default configurations of Nukkit’s server. You can tweak nukkit.yml or server.properties, but that will only take you so far.

Nukkit plugins allow you to improve the gameplay. These plugins add features to your online session that were not possible before, such as the ability to include animals.

Suggested Nukkit plugins include:

  • MobPlugin – Adds mobs to your Minecraft environment
  • WorldEssentials: enables different game modes
  • EssentialsNK – Includes additional game modes, multiplayer management software, and more

These plugins work with the Raspberry Pi 3 or 4 Minecraft server. You can download the files to your Pi, and then copy the file to the plugins folder.

 

The MobPlugin, for example, can be moved using:

sudo mv MobPlugin-1.9.0.1.jar plugins

To find the Cloudburst website, click Resources. You will be able to select from more than 250 plugins to your Raspberry Pi Minecraft server.

Now you know how to make a Raspberry Pi Minecraft server

You should now have Minecraft server installed on your Raspberry Pi.

It’s that simple. You’ll be able to connect to the Minecraft world and use it as long as you keep it running. Self-hosting a server on your local network is a great way to keep Minecraft-loving kids safe online.

Your Minecraft server is now up and running on Raspberry Pi. You can have more fun playing the game by checking out The best Minecraft seeds and How to use Minecraft command blocks.

 

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments