Modern industrialization FE compat

NeoForge addon for Modern Industrialization. Make MI electric network compatible with FE network.

86

Quick challenge

How far can you run before the mobs catch you?

Modern industrialization FE compat

MI-FE-Compat

Bridges NeoForge Forge Energy (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 | |-----------|----------| | MI → FE | 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 1 EU = 10 FE (`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.

ADS