NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

3D Building Generation in Minecraft via Large Language Models

Shiying Hu, Zengrong Huang, Chengpeng Hu, Jialin Liu

Abstract Recently, procedural content generation (PCG) has exhibited considerable advancements in the domain of 2D game level generation through Large Language Models (LLMs). To further validate the capabilities of LLMs, this paper explores their contribution to the generation of complex 3D structures in the sandbox game Minecraft. We propose the Text to Building in Minecraft (T2BM) model, a framework involving prompt refinement, interlayer representation decoding, and automated repairing. T2BM supports the generation of facades, indoor scenes, and functional blocks such as doors and furniture. Our experiments evaluate the completeness and satisfaction of buildings generated via LLMs, demonstrating that with appropriate prompts, LLMs can generate structurally sound buildings that meet specific human requirements.

Introduction

Procedural Content Generation (PCG) has traditionally relied on rigid templates or complex evolutionary algorithms. While these methods have succeeded in 2D environments (e.g., Super Mario Bros.), 3D environments like Minecraft present a steeper challenge. Generating a 3D building requires more than simple block placement; it necessitates an understanding of spatial hierarchy, structural integrity, and functional utility. This paper, presented at the IEEE Conference on Games, introduces T2BM to bridge the gap between natural language intent and playable 3D architecture.

The T2BM Framework

The T2BM model transforms simple natural language prompts into fully realized 3D buildings through a three-stage pipeline:

1. Input Refining Module

LLMs often struggle with vague instructions. To mitigate this, the Input Refining Module takes a basic user prompt (e.g., "a wooden house") and tasks an LLM with expanding it into a detailed architectural specification. This expanded description includes dimensions, specific materials (such as spruce_planks), and internal layouts, providing a clearer roadmap for the generation phase.

2. Interlayer Representation

Directly generating raw 3D coordinates is highly error-prone for LLMs. T2BM introduces a JSON-based interlayer that acts as a semantic bridge. This schema categorizes blocks into two types:

  • Structural Blocks: Walls, floors, and roofs defined by start and end coordinates for spatial efficiency.
  • Functional Blocks: Interactive elements like doors, beds, and crafting tables, which include "state" data (e.g., orientation).

This structured format allows the LLM to "understand" architectural relationships while remaining parseable by the game engine.

3. Repairing Module

LLMs occasionally hallucinate non-existent block names or produce syntax errors. The Repairing Module acts as a post-processing filter, correcting naming conventions (e.g., changing "Red Bed" to the valid red_bed ID) and ensuring all materials are compatible with the specific Minecraft version in use. The final validated output is then executed via the Generative Design Python Client (GDPC) to place blocks within the game world.

Experimental Evaluation

The researchers evaluated T2BM using a combination of human-crafted prompts and technical descriptions sourced from the Minecraft Wiki. They conducted 50 trials across various configurations, comparing GPT-3.5 and GPT-4 using both raw and refined prompts.

Performance was measured using two primary metrics:

  • Completeness (C): Whether the structure is fully sealed and connected.
  • Satisfaction (S): Whether the generated building contains all materials and features requested by the user.

Key Results

The experiments revealed that GPT-4 is a significantly more capable architect than its predecessors. With refined prompts, GPT-4 achieved a completeness rate of 82% and a satisfaction rate of 48%.

Notably, prompt refinement proved essential for GPT-3.5, which saw its satisfaction rate jump from 8% to 28% when given detailed instructions. GPT-4, however, demonstrated a robust internal model of architectural "common sense," maintaining an 80% completeness rate even when provided with unrefined, "raw" prompts.

Discussion and Insights

  • JSON as a Spatial Bridge: The study confirms that JSON is an ideal middle-ground language—structured enough for computation but semantic enough for LLM reasoning.
  • Structural vs. Functional Separation: By distinguishing between "dumb" structural blocks and "smart" functional blocks, T2BM ensures that generated buildings are not merely sculptures but playable, interactive spaces.
  • The Satisfaction Gap: Despite high structural success, the 48% satisfaction rate indicates that LLMs still struggle to incorporate every specific detail or interior item requested in complex prompts.

Conclusion and Future Work

T2BM demonstrates that LLMs hold significant potential for 3D procedural content generation. While Minecraft provides a perfect voxel-based testbed, future research aims to expand this framework to non-voxel 3D environments. Additionally, the authors plan to explore "self-repairing" mechanisms where the LLM can identify and fix its own architectural errors without external scripts, moving closer to fully autonomous AI architects.

Summary updated

BibTeX
@inproceedings{hu2024d,
  author = {Shiying Hu and Zengrong Huang and Chengpeng Hu and Jialin Liu},
  title = {{3D Building Generation in Minecraft via Large Language Models}},
  booktitle = {CoG},
  year = {2024},
  doi = {10.1109/cog60054.2024.10645539},
}
Figure