java agent for pre-launch cross-intermediary remapping
Find a file
moehreag 5cb7042038
All checks were successful
Release / release (push) Successful in 1m59s
Automated build / build (push) Successful in 2m4s
bump version
2026-04-02 13:04:23 +02:00
.forgejo/workflows update included gson 2026-02-13 14:30:35 +01:00
api add FlapService allowing mods to add additional mappings 2026-04-02 13:02:03 +02:00
gradle/wrapper catch errors to not crash the game 2026-03-30 11:56:53 +02:00
minecraft add action 2026-02-07 13:41:56 +01:00
src/main add FlapService allowing mods to add additional mappings 2026-04-02 13:02:03 +02:00
.gitignore init project 2026-02-04 22:07:18 +01:00
build.gradle.kts bump version 2026-04-02 13:04:23 +02:00
gradlew catch errors to not crash the game 2026-03-30 11:56:53 +02:00
gradlew.bat init project 2026-02-04 22:07:18 +01:00
LICENSE add license 2026-02-06 23:41:35 +01:00
README.md add readme & fallback config file reading 2026-02-10 17:14:56 +01:00
settings.gradle.kts add FlapService allowing mods to add additional mappings 2026-04-02 13:02:03 +02:00

Flap

A hacky javaagent to remap mods from different intermediaries pre-launch.

Usage

Put this jar to your game directory (not in the mods folder) and add -javaagent:flap-VERSION.jar to your java arguments.

Configuration

Most recent mods contain information about which intermediary they're targeting. However, if such is not the case (f.e. because the build is too old) there are two options to tell flap about it. Otherwise, it will try to remap the mod with all available mappings.

  • Config file

    Place a file at <gamedir>/config/flap/mod_variants.json and structure it like this:

    {
      "modid": "ORNITHE_V1",
      "other-modid": "LEGACY_FABRIC_V1"
    }
    

    Currently supported variants: ORNITHE_V1, ORNITHE_V2, LEGACY_FABRIC_V1, LEGACY_FABRIC_V2, BABRIC, BABRIC_NEW_FORMAT, ANTIQUITY_MC, OFFICIAL.

  • System property

    Flap also checks a system property for each mod it is unable to determine a variant for.
    Property name: flap.intermediary_variant_fallback.<modid>
    Property values: ORNITHE_V1, ORNITHE_V2, LEGACY_FABRIC_V1, LEGACY_FABRIC_V2, BABRIC, BABRIC_NEW_FORMAT, ANTIQUITY_MC, OFFICIAL.
    Unlike the config file values the property values are not case-sensitive.