CmlLib.Core.Installer.Forge 0.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package CmlLib.Core.Installer.Forge --version 0.0.1                
NuGet\Install-Package CmlLib.Core.Installer.Forge -Version 0.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CmlLib.Core.Installer.Forge" Version="0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CmlLib.Core.Installer.Forge --version 0.0.1                
#r "nuget: CmlLib.Core.Installer.Forge, 0.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CmlLib.Core.Installer.Forge as a Cake Addin
#addin nuget:?package=CmlLib.Core.Installer.Forge&version=0.0.1

// Install CmlLib.Core.Installer.Forge as a Cake Tool
#tool nuget:?package=CmlLib.Core.Installer.Forge&version=0.0.1                

CmlLib.Core.Installer.Forge

Minecraft Forge Installer

<img src='https://raw.githubusercontent.com/CmlLib/CmlLib.Core/master/icon.png' width=128>

This is the official package for installing Forge for the CmlLib.Core library.

Features

  • Forge Developer Support! After successfully installing the Forge version, the Forge advertising page will automatically open for you.
  • Automatic change of links to install Forge
  • Installing Forge 1.7.10
  • Installing a legacy version of the type (1.8-1.9.4)
  • Installing the old type version (1.10-1.11.2)
  • Installing a new type of version (1.12 - 1.16.5)
  • Installing the newest version of the type (1.16.5 - 1.20.*)
  • Automatic installation of the Vanilla version of Minecraft before installing Forge
  • Skipping the Forge re-installation

Install

Install the CmlLib.Core Nuget package

or download the DLL files in Releases and add references to them in your project.

Write this at the top of your source code:

using CmlLib.Core.Installer.Forge;
using CmlLib.Core;
using CmlLib.Core.Auth;

Quick start

//var path = new MinecraftPath("game_directory_path");
var path = new MinecraftPath(); // use default directory

var launcher = new CMLauncher(path);

// show launch progress to console
launcher.FileChanged += (e) => Console.WriteLine($"[{e.FileKind.ToString()}] {e.FileName} - {e.ProgressedFileCount}/{e.TotalFileCount}");
launcher.ProgressChanged += (s, e) => Console.WriteLine($"{e.ProgressPercentage}%");

//Initialize variables with the Minecraft version and the Forge version
var mcVersion = "1.12.2"; 
var forgeVersion = "14.23.5.2860";

//Initialize MForge
var forge = new MForge(path, launcher);
var version_name = await forge.Install(mcVersion, forgeVersion); //Use await in the asynchronous method
//OR var version_name = forge.Install(mcVersion, forgeVersion).GetAwaiter().GetResult();

//Start MineCraft
var launchOption = new MLaunchOption
{
  MaximumRamMb = 1024,
  Session = MSession.GetOfflineSession("USERNAME"),
};

var process = launcher.CreateProcess(version_name, launchOption);
process.Start();

You can disable the quick launch feature if the version is already installed:

var forge = new MForge(path, launcher, true);
Product 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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 440 7/7/2024
1.0.0-beta.1 56 6/30/2024
0.0.3 260 4/22/2024
0.0.2 1,370 7/8/2023
0.0.1 183 7/1/2023