ModsFinder

EnvironmentDetector (API)

by FelixFGF

Launcher detection for Fabric mods: EnvironmentDetector is a Fabric library that reports the launcher, modpack, loader and Minecraft version a game runs under.

FabricClient-side onlyMIT LicenseOpen source1.21 – 1.21.11

What it does

A mod that needs to know where it is running can ask EnvironmentDetector for the platform, modpack instance, loader, environment and Minecraft version, and receive the answer through a small developer API. Detection reads the startup arguments of the game, the same information that normally appears in the logs at launch, so a launcher is identified from the JVM arguments, launch paths and runtime parameters it leaves behind. Modrinth-launched instances are recognized because that launcher usually injects Modrinth-related paths and identifiers into the runtime. The library does not depend on process names, which lets it avoid false positives and duplicate detections.

Quilt is handled as its own case. Quilt runs Fabric mods natively, and the library includes dedicated Quilt detection logic so that logs report Quilt instead of plain Fabric. A mod used through a compatibility layer can still detect the environment it runs in. Installation needs Fabric Loader, and the library is client-side only, so servers do not need it. Builds cover the range listed below, and the library is open source under the MIT License, with its source code public.

Key features

  1. Launcher and modpack detection

    Reports the launcher platform and the modpack instance a game was started from.

  2. Loader and version reporting

    Identifies the mod loader, including Quilt when it runs Fabric mods, and the Minecraft version in use.

  3. Runtime-based detection

    Reads startup arguments and launch paths instead of scanning running processes, avoiding false positives.

  4. Placeholder developer API

    A simple API lets other mods read the detected environment information with minimal setup.

Compatibility

Latest build for each game version and loader.

1.21.x12 of 12 versions with builds
1.21.111.0
1.21.101.0
1.21.91.0
1.21.81.0
1.21.71.0
1.21.61.0
1.21.51.0
1.21.41.0
1.21.31.0
1.21.21.0
1.21.11.0
1.211.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Required by 1 mod

Use cases

Who it’s for: Fabric mod developers who need to know the launcher, modpack or loader at runtime, and modpack authors who want accurate environment information in their logs.

How it compares

Full comparison

Death analytics is a client-side Fabric mod for 1.21.1 under All rights reserved, so its files do not cover the full span of this library. PlaceholderMaker is a server-side Fabric mod for 1.21 – 1.21.4 under the GNU General Public License v3.0 only, and it does not target the client-side environment this library uses. Fabric Placeholder is open source under the Mozilla Public License 2.0, runs as an optional client or server mod, and covers rd-132211 – 26.3.

ModLoadersGame versionsEnvironmentUpdated
EnvironmentDetector (API)Fabric1.21 – 1.21.11Client-side only2026-05-29
Death analyticsFabric1.21.1Client-side only2026-06-05
PlaceholderMakerFabric1.21 – 1.21.4Server-side only2025-01-27
Fabric PlaceholderFabricrd-132211 – 26.3Client or server, optional2025-12-07

Questions

Does EnvironmentDetector need Fabric Loader?

Yes. It is a Fabric library, so Fabric Loader must be installed for it to run.

Does a server need to install EnvironmentDetector?

No. Servers do not need it; each player installs it for their own game.

Which Minecraft versions does EnvironmentDetector support?

The latest Fabric file is 1.0 for 1.21.11, and files are published for each release from 1.21 up to 1.21.11.

In the catalog

EnvironmentDetector (API) is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 19,862 mods support Minecraft 1.21.11.

More from FelixFGF

All projects

Similar mods

What the author says

A lightweight and crash-safe Minecraft environment detection API for Fabric, Quilt and modern modpack launchers. The API does NOT deeply modify Minecraft internals and avoids complex mixins for detection logic.
FelixFGF, on the Modrinth page

Official listing

Owner
FelixFGF
Published
2026-05-28
Updated on Modrinth
2026-05-29
Facts verified
2026-10-15

Tags