
Use getChunkSlicesForBox to compute slices. blockReplaceTable is moved to block_fill.py adjustCopyParameters is moved to block_copy info() was accidentally imported from some unknown module (wat? stop using wildcard imports!) Submodule pymclevel: > 35bbbdc - Refactor: Change log statements to use `log.info()` instead of `info=log.info; info()` > ecac4fa - Refactor: Move fillBlocks into its own file and remove "fillBlocksFinite" implementation. > a7fd3ed - Refactor: Move copyEntitiesFrom logic into copyBlocksFrom and remove "copyEntitiesFromFinite" implementation. > b0ef494 - Test: copyBlocksFrom no longer fails if the requested box is partially out of the source level's bounds. > 459b208 - Indev: Now separates LocalPlayer from Entities on load and reinserts it on save. > 14f5343 - Test: Improve copyConvertBlocks to count entities copied > ea585d7 - Test: test_mcr no longer re-runs TestAnvilLevel. > cf51ef4 - Refactor: infiniteworld.py: Change log statements to use `log.info()` instead of `info=log.info; info()` > f36634b - Refactor: Move copyBlocksFrom and supporting methods to its own file and simplify them. > ded3b8f - Refactor: Remove redundant code for setting an anvil world's Height. > 93ccf9d - Refactor: Change a chunk's Height to reference the Height of its containing world. > fe03b70 - Entities: Fixed Tile positions when copying and rotating ItemFrames
MCEdit
MCEdit is an open-source, BSD-licenced world editor for the viral indie hit Minecraft.
Running from source
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.