HomeJavaModsModern industrialization FE compat
Modern industrialization FE compat
ModsJava

Modern industrialization FE compat

by Nickj1 · on Modrinth

⬇ Download on Modrinth

MI-FE-Compat

Bridges Modern Industrialization (EU) and NeoForge Forge Energy (FE) — allowing FE generators to power MI cables and FE cables to connect to MI machines.


What it does

MI machines only speak the MI energy API (EnergyApi.SIDED). Mods speak NeoForge FE (IEnergyStorage). Without this mod, the two systems are invisible to each other. MI-FE-Compat registers two transparent bridges so energy flows freely in both directions.


Two bridge directions

Direction Use case
FE → MI FE generators (Mekanism, Thermal, etc.) supply power to MI cables
MI → FE FE cables (Mekanism Universal Cable, PowerGrid) connect to MI machines

Both bridges are registered via NeoForge's RegisterCapabilitiesEvent and cached by BlockCapabilityCache — they are created once per block position on cache miss, not every tick. A shared recursion guard (ThreadLocal) prevents infinite loops when the two bridges would otherwise trigger each other.


Configuration

No separate config file. The EU ↔ FE conversion ratio is read directly from Modern Industrialization's own config (forgeEnergyPerEu, default: 1 EU = 10 FE). Changing the ratio in MI's config automatically applies to this mod.


Commands

All commands require permission level 0 (any player).

/mifecompat status
Shows how many bridges have been created for each direction. Use this to verify the mod is working after placing cables.

/mifecompat check
Inspects the 6 blocks adjacent to your position and reports which energy APIs each one exposes: [FE] (NeoForge), [GP] (GrandPower), [MI] (Modern Industrialization).

/mifecompat scan
Scans a 5-block radius around you and lists all energy-capable block types found. Useful for diagnosing why a connection is not forming.


Compatibility

Tested with Modern Industrialization 1.7+, Mekanism, and PowerGrid on NeoForge 21.1 (Minecraft 1.21.1). Any mod that uses standard NeoForge IEnergyStorage should work automatically.

Does not conflict with GrandPower-based bridges already built into MI — this mod only activates for blocks that MI does not natively handle.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more