Abstract
Procedural Content Generation (PCG) in 3D voxel environments requires a delicate balance between aesthetic cohesion and environmental adaptation. This paper presents a multi-stage procedural city generator for Minecraft that prioritizes functional "redstone" aesthetics and terrain integration. By comparing heuristic-based and evolutionary algorithms for building placement, the research demonstrates that evolutionary approaches significantly improve settlement utility in rugged terrains. The resulting system outperforms previous competition winners in terrain adaptation and functional layout.
Introduction
Creating believable settlements in Minecraft is a significant challenge for Procedural Content Generation. Beyond the simple placement of blocks, a successful generator must adapt to varied topographies—including mountains, forests, and water—while ensuring the resulting city is navigable and aesthetically consistent. This research is framed by the criteria of the Settlement Generation Competition for Minecraft (GDMC): adaptation, functionality, narrative, and visual aesthetic.
Existing generators often struggle with the "layout problem"—the challenge of placing buildings without either flattening the entire landscape (poor adaptation) or creating inaccessible structures (poor functionality). This paper explores how optimization algorithms can solve this problem by treating building placement as a cost-reward calculation based on terrain type.
Methodology
The authors developed a six-step pipeline to transform raw Minecraft maps into functional cities:
- Terrain Preparation: A rule-based strategy clears vegetation and performs minimal flattening to create building sites while preserving the natural landscape feel.
- Layout Generation: The core optimization phase. The system evaluates potential layouts based on the costs and rewards of different terrain types (e.g., plains vs. water). Three approaches were tested: a greedy Heuristic-based algorithm, an Evolving Layout (genetic algorithm), and a Random Placement baseline.
- Route Planning: The A* algorithm is employed to connect city gates, monuments, and factories, ensuring the settlement is walkable.
- Infrastructure: K-Means clustering identifies high-density areas for streetlight placement, followed by a breadth-first search to ensure lights are placed on valid blocks.
- Defenses: The system generates defensive perimeters that dynamically adjust their height to match the terrain.
Experimental Setup and Results
The system was evaluated on four distinct Minecraft map types, ranging from flat (60.6% plain) to rugged (25.2% plain). Performance was benchmarked against two top-tier entries from the GDMC 2022 competition: PandaVision and Medieval City.
Algorithm Performance
The study revealed a clear trade-off between speed and complexity. While the heuristic algorithm is sufficient for flat maps, the evolutionary algorithm significantly outperformed other methods on rugged maps. The genetic approach proved more robust at navigating the complex "cost landscape" of hills and valleys, resulting in higher total reward scores for building placement.
User Evaluation
In a study involving six participants, the "Redstone Technique" achieved an overall score of 7.58, placing it just behind the state-of-the-art PandaVision (7.71). Notably, the system excelled in specific categories:
- Adaptation: 7.67 (Beating both benchmarks)
- Functionality: 7.50 (Beating both benchmarks)
Discussion
The "Redstone" aesthetic provides a unique narrative hook, utilizing Minecraft’s internal circuitry to create a "scientific" city style. However, the user study indicated a "Narrative Gap" (7.83 vs PandaVision's 8.67), likely because the redstone components are often hidden inside buildings, making the theme less immediately apparent to observers.
Furthermore, while the A* route planning ensures basic connectivity, some participants noted difficulties with specific movement physics, such as jump-heights and ladder placement. This suggests that future iterations must incorporate a more nuanced understanding of Minecraft's specific navigation constraints.
Conclusion
This research demonstrates that multi-stage procedural generation, particularly when utilizing evolutionary algorithms for layout optimization, can produce Minecraft settlements that are both highly functional and environmentally adaptive. Future work will focus on integrating procedural building generation to increase architectural variety and refining pathfinding algorithms to improve vertical navigation.
Summary updated