Fabric Installer

Install Fabric mod loader

Get Minecraft versions

var fabricInstaller = new FabricInstaller(new HttpClient());
var versions = await fabricInstaller.GetSupportedVersionNames();

foreach (var version in versions)
{
    Console.WriteLine(version);
}

Get Fabric versions

var fabricInstaller = new FabricInstaller(new HttpClient());
var versions = await fabricInstaller.GetLoaders("1.20.6");

foreach (var version in versions)
{
    Console.WriteLine(version.Version);
}

Install

var path = new MinecraftPath();
var launcher = new MinecraftLauncher(path);

var fabricInstaller = new FabricInstaller(new HttpClient());

// install the latest fabric loader for 1.20.4
var versionName = await fabricInstaller.Install("1.20.4", path);

// install the specific fabric loader
var versionName = await fabricInstaller.Install("1.20.4", "0.16.0", path);

Last updated