API#

Minecraft Interactive World Builder: build in a Minecraft world from Python.

The main entry point is Iwb, which connects to a Minecraft server. The building blocks are Vec3, Direction and Volume in mciwb.geometry, Item in mciwb.item, and polygon() in mciwb.shapes. mciwb.builders has higher level building blocks: roofs, arches, stairways, foundations and schematic files.

Scripts import all of these, and most of the names below, from mciwb.imports. Six of the names below are not in mciwb.imports and are imported from mciwb itself: Backup, MinecraftServer, Palette, PlayerNotInWorldError, set_client() and new_thread().

Read and draw regions with scan() and render() from the mciwb.render module (or from mciwb.imports). They are not imported here, where a function called render would hide the mciwb.render module.

mciwb.__version__: str#

Version number as calculated by pypa/setuptools_scm

Where each name is documented#

Import names from mciwb.imports. Each name is documented once, under the package that defines it, on the pages below.

Page

What is there

mciwb.imports

Every name that mciwb.imports provides, with a link to its documentation, including the two names that come from mcipc.

Connect and world

Iwb, the connection to a world, and the RCON client of each thread.

Positions and boxes

Vec3, Direction, Volume and the anchors.

Items

Item: every block and item of the Minecraft release that mciwb supports.

Shapes

polygon().

Builders

Placer, roofs, arches, columns, stairways, roads, foundations, block states and schematics.

Scan and render

Reading the blocks of a region and drawing them, to check a build.

Server and backups

Running a Minecraft server in a container, and world backups.

Interactive (frozen)

The classes for building by hand from mciwb shell. They are frozen.

Cuboids (frozen)

Blocks, grab() and the JSON files of items. They are frozen: Schematic is their successor.