Abstract
EvoCraft is an open-source framework designed to transform Minecraft into a laboratory for open-ended evolution. By providing a gRPC-based Python API for programmatic block manipulation, EvoCraft enables researchers to move beyond teaching AI to play games and toward evolving complex, functional artifacts. This paper details the framework, explores the potential of Minecraft as a "voxel chemistry," and presents initial results in evolving both static structures and autonomous machines.
Introduction
In artificial intelligence, "open-endedness" describes the pursuit of algorithms capable of generating an infinite variety of increasingly complex forms and behaviors, mirroring biological evolution. While AI has mastered competitive games like Chess and StarCraft, the creation of "Artificial Life" (ALife) that evolves sophisticated structures remains a grand challenge. Existing ALife environments often suffer from being either too abstract or too limited in scope to support the emergence of truly complex engineering.
EvoCraft addresses this gap by leveraging Minecraft. Unlike previous research focused on navigation or survival (e.g., Project Malmo), EvoCraft focuses on Minecraft’s generative potential. The game’s finite set of blocks and "redstone" logic components allow for the construction of everything from simple towers to working CPUs, providing a rich environment for algorithmic discovery.
The EvoCraft Framework
The authors introduce a robust interface consisting of a Minecraft server mod and a gRPC-based Python API. This setup allows scripts to perform three primary actions:
- Spawn Blocks: Place specific block types at precise 3D coordinates.
- Read Blocks: Query the environment to perceive existing structures.
- Fill Regions: Efficiently clear or populate large volumes to manage workspaces.
To demonstrate the framework, the researchers employed Evolutionary Strategies (ES) using two distinct "genotype-to-phenotype" encodings. The first, a Neural Network Encoding, uses a Multi-Layer Perceptron (MLP) as a generator to output block probabilities based on 3D coordinates, favoring symmetric, organic shapes. The second, a Ternary Tree Encoding, was utilized for directed growth, where nodes represent blocks and branches dictate the direction of subsequent growth.
Minecraft as a Generative Laboratory
The core philosophy of EvoCraft is viewing Minecraft blocks as a form of "voxel chemistry." Just as a limited set of atoms forms the basis of organic life, Minecraft’s block types can form the basis of complex mechanical and logical systems. The ultimate benchmarks for this framework are the incredible feats of human engineering already present in the Minecraft community.
Structures like functioning Atari 2600 emulators or neural network digit classifiers built entirely out of blocks represent the level of complexity the authors hope evolutionary algorithms will eventually reach. EvoCraft provides the necessary interface for algorithms to attempt these feats of engineering autonomously.
Key Insights and Results
Initial experiments revealed a significant divide between evolving form and function.
- Tower Growth: Using ternary tree encoding, the system successfully evolved towers that reached targets suspended in 3D space. This demonstrated that evolving specific shapes toward a target is relatively straightforward.
- Moving Machines: Evolving functional machines proved far more difficult. While humans can build a "flying machine" with just a few blocks, the evolutionary algorithm struggled to find configurations that could move autonomously, only achieving minute shifts in center of mass.
- Interactive Evolution: The framework supports human-in-the-loop evolution, where a user selects "interesting" shapes. This allowed the system to evolve recognizable features, such as waterfalls, which are difficult to define via traditional mathematical fitness functions.
Performance testing indicated that the API is highly robust, capable of spawning nearly 30,000 blocks simultaneously or simulating over 1,200 moving machines before the server's tick rate begins to degrade.
Limitations and Future Work
The primary hurdle remains the vast search space of Minecraft. Simple fitness-based evolution often plateaus, suggesting that Quality Diversity (QD) algorithms—which reward both performance and novelty—will be essential for future progress. Additionally, the current single-threaded nature of the Minecraft server limits simulation speed. Future work will focus on parallelizing evolution across multiple servers and developing modular genetic encodings that allow the AI to build and reuse components like motors or memory cells.
Summary updated