Conditional Proxy Mod Initializers
⚪ Last updated 2024⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
🖼️ Gallery (1 images)
🔍 Analysis
- 👍 0.2% endorsement rate
- 🏆 #65 of 220 cursed mods in this game by downloads
📋 About This Mod
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.
Code and variables must be available before or during any mod initialization stages (ie cannot be done on datapack reload for example)
Usage: ```java
// Inside main ModInitializer, ClientModInitializer, or any class that gets called at some point during Fabric init
// For running an instance of a ModInitializer: ConditionalModInitializer myConditionalModInitializer = new ConditionalModInitializer. Builder().mods("some-mod").initializer(SomeOtherInitializer.class).build();
// For running any unspecified code:
ConditionalModInitializer myConditionalRunner = new ConditionalModInitializer. Builder().mods("some-other-mod").found(() -> { // Code goes here }).build(); public void onInitialize() { ConditionalModInitializer.create().mods("some_mod").required_mods("some_other_dependency_mod").initializer(AnotherInitializer.class).build(); }
* NOTE: new ConditionalModInitializer. Builder() MUST be assigned to a variable, or be called inside a function to work! Static declaration ( `static{}` will NOT work!)
Docs:
- ConditionalModInitializer
- `create()` -> Returns a new Builder() instance. (Same as running `new ConditionalModInitializer. Builder()`)
- `mods()` -> List
- ConditionalModInitializer. Builder
- - `mods(String...)` : Appends to the list of mods that will allow this initializer to run
- - `required_mods(String...)` : Appends to the list of required mods for this initializer
- - `environment(ExtendedEnvType)` : Sets the environment of the initializer (Default: `ExtendedEnvType. SERVER` : ModInitializer)
- - `found(Runnable)` : Code to execute if the mod is found
- - `initializer(Class
)` : Initializer to run if the mod is found - - `mainInitializer(Class
)` : Initializer to run if the mod is found - - `clientInitializer(Class
)` : Initializer to run if the mod is found - - `serverInitializer(Class
)` : Initializer to run if the mod is found - - `build()` : Returns the finalized ConditionalModInitializer
📊 Mod Details
- Game
- Minecraft Mods
- Author
- Feintha
- Version
- 1.0
- Downloads
- 552
- Endorsements
- 1
- Category
- cursed
- Created
- 7/10/2024
- Updated
- 7/11/2024
- Game Versions
- 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4
- Tags
- cursed, library, utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does Conditional Proxy Mod Initializers support?
The author lists 1.14, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.15. Other versions may work but are untested by the author.
What is the latest version of Conditional Proxy Mod Initializers?
Version 1.0, published 2024-07-11 with 552 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await
