Mek AE2 灌注
独立的 Forge 1.20.1 附加模组,用于桥接 Mekanism 和 Applied Energistics 2 的灌注系统。
概览
本模组提供了一个 灌注转换器 (Infusion Converter) 方块,可将物品转换为 Mekanism InfuseType,并集成到 AE2 网络中。它利用 AE2 的模式提供器 (Pattern Provider) 和 Applied Mekanistics 来自动化灌注流水线。
主要特性
- 灌注转换器:将物品转换为 Mekanism InfuseType
- AE2 集成:支持模式提供器以实现自动化合成
- Mekanism GUI:完整的 Mekanism 风格界面,包含能量条和进度指示器
- JEI 支持:注册为
INFUSION_CONVERSION 配方催化剂
- 可升级:支持速度和能量升级
需求
版本兼容性
Mekanism 10.4.x 系列 (1.20.1):
- ✅ 支持 10.4.0 至 10.4.16.80(所有版本)
- 版本范围:
[10.4,10.5)
AE2 15.x 系列 (1.20.1):
- ✅ 支持 15.0.0 至 15.4.10(所有版本)
- 版本范围:
[15,16)
⚠️ 注意:Mekanism 10.5.x 适用于 Minecraft 1.20.4 (NeoForge),10.6.x 适用于 Minecraft 1.21 (NeoForge)。本模组仅支持 Minecraft 1.20.1。
安装
前置条件
- Minecraft Java Edition 1.20.1
- Forge 47.4.10 或更高版本
- Mekanism 10.4.x
- Applied Energistics 2 15.x
步骤
- 下载 最新版本:Releases
- 安装 Forge 1.20.1(如果尚未安装)
- 放置 模组 JAR 文件到
mods/ 文件夹
- 安装 所需的依赖项(Mekanism, AE2)
- 启动 Minecraft 并选择 Forge 配置文件
整合包集成
本模组专为整合包设计。推荐搭配使用的模组:
- Mekanism(必需)
- Applied Energistics 2(必需)
- Applied Mekanistics(推荐用于完整的 AE2-Mekanism 集成)
特性
灌注转换器
本模组的核心方块,负责将物品转换为 Mekanism InfuseType。
合成配方:
AQA
ROR
IFI
其中:
- A = 注入合金 (Infused Alloy)
- Q = 净界石英水晶 (Certus Quartz Crystal)
- R = 红石 (Redstone)
- O = 锇锭 (Osmium Ingot)
- I = 铁锭 (Iron Ingot)
- F = 冶金灌注机 (Metallurgic Infuser)
技术规格:
- 能耗:基础 64 FE/tick(可通过速度升级降低)
- 处理时间:基础 5 秒(可通过速度升级缩短)
- 储罐容量:10,000 mB (InfuseType)
- 储能容量:20,000 FE(可通过能量升级增加)
支持的升级:
GUI
完整的 Mekanism 风格图形用户界面,包含:
- 实时能量条显示
- 处理进度条
- InfuseType 指示器
- 输入/输出槽位
- 能量槽位
- 错误警告指示器
JEI 集成
- 注册为
INFUSION_CONVERSION 配方催化剂
- 显示所有可用的灌注转换配方
- 显示能耗和处理时间
AE2 集成
模式提供器支持
灌注转换器可与 AE2 的模式提供器配合使用,实现自动化合成:
- 创建模式:编码物品到灌注的转换模式
- 连接网络:将模式提供器放置在灌注转换器旁边
- 自动化:AE2 将根据需要自动请求转换
Applied Mekanistics
启用完整的 AE2-Mekanism 集成:
- 导出 InfuseType 到 AE2 网络
- 从 AE2 网络导入物品进行转换
- 自动化灌注流水线
配置
侧面配置
灌注转换器支持 Mekanism 的侧面配置系统:
- 输入侧:物品(可配置)
- 输出侧:InfuseType(可配置)
- 能量侧:能量(可配置)
自动排出
集成的排出组件可以自动将 InfuseType 排入相邻方块。
开发
从源码构建
# 克隆仓库
git clone https://github.com/moyanj/mekae2infusion.git
cd mekae2infusion
# 使用 Gradle 构建
./gradlew build
# 运行客户端进行测试
./gradlew runClient
项目结构
src/
├── main/
│ ├── java/
│ │ └── com/moyan/mekae2infusion/
│ │ ├── client/ # 客户端代码
│ │ │ ├── gui/ # GUI 屏幕
│ │ │ └── jei/ # JEI 集成
│ │ ├── common/ # 公共代码
│ │ ├── content/ # 游戏内容
│ │ │ └── converter/ # 灌注转换器
│ │ └── registry/ # 注册系统
│ └── resources/
│ ├── assets/ # 纹理、模型、语言文件
│ ├── data/ # 配方、战利品表
│ └── META-INF/ # 模组元数据
核心类
InfusionConverterBlockEntity: 核心方块实体逻辑
InfusionConverterScreen: GUI 实现
BridgeJeiPlugin: JEI 集成
ModBlocks: 方块注册
ModBlockEntityTypes: 方块实体注册
API 使用方法
开发者指南
如果您正在开发附加组件或集成:
// 检查 Mekanism 是否已加载
if (ModList.get().isLoaded("mekanism")) {
// 访问 Mekanism API
IMekanismAccess access = IMekanismAccess.INSTANCE;
}
// 安全地访问 JEI 辅助类
try {
var jeiHelper = IMekanismAccess.INSTANCE.jeiHelper();
} catch (IllegalStateException e) {
// JEI 未加载
}
配方类型
MekanismRecipeType.INFUSION_CONVERSION:主要配方类型
ItemStackToInfuseTypeRecipe:转化配方类
贡献
欢迎贡献!请遵循以下步骤:
- Fork 本仓库
- 创建功能分支
- 进行修改
- 添加测试(如适用)
- 提交拉取请求
开发环境设置
- 克隆本仓库
- 导入到 IDE(推荐使用 IntelliJ IDEA)
- 运行
./gradlew genIntellijRuns 配置 IDE
- 使用
./gradlew runClient 进行测试
许可证
本项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。
致谢
- Mekanism Team:提供优秀的科技模组
- Applied Energistics Team:提供网络系统
- Forge Team:提供模组开发平台
- Community:提供反馈与测试支持
支持
相关链接
注意:本模组与 Mekanism 或 Applied Energistics 2 团队无关。它是一个为社区使用而创建的独立附加组件。
Mek AE2 Infusion
Standalone Forge 1.20.1 add-on that bridges Mekanism and Applied Energistics 2 infusion systems.
Overview
This mod provides an Infusion Converter block that converts items into Mekanism InfuseTypes with AE2 network integration. It uses AE2's Pattern Provider and Applied Mekanistics to automate infusion pipelines.
Key Features
- Infusion Converter: Converts items to Mekanism InfuseTypes
- AE2 Integration: Pattern Provider support for automated crafting
- Mekanism GUI: Full Mekanism-style interface with energy bar and progress indicator
- JEI Support: Registered as
INFUSION_CONVERSION recipe catalyst
- Upgradeable: Speed and energy upgrades
Requirements
Version Compatibility
Mekanism 10.4.x series (1.20.1):
- ✅ Supports 10.4.0 to 10.4.16.80 (all versions)
- Version range:
[10.4,10.5)
AE2 15.x series (1.20.1):
- ✅ Supports 15.0.0 to 15.4.10 (all versions)
- Version range:
[15,16)
⚠️ Note: Mekanism 10.5.x is for Minecraft 1.20.4 (NeoForge), 10.6.x is for Minecraft 1.21 (NeoForge). This mod only supports Minecraft 1.20.1.
Installation
Prerequisites
- Minecraft Java Edition 1.20.1
- Forge 47.4.10 or higher
- Mekanism 10.4.x
- Applied Energistics 2 15.x
Steps
- Download the latest release: Releases
- Install Forge 1.20.1 (if not already installed)
- Place the mod JAR file in the
mods/ folder
- Install required dependencies (Mekanism, AE2)
- Launch Minecraft and select the Forge profile
Modpack Integration
This mod is designed for modpacks. Recommended companions:
- Mekanism (required)
- Applied Energistics 2 (required)
- Applied Mekanistics (recommended for full AE2-Mekanism integration)
Features
Infusion Converter
The core block of this mod, converting items into Mekanism InfuseTypes.
Crafting Recipe:
AQA
ROR
IFI
Where:
- A = Infused Alloy
- Q = Certus Quartz Crystal
- R = Redstone
- O = Osmium Ingot
- I = Iron Ingot
- F = Metallurgic Infuser
Technical Specs:
- Energy Cost: 64 FE/tick base (reduced by speed upgrades)
- Processing Time: 5 seconds base (reduced by speed upgrades)
- Tank Capacity: 10,000 mB (InfuseType)
- Energy Capacity: 20,000 FE (increased by energy upgrades)
Supported Upgrades:
- Speed Upgrade: Reduces processing time
- Energy Upgrade: Increases energy capacity
GUI
Full Mekanism-style graphical user interface featuring:
- Real-time energy bar display
- Processing progress bar
- InfuseType indicator
- Input/output slots
- Energy slot
- Error warning indicators
JEI Integration
- Registered as
INFUSION_CONVERSION recipe catalyst
- Displays all available infusion conversion recipes
- Shows energy requirements and processing time
AE2 Integration
Pattern Provider Support
The Infusion Converter works with AE2's Pattern Provider for automated crafting:
- Create Patterns: Encode item-to-infusion conversion patterns
- Connect Network: Place Pattern Provider next to the Infusion Converter
- Automate: AE2 will automatically request conversions as needed
Applied Mekanistics
Enables full AE2-Mekanism integration:
- Export InfuseTypes to AE2 network
- Import items from AE2 network for conversion
- Automate infusion pipelines
Configuration
Side Configuration
The Infusion Converter supports Mekanism's side configuration system:
- Input Side: Items (configurable)
- Output Side: InfuseType (configurable)
- Energy Side: Energy (configurable)
Auto-Eject
Integrated ejector component can automatically output InfuseTypes to adjacent blocks.
Development
Building from Source
# Clone the repository
git clone https://github.com/moyanj/mekae2infusion.git
cd mekae2infusion
# Build with Gradle
./gradlew build
# Run client for testing
./gradlew runClient
Project Structure
src/
├── main/
│ ├── java/
│ │ └── com/moyan/mekae2infusion/
│ │ ├── client/ # Client-side code
│ │ │ ├── gui/ # GUI screens
│ │ │ └── jei/ # JEI integration
│ │ ├── common/ # Common code
│ │ ├── content/ # Game content
│ │ │ └── converter/ # Infusion Converter
│ │ └── registry/ # Registration system
│ └── resources/
│ ├── assets/ # Textures, models, lang files
│ ├── data/ # Recipes, loot tables
│ └── META-INF/ # Mod metadata
Core Classes
InfusionConverterBlockEntity: Core block entity logic
InfusionConverterScreen: GUI implementation
BridgeJeiPlugin: JEI integration
ModBlocks: Block registration
ModBlockEntityTypes: Block entity registration
API Usage
Developer Guide
If you're developing add-ons or integrations:
// Check if Mekanism is loaded
if (ModList.get().isLoaded("mekanism")) {
// Access Mekanism API
IMekanismAccess access = IMekanismAccess.INSTANCE;
}
// Safely access JEI helper
try {
var jeiHelper = IMekanismAccess.INSTANCE.jeiHelper();
} catch (IllegalStateException e) {
// JEI not loaded
}
Recipe Types
MekanismRecipeType.INFUSION_CONVERSION: Primary recipe type
ItemStackToInfuseTypeRecipe: Conversion recipe class
Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests (if applicable)
- Submit a pull request
Development Setup
- Clone the repository
- Import into IDE (IntelliJ IDEA recommended)
- Run
./gradlew genIntellijRuns to configure IDE
- Use
./gradlew runClient for testing
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Mekanism Team: For the excellent tech mod
- Applied Energistics Team: For the network system
- Forge Team: For the modding platform
- Community: For feedback and testing
Support
Links
Note: This mod is not affiliated with Mekanism or Applied Energistics 2 teams. It is an independent add-on created for community use.
评论 0
登录后参与评分
还没有评论,来抢沙发吧