Modern industrialization FE compat 图标

Modern industrialization FE compat

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/mifecompat
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: game-mechanics technology utility

资源介绍

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.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Expanded Wildlife

价格:0 墨喵币
下载量:0

查看详情
Elevator

价格:0 墨喵币
下载量:0

查看详情
Skibidi Faister Totem

价格:0 墨喵币
下载量:0

查看详情
CashLife (Season 5 of zLife)

价格:0 墨喵币
下载量:0

查看详情