Skip to content

Instantly share code, notes, and snippets.

@glennschler
Created December 1, 2013 01:40
Show Gist options
  • Save glennschler/7727570 to your computer and use it in GitHub Desktop.
Save glennschler/7727570 to your computer and use it in GitHub Desktop.
Minecraft

For the Mac [some possible needed tools? try without]

brew update
brew install wget
brew install curl

Setup some directory structure

mkdir minecraft
cd minecraft
mkdir peServer
cd peServer
# download the PHP prebuilt distrubution
wget --content-disposition \
http://sourceforge.net/projects/pocketmine/files/builds/PHP_5.4.19_x86_MacOS.zip/download

# Download the automatic installer
wget --content-disposition \
http://sourceforge.net/projects/pocketmine/files/linux/PocketMine-MP_Installer_Alpha_1.3.10.sh/download

# change the file rights
chmod 0755 PocketMine-MP_Installer_*

#unzip
tar -zxvf PHP*

#cleanup
rm *.zip

#execute to install with the -u option for skip since we downloaded the prebuilt PHP distro
./PocketMine-MP_Installer_Alpha_1.3.10.sh -u

#previous success? Start it up.
./start.sh

#wait for it to start up, and optional "help" for menu
help

#then stop it
stop

#mod the server properties. Choose a good port number, and name
sed -E 's/(max-players=)([0-9]+)/\1**10**/;s/(server-port=)([0-9]+)/\1**64999**/;s/(server-name=)(.*)/\1**YOURNAME Minecraft PE**/' server.properties > /tmp/sed1.txt
cp server.properties server.properties.bak
cp /tmp/sed1.txt server.properties

#maybe copy an old world from a PE device into the **worlds** subdirectory. google it.
#startup again
./start.sh

# startup MineCraftPE from mobile device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment