Connect with us

How To

How to Set up a Minecraft Pocket Edition Server On Your Raspberry Pi?

Published

on

Raspberry Pi Minecraft

Raspberry Pi Minecraft: Minecraft is one of the highly played games by people all over the world. Many of the Minecraft Players are highly addicted to the game. This project is perfect for a casual Minecraft play because it turns the Raspberry Pi into the low-powered Minecraft server. In this article, we are going to show you how to set up the Minecraft Pocket Edition server on your Raspberry Pi.

Raspberry Pi Minecraft
Raspberry Pi Minecraft

Related: How to Use the Raspberry Pi as a NAS box?

How to Set up a Minecraft Pocket Edition Server On Your Raspberry Pi? | Raspberry Pi Minecraft

In this project, we are going to turn the Raspberry Pi into a server for the online Minecraft play. It pushes the Raspberry Pi to its limits. So don’t expect to play with a lot of people on this server, and be aware that you may have some performance issues. This is not a server for multiple competitive players in the survival mode. The process of setting up the server is very simple.

Raspberry Pi Minecraft
Raspberry Pi Minecraft

Let’s begin this with the Raspbian Lite, because this project is a little bit heavy for your Raspberry Pi Minecraft, and you have to avoid any unnecessary installs. Then just install Nukkit, which is a server program that works well for this project. After a few minor tweaks, you will be ready to connect to your new server on your device, which is running Minecraft Pocket Edition.

Step 1: Install Raspbian Lite, Here you need Raspbian Lite rather than regular Raspbian because you need a little on your Raspberry Pi as possible when you want it to do the heavy lifting required to run a server. For the same reason, we recommend a fresh install. Check out our guide to installing Raspbian on the Raspberry Pi for more instructions (again, just make sure that you are installing the Lite version).

Step 2: Check for updates, this is the common step, which we do in all our projects. Just log in using the username pi and password raspberry. Then the Raspbian Lite will boot to the command line. Run the following commands.

sudo apt-get update
sudo apt-get upgrade

Raspberry Pi Minecraft
Raspberry Pi Minecraft

Step 3: Now update the Raspberry Pi’s memory split, You need as much memory as possible available to your server So that the Raspberry Pi can handle this work.

We need as much memory as possible available to the server so that the Raspberry Pi can handle its work. You can enter the raspi-config menu with the following command.

sudo raspi-config

Now navigate to the Advanced Options> Memory Split. Set the Memory split option to 16.

Now hit Finish and give the Pi permission to reboot.

Step 4: Now you need Java to run the Nukkit. Java works natively on the Raspbian, But now we are using the Raspbian Lite, you need to download and install it:

sudo apt-get install oracle-java8-jdk

Raspberry Pi Minecraft
Raspberry Pi Minecraft

Step 5: Download Nukkit
Nukkit is the program that we’ll use to run our Minecraft server. It’s a great program, works well on the Pi, and is super easy to use. Before we download it, let’s create a new directory so that we can find this darn thing again after we download it!

mkdir nukkit
cd nukkit

You have made a new folder and entered it, So download Nukkit to the following directory:

wget -O nukkit.jar http://ci.mengcraft.com:8080/job/nukkit/lastSuccessfulBuild/artifact/target/nukkit-1.0-SNAPSHOT.jar

Step 6: Now you can run the server program.

sudo java -jar nukkit.jar

Now you can choose your language from the list of options preceded by “[INFO].” Type the indicated three-letter code and hit enter to choose the language.

Raspberry Pi Minecraft
Raspberry Pi Minecraft

Now you will get a few lines of information preceded by the same by that same [INFO] tag. If you did this right, you can see lines like “preparing level’ world” and, hopefully, “Done!” with some information about how long the game look to start.

By Default, your server will be a survival server. It will show you how to tweak that in the final section.

Step 7: Now you can take your phone, tablet or whatever else you are running the Minecraft Pocket Edition on. Just make sure that you are on the same Wi-Fi network as your server. Then hit play and go to the Friends tab. Your server should appear under LAN Games.

Some of you may not get this, but still, you can hit that button in the upper right corner with a rectangle connected to the two squares. That’s the direct connect button, and it enables you to enter the IP address of your server. You can figure out the Raspberry Pi‘s IP address in the command line with the command hostname -I

Step 8: Configuring the server, and making it available on the internet, and many more.  If you are a content with the server’s default setting, then you are good to go! if not, here are some ways to tweak the experience.

Edit server properties: You can do all kinds of stuff by tweaking the server. properties file. Here is the command that you will need to edit the file: sudo nano server.properties. Minecraft’s Gamepedia page has the details on all the things which you can change, So we will let you click the link for the details and will just briefly mention two important settings: gamemode begins at 0 and can be changed to 1 for creative and difficulty starts at 1 and can be raised as high as 3 or lowered to 0 for peaceful.

Raspberry Pi Minecraft
Raspberry Pi Minecraft

The Nukkit has the configuration file of its own, too. Most of the game-related options are in the other one, but you can tweak things like the number of chunks loaded in this file, which can be reached with the command sudo nano nukkit.yml.

Access your server online: These instructions have given you the local server, but you can make this an online service if you desire. You will just need to set up the port forwarding on your router. Get the computer and access the router’s settings page by typing in the router’s IP address. Forward port 19132 to the Raspberry Pi’s local IP address. if you do this, you can be able to enter the public IP to connect to the server from outside of your local network.

Activate SSH: You can find it easier to control your server from the computer through SSH – that way, you don’t have to leave the monitor and keyboard and all which is connected to the Raspberry Pi the whole time. You can allow the SSH in the raspi-config menu (Advanced Options > SSH).

Thank you for reading this post.

Facebook

Trending

Would you like to receive notifications on latest updates? No Yes