Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Minecraft-Community-Edition/client/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This guide will help you set up your development environment to build and contribute to Minecraft Community Edition.Prerequisites
Required Tools
Before you begin, ensure you have the following installed:- Visual Studio (2015 or later recommended)
- Windows SDK (for platform-specific development)
- Git (for version control)
Platform-Specific Requirements
The project includes platform-specific builds:- Durango: Xbox-specific development tools
- Windows: Standard Windows development environment
The solution file
MinecraftConsoles.sln contains the main project configuration.Setup Instructions
Open the solution
Open
MinecraftConsoles.sln in Visual Studio. This solution contains two main projects:Minecraft.Client- Client-side code and renderingMinecraft.World- Game logic, world generation, and entities
Configure build settings
Select your target platform and configuration:
- Configuration: Debug or Release
- Platform: Choose based on your target platform
Restore dependencies
Visual Studio should automatically restore any required dependencies. If not, right-click the solution and select “Restore NuGet Packages” (if applicable).
Build the project
Build the solution:
- Press
Ctrl+Shift+Bor - Select Build > Build Solution from the menu
Project Structure
Understanding the project structure:IDE Configuration
Visual Studio Settings
Recommended Visual Studio settings:-
Editor:
- Tab size: 4 spaces (tabs, not spaces)
- Enable line numbers
- Enable code folding
-
Build:
- Enable parallel build
- Treat warnings as errors: No (but avoid introducing new warnings)
-
Debugging:
- Enable Just My Code debugging
- Set working directory to appropriate platform output
Extensions (Optional)
Consider installing these Visual Studio extensions:- Visual Assist (for better C++ IntelliSense)
- Resharper C++ (for code analysis)
- CodeMaid (for code cleanup)
Common Issues
Build Errors
If you encounter build errors:- Ensure you have the correct Windows SDK installed
- Check that all project dependencies are available
- Clean the solution (
Build > Clean Solution) and rebuild - Verify your Visual Studio version is compatible
Missing Headers
If you see missing header errors:- Check that all include paths are correctly configured
- Verify platform-specific SDKs are installed
- Ensure the
stdafx.hprecompiled header is building correctly
Platform-Specific Issues
For Durango (Xbox) builds:- Install the Xbox development SDK
- Configure the appropriate development kit
- Set up the correct deployment target
Next Steps
Once your environment is set up:- Review the Code Style Guide
- Familiarize yourself with the codebase
- Read the Pull Request Process
- Start contributing!