MCEdit is an open-source, BSD-licenced world editor for the viral indie hit Minecraft.
MCEdit is written in Python using a variety of open source modules. When developing it is recommended to use virtualenv to keep dependencies sane and for easy deployment. You'll need Python 2.7 and easy_install
/pip
at a minimum before getting started. This quick guide assumes a unix-y OS.
Clone MCEdit:
git clone --recursive https://github.com/mcedit/mcedit
Optionally (but highly recommended), setup and activate virtualenv. virtualenv will simplify development by creating an isolated and barebones Python environment. Anything you install while virtualenv is active won't affect your system-wide Python installation, for example.
cd mcedit
easy_install virtualenv
virtualenv ENV
. ENV/bin/activate
Install various dependencies. This may take a bit (especially numpy). If installing pygame errors, try installing from a binary packages or following one of the guides from that page to install from source. On Windows, easy_install
is preferred because it installs prebuilt binary packages. On Linux and Mac OS X, you may want to use pip install
instead.
easy_install PyOpenGL
easy_install numpy
easy_install pygame
easy_install pyyaml
You should now be able to run MCEdit with python mcedit.py
assuming you've installed all the dependencies correctly.