mce module

exception mce.BlockMatchError[source]

Bases: exceptions.RuntimeError

exception mce.PlayerNotFound[source]

Bases: exceptions.RuntimeError

exception mce.UsageError[source]

Bases: exceptions.RuntimeError

mce.main(argv)[source]
class mce.mce[source]

Bases: object

Block commands:

{commandPrefix}clone <sourceBox> <destPoint> [noair] [nowater] {commandPrefix}fill <blockType> [ <box> ] {commandPrefix}replace <blockType> [with] <newBlockType> [ <box> ]

{commandPrefix}export <filename> <sourceBox> {commandPrefix}import <filename> <destPoint> [noair] [nowater]

{commandPrefix}createChest <point> <item> [ <count> ] {commandPrefix}analyze

Player commands:
{commandPrefix}player [ <player> [ <point> ] ] {commandPrefix}spawn [ <point> ]
Entity commands:
{commandPrefix}removeEntities [ <EntityID> ] {commandPrefix}dumpSigns [ <filename> ] {commandPrefix}dumpChests [ <filename> ]
Chunk commands:
{commandPrefix}createChunks <box> {commandPrefix}deleteChunks <box> {commandPrefix}prune <box> {commandPrefix}relight [ <box> ]
World commands:
{commandPrefix}create <filename> {commandPrefix}dimension [ <dim> ] {commandPrefix}degrief {commandPrefix}time [ <time> ] {commandPrefix}worldsize {commandPrefix}heightmap <filename> {commandPrefix}randomseed [ <seed> ] {commandPrefix}gametype [ <player> [ <gametype> ] ]
Editor commands:
{commandPrefix}save {commandPrefix}reload {commandPrefix}load <filename> | <world number> {commandPrefix}execute <filename> {commandPrefix}quit
Informational:
{commandPrefix}blocks [ <block name> | <block ID> ] {commandPrefix}help [ <command> ]
IMPORTANT

{commandPrefix}box

Type ‘box’ to learn how to specify points and areas.

batchMode = False
commandUsage(command)[source]

returns usage info for the named command - just give the docstring for the handler func

commands = ['clone', 'fill', 'replace', 'export', 'execute', 'import', 'createchest', 'player', 'spawn', 'removeentities', 'dumpsigns', 'dumpchests', 'createchunks', 'deletechunks', 'prune', 'relight', 'create', 'degrief', 'time', 'worldsize', 'heightmap', 'randomseed', 'gametype', 'save', 'load', 'reload', 'dimension', 'repair', 'quit', 'exit', 'help', 'blocks', 'analyze', 'region', 'debug', 'log', 'box']
debug = False
last_played = None
level = None
loadWorld(world)[source]
needsSave = False
static prettySplit(command)[source]
printUsage(command='')[source]
printUsageAndQuit()[source]
processCommand(command)[source]
random_seed = None
readBlockInfo(command)[source]
static readBlocksToCopy(command)[source]
readBox(command)[source]
static readInt(command)[source]
readIntPoint(command, isPoint=True)[source]
readPoint(command, isPoint=True)[source]
run()[source]