CmlLib.Core
4.0.6
dotnet add package CmlLib.Core --version 4.0.6
NuGet\Install-Package CmlLib.Core -Version 4.0.6
<PackageReference Include="CmlLib.Core" Version="4.0.6" />
<PackageVersion Include="CmlLib.Core" Version="4.0.6" />
<PackageReference Include="CmlLib.Core" />
paket add CmlLib.Core --version 4.0.6
#r "nuget: CmlLib.Core, 4.0.6"
#:package CmlLib.Core@4.0.6
#addin nuget:?package=CmlLib.Core&version=4.0.6
#tool nuget:?package=CmlLib.Core&version=4.0.6
CmlLib.Core
Minecraft Launcher Library
<img src='https://raw.githubusercontent.com/CmlLib/CmlLib.Core/master/icon.png' width=128>
CmlLib.Core is a Minecraft launcher library for .NET
support all vanilla and mod versions (including Forge, Fabric, etc...)
Features
- Authenticate with Microsoft Xbox account
- Get vanilla versions and installed versions
- Install vanilla versions
- Launch any vanilla version (tested up to 1.21)
- Launch Forge, Optifine, FabricMC, LiteLoader or any other custom version
- Install Java runtime
- Install LiteLoader, FabricMC
- Launch with options (direct server connecting, screen resolution, JVM arguments)
- Cross-platform (Windows, Linux, macOS)
Go to the wiki for all features
Install
Install the CmlLib.Core Nuget package
QuickStart
Get All Versions
using CmlLib.Core;
var launcher = new MinecraftLauncher();
var versions = await launcher.GetAllVersionsAsync();
foreach (var version in versions)
{
Console.WriteLine($"{version.Type} {version.Name}");
}
Launch the Game
using CmlLib.Core;
using CmlLib.Core.ProcessBuilder;
var launcher = new MinecraftLauncher();
var process = await launcher.InstallAndBuildProcessAsync("1.21", new MLaunchOption());
process.Start();
Launch the Game with Options
using CmlLib.Core;
using CmlLib.Core.Auth;
using CmlLib.Core.ProcessBuilder;
var path = new MinecraftPath("./my_game_dir");
var launcher = new MinecraftLauncher(path);
launcher.FileProgressChanged += (sender, args) =>
{
Console.WriteLine($"Name: {args.Name}");
Console.WriteLine($"Type: {args.EventType}");
Console.WriteLine($"Total: {args.TotalTasks}");
Console.WriteLine($"Progressed: {args.ProgressedTasks}");
};
launcher.ByteProgressChanged += (sender, args) =>
{
Console.WriteLine($"{args.ProgressedBytes} bytes / {args.TotalBytes} bytes");
};
await launcher.InstallAsync("1.20.4");
var process = await launcher.BuildProcessAsync("1.20.4", new MLaunchOption
{
Session = MSession.CreateOfflineSession("Gamer123"),
MaximumRamMb = 4096
});
process.Start();
Documentation
Example
Contributors
<a href="https://github.com/cmllib/cmllib.core/graphs/contributors"> <img src="https://contrib.rocks/image?repo=cmllib/cmllib.core" /> </a>
Made with contrib.rocks.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- CmlLib.Core.Commons (>= 4.0.0)
- LZMA-SDK (>= 19.0.0)
- SharpZipLib (>= 1.4.2)
- System.Text.Json (>= 8.0.5)
- System.Threading.Tasks.Dataflow (>= 8.0.1)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on CmlLib.Core:
| Package | Downloads |
|---|---|
|
CmlLib.Core.Installer.Forge
Minecraft Forge Installer |
|
|
CmlLib.Core.Installer.NeoForge
Minecraft Forge Installer |
|
|
Gml.Core
Package Description |
|
|
CmlLib.Core.Installer.Modpack
ModPack Parser for CmlLib |
|
|
CmlLib.Core.Auth.Microsoft.Uno
Minecraft login with Microsoft Xbox account migrated to work with the UnoPlatform |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.6 | 3,298 | 9/24/2025 |
| 4.0.5 | 2,041 | 4/18/2025 |
| 4.0.4 | 1,969 | 1/3/2025 |
| 4.0.3 | 2,141 | 10/29/2024 |
| 4.0.2 | 1,430 | 7/25/2024 |
| 4.0.1 | 390 | 7/22/2024 |
| 4.0.0 | 992 | 7/7/2024 |
| 4.0.0-beta.2 | 324 | 6/9/2024 |
| 4.0.0-beta.1 | 214 | 3/29/2024 |
| 3.3.10 | 1,991 | 3/9/2024 |
| 3.3.9 | 902 | 2/1/2024 |
| 3.3.8 | 2,021 | 10/14/2023 |
| 3.3.7 | 3,986 | 6/26/2023 |
| 3.3.6 | 2,957 | 1/22/2023 |
| 3.3.5 | 10,227 | 12/20/2021 |
| 3.3.4 | 1,231 | 12/13/2021 |
| 3.3.3 | 2,597 | 10/4/2021 |
| 3.3.2 | 1,155 | 9/5/2021 |
| 3.3.1 | 1,611 | 6/22/2021 |
| 3.3.0 | 1,242 | 6/14/2021 |