InstallForgeEvent
Fired continuously while Minecraft Forge is installing.
Fields
Section titled “Fields”stageStageCurrent installation phase of the Forge installer process.
gameVersionStringTarget Minecraft version (e.g., 1.20.1).
loaderVersionStringForge loader version being installed (e.g., 47.2.0).
Stage
PREPARINGInitial environment checks and directory setupDOWNLOADING_INSTALLERFetching required installer binariesEXTRACTINGUnpacking Forge libraries into the target directoryRUNNING_INSTALLERExecuting the Forge installer processWRITING_PROFILEUpdating the client launcher profile configurationFINISHEDInstallation completed successfullyFAILEDInstallation encountered an error or was abortedWhen it fires
Section titled “When it fires”ForgeInstallerInjector runs from Launcher.launchMinecraft(...) whenever LaunchConfiguration.loader is a ForgeLoader and the connectivity check earlier in the launch succeeded (Forge is never installed in offline mode - the launch just proceeds assuming Forge is already installed from a previous run). The stages fire in this order:
PREPARING: always first; creates theversions/librariesdirectories.WRITING_PROFILE: only iflauncher_profiles.jsondoesn’t already exist in the game directory. On repeat launches where it’s already there, this stage is skipped entirely.DOWNLOADING_INSTALLER: before fetching the Forge installer JAR and verifying its SHA-1.RUNNING_INSTALLER: before invoking the official Forge installer via reflection to do the actual client install.- Either
FINISHED(install succeeded) orFAILED(a reflective invocation error occurred, followed by a thrownRuntimeException). Exactly one of these always fires last.