How-to Setup a Minecraft PE Server on Linux

minecraft-pocket-edition

Setup a Minecraft PE Server

We have had several requests from our readers for a how-to on setting up a Minecraft PE server. We already covered How-to Setup a Minecraft Server in our previous tutorial. Minecraft PE is very similar but can be played from your iPhone or Android Phone. You can download the client from your respective App Store. Setting up a Minecraft PE server using PocketMine on CentOS 6 is easy and this whole tutorial should only take about 15 minutes to complete.

Setting it all up

Setting up the server is fairly straight forward. First you need a server. A small VPS would do. We recommend ZoomCloud.net’s VPS 1 GB for a small to medium sized server.

Once you have a VPS server setup you can continue to install PocketMine-MP. Don’t forget you also need the Minecraft PE application from your App store. So you should install that now as well.

Getting PocketMine – MP

PocketMine-MP is a cross platform Minecraft Server that runs on Linux as well as windows. For this tutorial we will use linux, specifically CentOS 6.X x86_64. First things first you need to download the installer script from Sourceforge located here: http://sourceforge.net/projects/pocketmine/.  If you are on your VPS, just use wget to download the script.

[root@minecraftpe ~]# wget http://downloads.sourceforge.net/project/pocketmine/linux/PocketMine-MP_Installer_Alpha_1.3.10.sh?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpocketmine%2F%3Fsource%3Ddlp&ts=1388681509&use_mirror=softlayer-dal
[1] 880
[2] 881
[root@minecraftpe ~]# --2014-01-02 16:49:29-- http://downloads.sourceforge.net/project/pocketmine/linux/PocketMine-MP_Installer_Alpha_1.3.10.sh?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpocketmine%2F%3Fsource%3Ddlp
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://iweb.dl.sourceforge.net/project/pocketmine/linux/PocketMine-MP_Installer_Alpha_1.3.10.sh [following]
--2014-01-02 16:49:29-- http://iweb.dl.sourceforge.net/project/pocketmine/linux/PocketMine-MP_Installer_Alpha_1.3.10.sh
Resolving iweb.dl.sourceforge.net... 70.38.0.134, 2607:f748:10:12::5f:2
Connecting to iweb.dl.sourceforge.net|70.38.0.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 979 [application/octet-stream]
Saving to: “PocketMine-MP_Installer_Alpha_1.3.10.sh”

100%[======================================================================================================================>] 979 --.-K/s in 0s

2014-01-02 16:49:29 (62.6 MB/s) - “PocketMine-MP_Installer_Alpha_1.3.10.sh” saved [979/979]
[1]- Done wget http://downloads.sourceforge.net/project/pocketmine/linux/PocketMine-MP_Installer_Alpha_1.3.10.sh?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpocketmine%2F%3Fsource%3Ddlp
[2]+ Done ts=1388681509
[root@minecraftpe ~]#

Installing the required dependancies

You need a few other packages to start the build of PocketMine-MP. Use the following command to download the required dependencies. *note this also installs the GCC compiler.


[root@minecraftpe ~]# yum install make autoconf automake libtool

Installing PocketMine-MP

Next you will need to make the install script executable and then run it. 

[root@minecraftpe ~]# chmod +x PocketMine-MP_Installer_Alpha_1.3.10.sh
[root@minecraftpe ~]# ./PocketMine-MP_Installer_Alpha_1.3.10.sh

The script will run and download even more packages such as PHP and then compiles it all.


[root@minecraftpe ~]# ./PocketMine-MP_Installer_Alpha_1.3.10.sh
[INFO] PocketMine-MP Alpha_1.3.10 downloader & installer for Linux & Mac
[0/2] Cleaning...
[1/2] Downloading PocketMine-MP Alpha_1.3.10...
[2/2] Compiling PHP
[PocketMine] PHP installer and compiler for Linux & Mac
[INFO] Checking dependecies
[INFO] Compiling for current machine
[PHP] downloading 5.5.6... done!
[zlib] downloading 1.2.8... checking... compiling... installing... cleaning... done!
[cURL] downloading curl-7_33_0... checking... compiling... installing... cleaning... done!
[PHP pthreads] downloading 0.0.45... done!
[PHP] enabling optimizations... checking... compiling... installing... done!
[INFO] Cleaning up... done!
[PocketMine] You should start the server now using "./start.sh"
[PocketMine] If it doesn't works, please send the "install.log" file to the Bug Tracker
[INFO] Done
[root@minecraftpe ~]#


Now we need to start the server


root@minecraftpe ~]# ./start.sh
16:16:40 [INFO] Starting Minecraft PE server version v0.7.6 alpha
16:16:40 [INFO] Loading properties...
16:16:40 [INFO] Starting Minecraft PE server on *:19132
16:16:40 [INFO] This server is running PocketMine-MP version Alpha_1.3.10 (MCPE: v0.7.6 alpha) (API 10)
16:16:40 [INFO] PocketMine-MP is distibuted under the LGPL License
16:16:40 [NOTICE] Level "world" not found
16:16:41 [NOTICE] Generating level 7%
16:16:41 [NOTICE] Generating level 13%

16:16:41 [NOTICE] Generating level 88%
16:16:41 [NOTICE] Generating level 94%
16:16:41 [NOTICE] Generating level 100%
16:16:41 [NOTICE] Populating level
16:16:41 [NOTICE] Importing level 7%
16:16:41 [NOTICE] Importing level 50%
16:16:41 [NOTICE] Importing level 88%
16:16:42 [NOTICE] Importing level 100%
16:16:42 [NOTICE] Populating level 7%
16:16:42 [NOTICE] Populating level 13%
16:16:42 [NOTICE] Populating level 88%
16:16:42 [NOTICE] Populating level 94%
16:16:42 [NOTICE] Populating level 100%
16:16:42 [INFO] Preparing level "world"
16:16:42 [INFO] Starting GS4 status listener
16:16:42 [INFO] Setting query port to 19132
16:16:42 [INFO] Query running on 0.0.0.0:19132
16:16:44 [INFO] Default game type: SURVIVAL
16:16:44 [INFO] Starting plugins...
16:16:44 [INFO] Done (3.905s)! For help, type "help" or "?"



That is all there is to it. Your server is now setup. 

Configure Minecraft PE to connect to your server

Hopedfully by now you have downloaded the Minecraft PE app from your respective app store. Configuring it is easy.

Launch the app and click ‘play’

IMG_0835

Next click Edit to add a new world

IMG_0836

Click new to add your new world

IMG_0837

Click External to add your new server, then click add server.

IMG_0839

Now your new server will appear in your world list

IMG_0840

Click on your newly created server to connect.

IMG_0841

Thats it your now connected to your server. You should see something like this on the console of your VPS

16:23:23 [NOTICE] Player data not found for "steve", creating new profile
16:23:23 [INFO] Steve[/68.80.168.207:65335] logged in with entity id 1 at (world, 129, 69, 129)


Registering your server for the world to see

Now that your server is running you should definitely head over to MCPEIndex and register your new MineCraft PE Server. MCPEIndex offers a unique service to register your MCPE server. This will allow other players to see your server and join to play along.

PocketMine-MP Additional Commands

If you have followed along so far you should be mining and crafting away right now. There will come a time when you need to make some tweaks to your server or ban or whit list players or IP’s. Here is the commands you can use on the terminal session:


/ban [username]
/banip [IP|player]
/defaultgamemode
/deop /difficulty <0|1|2|3>
/gamemode [player]
/give [amount]
/help [page|command name]
/kick [reason ...]
/kill /list
/me
/op /ping
/save-all
/save-off
/save-on
/say
/seed [world]
/spawn
/spawnpoint [player] [x] [y] [z]
/status
/stop
/sudo /tell /time [time]
/tp [target player] OR /tp [target player]
/whitelist [username]

Conclusion

Setting up a Minecraft PE server using PocketMine-MP is very easy and straightforward. This tutorial only scratches the surface. I would recommend you check out http://www.pocketmine.net for even more plugins and information on editing the default server.properties file.

Enjoy!

-Tutor


Posted

in

, , ,

by

Tags:

Comments

3 responses to “How-to Setup a Minecraft PE Server on Linux”

  1. vps notes Avatar

    I understand that Minecraft is declining in popularity, but its still so much fun. Will try this guide to have my own minecraft game server

  2. Ellen Avatar
    Ellen

    How do you configure server/pocketmine so that the pocketmine server query info comes up in the client app in the server list area? If i just put my server IP it shows all the query info and motd etc but if i use my domain name it just says “locating server” without populating any info. Connecting is no problem and I believe everything is configured properly in my DNS as I have the A records and the domain resolves. Thanks!

  3. Ethan Avatar
    Ethan

    is vps necessary? or can it just be ported

Leave a Reply to Ellen Cancel reply

Your email address will not be published. Required fields are marked *