In conclusion, the modloader field in mods.toml is far from a mere formality. The choice between "neoforge" and "javafml" is a declaration of technical allegiance and a practical key to compatibility. While javafml preserves the legacy of a generation of mods, neoforge opens the door to a cleaner, more forward-looking future. For any mod developer working with Neoforge today, setting the correct value is not just good practice—it is the first step in telling the loader, and the world, exactly what your mod is made of.
In the ecosystem of Minecraft modding, few files are as critical to a mod’s identity as mods.toml . This metadata file, placed inside a mod’s JAR, acts as its passport, telling the game loader who the mod is, what version it needs, and—most critically— how it should be loaded. For mods built on Neoforge, a successor to the legacy Forge API, one line in this file has become a subtle but important source of confusion and precision: modloader . The choice between specifying modloader="neoforge" or modloader="javafml" is not arbitrary; it defines the mod’s technical lineage, its compatibility, and its place in the evolving history of Minecraft modding.
To understand the distinction, one must first recognize that javafml is the legacy value. FML, or the "Forge Mod Loader," has been the engine powering Forge mods since Minecraft’s early days. For nearly a decade, virtually every Forge mod declared modloader="javafml" . This string told the Forge-compatible loader to initialize the mod using the standard FML system, which expects certain entrypoints (like a class annotated with @Mod ) and follows a well-worn lifecycle. When Neoforge forked from Forge in mid-2023, it initially retained compatibility with javafml mods, allowing thousands of existing mods to run unchanged. However, as Neoforge began diverging—removing deprecated APIs, refactoring the core loader, and introducing new features—it became necessary to distinguish between mods designed for the old Forge ecosystem and those built explicitly for Neoforge’s modernized architecture.