ModsFinder
CP

Conditional Proxy Mod Initializers

by Feintha

Conditional Proxy Mod Initializers lets a Fabric mod run its startup code only when another specific mod is present, without crashing when it is missing.

FabricClient and serverGNU General Public License v3.0 only1.14 – 1.21

What it does

The library provides a small set of classes for initializing code that depends on other mods. A developer checks whether a named mod exists and registers a proxy initializer that runs in the right stage of loading. Because the mod always loads last, the code can read variables from other mods without race conditions during startup.

Installers only need the library when a mod that relies on it is present. The library runs on client and server, so both sides carry it. Fabric is the only loader supported, with files published for 1.14 – 1.21 and the latest file, 1.0 for 1.21, dated 2024-07-10. The code is licensed under the GNU General Public License v3.0 only and is not open source.

Key features

  1. Conditional initializers

    Code is registered to run only when a named mod is loaded, so optional integrations stay inactive otherwise.

  2. Required mod lists

    The library returns the list of mods a given initializer requires, which helps when checking dependencies at startup.

  3. Initialization state check

    Developers can test whether an initializer has already run, which helps avoid repeated setup work.

  4. Environment and type lookup

    An initializer reports its environment and type, so code can branch between client and server paths.

Compatibility

Latest build for each game version and loader.

1.21.x1 of 1 version with builds
1.211.0
1.20.x7 of 7 versions with builds
1.20.61.0
1.20.51.0
1.20.41.0
1.20.31.0
1.20.21.0
1.20.11.0
1.201.0
1.19.x5 of 5 versions with builds
1.19.41.0
1.19.31.0
1.19.21.0
1.19.11.0
1.191.0
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
1.16.x6 of 6 versions with builds
1.15.x3 of 3 versions with builds
1.14.x5 of 5 versions with builds
ReleaseBetaAlphaNot available

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

Use cases

Optional mod integrations

A mod can hook into another mod's content only when that mod is installed, and skip the hook otherwise.

Setup after other mods load

Code that needs variables from other mods can run after they are available, instead of during early loading.

Datapack reload handling

The mod includes an example of running code on datapack reload, a case where the timing of initialization matters.

Who it’s for: Fabric mod developers who write integrations with optional dependencies and need their startup code to run only when those dependencies are present.

Questions

Does Conditional Proxy Mod Initializers need Fabric API?

No required dependency is listed for Fabric.

Does the library have to be installed on the server?

Yes. Servers that run it need every player to install it too.

Which game versions does the library support?

Files cover 32 release versions 1.14 – 1.21, including 1.20.6 and 1.21, with 1.0 for 1.21 as the latest Fabric file.

In the catalog

Conditional Proxy Mod Initializers is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,770 mods support Minecraft 1.21.

More from Feintha

All projects

Similar mods

What the author says

A simple 5-class mod which adds support for initializing code depending on if a specific mod exists. This mod will always load last, so there is no need to worry about race conditions due to mod load order.
Feintha, on the Modrinth page

Official listing

Owner
Feintha
Published
2024-07-10
Updated on Modrinth
2024-07-10
Facts verified
2026-10-15

Tags