What mciwb is for#

mciwb is a toolkit for building in a Minecraft Java Edition world from Python scripts.

It began as a project for teaching Python: an interactive prompt, a player in the world, and signs and levers that ran your code. What has worked best since is something else: large worlds built by scripts, many of them written by an AI agent. The castles and The Drowned Station in examples were built that way. mciwb and these documents now follow that use.

What it does#

Runs a server

mciwb start runs a Minecraft server in a Podman container, with no server to install or configure, and mciwb backup and mciwb restore make experiments safe.

Builds from scripts

A script places blocks, boxes and shapes, or whole parts of a building with the builders: roofs, arches, columns, stairways, roads, and foundations that follow the ground. It can copy a piece of the world, turn it, and paste it elsewhere or save it as a schematic file.

Shows the result without the game

mciwb render draws a region to an image with world coordinates along its edges, and a script can read blocks back and check them. That is what lets an agent, which cannot see the game, build something, look at it, and put right what is wrong.

How it works, and what follows#

mciwb sends ordinary Minecraft commands (setblock, fill, clone and the rest) to the server’s remote console, RCON. So:

  • It needs no mods or plugins. It works with an unmodified server, and with any Java Edition server that has RCON switched on.

  • It follows the current Minecraft release. Each mciwb release is tested with one Minecraft release, and its Item list has that release’s blocks.

  • It is fast enough for big builds: one fill command places up to 32768 blocks, and the castle in the examples, about 30,000 commands, takes 10 to 15 seconds to build on the server’s own machine.

  • It can do what commands can do, and no more. It cannot react to events in the game except by asking the server again and again. For game logic, have the script write a datapack, as The Drowned Station does.

What it is not#

  • Not for Bedrock Edition, or Minecraft Education Edition.

  • Not a mod, and not a map editor that changes world files: the server does all the building. mciwb reads the world’s files to draw renders, and zips them for backups.

  • Not a renderer of pretty pictures. Its images are for checking a build: each block is one flat colour, with no textures or lighting.

  • No longer a Python course. The interactive classes still work, but they are frozen (see The interactive shell).