Minecraft PE server (pocketmine)


Dad, can you make us a server?


At some point over the past few weeks our home was infiltrated by Minecraft. Since that time every conversation has included some reference to it, even bedtime stories are interrupted by “Did you know that in Minecraft…?”. Most recently I was commissioned to create a server so they could play against/with each other.

After exercising my google-fu I came up with a couple of solutions to run a Minecraft server on premises. The first was to install a plugin on FreeNAS, which was successful, but I soon discovered that there is a difference between a Minecraft server for PC clients (I suppose game consoles as well) and Minecraft Pocket Edition (PE) for mobile platforms.

The second option I pursued centered around using a linux distro, and running an application on it. The list of requirements was short, support MCPE clients running version 0.14.0. First up to bat was ImagicalMine, chosen because it allegedly had better support for the version of the app. Installation seemed easy enough, startup wizard was fine, but it would not bind to the IP. After minimal troubleshooting I deleted the VM and started over. Next up to bat was PocketMine, which was second choice since our client version was only supported on the developmental version. However, the install was equally as easy as ImagicalMine, but with the advantage of working for me.

So, here’s what I did:

Download CentOS7 Minimal Install

After install, you need to run the following command to install the base components

yum groupinstall base

I’d also recommend creating a dedicated user for the server application you are running

sudo useradd <username>

Login as your new user

Now you are ready to install PocketMine (consult instructions here: http://pocketmine-mp.readthedocs.org/en/latest/installation.html)

I simply ran the wget command:

wget -q -O - https://raw.githubusercontent.com/PocketMine/php-build-scripts/master/installer.sh | bash -s -

After this, you will need to open the port on your server.

sudo firewall-cmd --zone=public --add-port=19132/udp --permanent 
sudo firewall-cmd --reload

I found this excellent write-up of firewalld


I also found this Reddit post that included a lot of the same information.


Should you forget to set/need to change the hostname/IP during install, here are instructions


You’ll need to update the OS as well.

su -c 'yum update'

If you are running this as a VM, VMware now recommends open-vm-tools

# yum install open-vm-tools

At this point, you should be ready to start pocketmine

sudo su - <username created earlier>

I had written this a year ago, but had abandoned it in my drafts. I’m attempting to keep up with the blog and thought I would post this. If it is incomplete or needs an update please let me know.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s