Development Setup

Set up your development environment for creating tModLoader mods.

Installing Visual Studio

Step 1: Download Visual Studio

Download Visual Studio 2022 Community (free) from Microsoft.

Download Visual Studio

Step 2: Select Workloads

During installation, select ".NET desktop development" workload.

Step 3: Install .NET SDK

Make sure .NET 6.0 SDK or newer is installed.

Opening Your Mod Project

1. Create mod in tModLoader "Workshop" → "Develop Mods"
2. Navigate to ModSources folder:
Windows: Documents/My Games/Terraria/tModLoader/ModSources/
3. Open .csproj file in Visual Studio
4. Start coding!

Recommended Extensions

C# Extensions

IntelliSense, code completion

GitHub Copilot

AI code assistance (optional)