Allow Forge Installer to install Minecraft 1.13+ with Forge without GUI.
Also, progress percentage can be outputted to parse.
You can embed Forge Installer in your launcher!
This project is based on ForgeWrapper, simplified (remove MultiMC support) and added progress output.
- Download Forge installer for Minecraft 1.13+ here.
- Download ForgeInstallerCLI jar file at the release page.
- Create launcher_profile.json file in install location if not exists. (Write
{}
in the file.) - Run the below command in terminal:
java -jar <ForgeInstallerCLI.jar> --installer <forge-installer.jar> --target <install-location> [--progress]
--installer
: Forge Installer jar file
ex) forge-1.16.5-36.2.2-installer.jar--target
: Minecraft Install Location
ex) %appdata%.minecraft
--progress
: Show progress percentage to output.
default) disabled[Forge Installer] [Progress.Start] Building Processors [Forge Installer] [Progress] 16% [Forge Installer] =============================================================================== [Forge Installer] MainClass: net.minecraftforge.installertools.ConsoleTool
[Forge Installer]
is outputted every output to allow auto parser like launcher to recognize each chunk of lines.[Progress]
is outputted when progress event is fired.[Progress.Start]
/[Progress.Stage]
is outputted when start and stage event is fired.
- Clone this repository.
- Load this project in IntelliJ IDEA.
- Set Java SDK to Java 8. (Java 9+ is not supported.)
- Build this project.