Advanced Memory Card
一个 Applied Energistics 2 (AE2) 的附加模组,为 AE2 记忆卡注入了两大核心功能:批量配置复制和高级 P2P 隧道管理。
? 特性
? 两种工作模式
该模组将状态存储为物品 NBT 中的“模式”,你可以随时在它们之间切换:
| 模式 |
描述 |
| 复制模式 |
选择一个区域,并将已复制的 AE2 设备配置一次性应用到该区域内的所有 AE2 方块和部件上 |
| 配置模式 (P2P 隧道配置) |
右键点击 P2P 隧道部件以打开 GUI,集中管理和配置网络内的 P2P 隧道 |
? 复制模式
- 批量区域复制:首先复制单个 AE2 设备的配置,然后选择两个对角方块来定义一个区域,并在空气中右键点击以批量应用配置。
- 支持 AE2 方块和部件:处理区域内所有的
AEBaseBlockEntity(ME 控制器、接口、存储总线等)以及 IPartHost 上的所有部件。
- 体积限制保护:如果区域体积超过服务器配置中的
maxCopyVolume(默认 2048 个方块),粘贴操作将被拒绝并显示提示消息,以防止意外选择过大区域导致卡顿。
- 可视化选择框:选择过程实时颜色编码(红色 = 选择第一个点 / 白色 = 选择第二个点 / 绿色 = 准备粘贴),目标方块和超出范围的方块有不同的颜色标识。
- 实时反馈:物品工具提示和聊天栏会显示标记坐标、区域大小以及已粘贴的方块数量。
? 配置模式 (P2P 隧道配置)
右键点击任意 P2P 隧道部件 即可打开配置 GUI,直观地管理当前 AE 网络中的所有 P2P 设备:
- P2P 树状列表:自动扫描网络并按类型/频道分组显示所有 P2P 设备,支持展开/折叠和搜索过滤。
- 详情面板:选中节点后显示其类型、频率、输入/输出角色、连接状态等信息。
- 重命名 / 别名:为单个 P2P 设备设置自定义名称,或为整个频道(频道的输入端)设置别名,以便轻松识别。
- 绑定频率:将选定的 P2P 绑定到特定的 4 位十六进制频率(例如
0A1B)。非 ME 类型的 P2P 会自动智能地确定其输入/输出角色。
- 分配新频道:一键为选定的非 ME P2P 分配全新的空闲频率,并将其设置为输入端。
- 自动配置输入/输出 (仅限 ME P2P):根据外部网络是否连接到 ME 控制器,自动决定 ME P2P 是作为输入还是输出,并自动分配频率。
- 高亮与定位:在世界中高亮显示 P2P 隧道(自身/输入/输出渲染为不同颜色),可选择性地自动转向目标,并向聊天栏发送位置信息和传送链接。
- 跨维度连接:修复了原版客户端仅发送坐标导致无法定位跨维度 P2P 的问题。现在编码携带维度信息,允许正确定位和高亮显示跨维度的 P2P 设备。
⌨️ 模式切换
V 键(默认,可在游戏的控制设置中重新绑定)—— 手持 Advanced Memory Card 时按下可切换模式。
- Shift + 右键点击 —— 快速在两种模式之间切换(在复制模式下,Shift + 右键点击执行原生的 AE2 复制动作,而不是切换模式)。
? 安装
依赖要求
| 依赖项 |
版本 |
| Minecraft |
1.20.1 |
| Forge |
47.4.10 或更高版本 (加载器范围 [47,)) |
| Applied Energistics 2 (AE2) |
15.4.10 或更高版本 ([15.4.10,)) |
| mixinextras |
1.0.0+ (可选,用于 Mixin 增强功能) |
该模组在运行时还依赖于 Jade、GuideME 和 JEI(常见的 AE2 生态系统附加模组;建议安装它们以获得最佳体验)。
步骤
- 从发布页面下载最新的
advanced_memory_card-<version>.jar。
- 将
.jar 文件放入你的 Minecraft mods 文件夹中。
- 确保安装了上述所需的模组。
- 启动游戏,并在“Advanced Memory Card”创造模式标签页中找到该物品。
? 配置
该模组提供了客户端和服务端配置文件(位于 config/ 目录中):
服务端配置 (advanced_memory_card-server.toml)
| 选项 |
默认值 |
描述 |
maxCopyVolume |
2048 |
复制模式中允许的最大区域体积(方块数);更大的选择将被拒绝 |
sendHighlightToChat |
true |
是否在高亮显示 P2P 设备时向聊天栏发送位置信息和传送链接 |
客户端配置 (advanced_memory_card-client.toml)
主要用于个性化 UI 和渲染外观。你可以调整:
- 高亮行为:
rotateHeadOnHighlight(高亮时自动转向头部)、p2pHighlightDurationSec(高亮持续时间,1–60 秒)。
- P2P 树形控件:背景色 / 选中色 / 悬停色、缩进量、行高、图标间距、频道警告阈值、最大名称长度等。
- 详情面板:背景色、标题、标签、值以及状态(未激活 / 未连接 / 已连接)的颜色和布局尺寸。
- 通用按钮 (FlatButton):默认 / 悬停 / 按下 / 文本颜色。
- 复制模式选择框:起点、终点、目标点、超出范围以及三种选择状态的颜色。
- P2P 高亮渲染:自身 / 输入 / 输出颜色。
- 物品颜色:物品基础颜色和着色颜色。
所有颜色均为十六进制值(GUI 类使用 ARGB,渲染类使用 RGB),可直接在配置文件中编辑。
? 快速使用指南
复制模式
- 手持 Advanced Memory Card 并处于复制模式,按住 Shift + 右键 点击源 AE2 设备以复制其配置。
- 右键 点击第一个角块以标记起点(红色)。
- 右键 点击对角块以标记终点(白色);此时进入可粘贴状态(绿色)。
- 右键 点击空气方块,将该配置批量应用到区域内的所有 AE2 设备。
配置模式
- 切换至配置模式,右键 点击任意 P2P 隧道部件以打开配置 GUI。
- 在左侧树状图中浏览/搜索网络的 P2P 设备,选择一个节点可在右侧查看其详细信息。
- 使用详情面板中的按钮进行重命名、绑定频率、分配新频道、自动配置输入/输出、高亮 & 定位等操作。
? 开发与构建(面向开发者)
# 运行客户端(开发环境)
./gradlew runClient
# 构建发布版 jar
./gradlew build
# 生成数据包 / 语言文件
./gradlew runData
- 基于 Forge Gradle 6.x 并使用 Java 17 工具链构建。
- 使用 Mixin (
advanced_memory_card.mixins.json) 扩展 AE2 的 P2PTunnelPart。
- 资源文件由位于
src/main/java/.../datagen 下的数据生成器生成至 src/generated/resources/。
? 许可证
本项目根据 GNU GPL-3.0 许可证开源。
Advanced Memory Card
An Applied Energistics 2 (AE2) add-on mod that supercharges the AE2 Memory Card with two major features: bulk configuration copying and advanced P2P tunnel management.
? Features
? Two Working Modes
The mod stores its state as a "mode" inside the item's NBT, and you can switch between them at any time:
| Mode |
Description |
| Copy Mode |
Select a region and paste a copied AE2 device configuration onto every AE2 block and part inside it at once |
| Config Mode (P2P Tunnel Config) |
Right-click a P2P tunnel part to open a GUI for centrally managing and configuring P2P tunnels within the network |
? Copy Mode
- Bulk region copy: Copy a single AE2 device's configuration first, then select two opposite corner blocks to define a region, and right-click on air to apply the config in bulk.
- Supports AE2 blocks and parts: Every
AEBaseBlockEntity (ME controllers, interfaces, storage buses, etc.) and every part on an IPartHost within the region is processed.
- Volume limit protection: If the region volume exceeds the server config
maxCopyVolume (default 2048 blocks), the paste is rejected with a message to prevent accidental oversized selections and lag.
- Visual selection box: The selection is color-coded in real time (red = pick first point / white = pick second point / green = ready to paste), with distinct colors for the targeted block and out-of-range blocks.
- Real-time feedback: The item tooltip and chat bar display marked coordinates, region size, and the number of blocks pasted.
? Config Mode (P2P Tunnel Config)
Right-click any P2P tunnel part to open the configuration GUI and visually manage all P2P devices in the current AE network:
- P2P tree list: Automatically scans the network and displays all P2P devices grouped by type / channel, with expand/collapse and search filtering.
- Detail panel: Selecting a node shows its type, frequency, input/output role, connection status, and more.
- Rename / alias: Set a custom name for an individual P2P device, or set an alias for an entire channel (the channel's input side) for easy identification.
- Bind frequency: Bind the selected P2P to a specific 4-digit hexadecimal frequency (e.g.
0A1B). Non-ME P2Ps automatically and intelligently determine their input/output role.
- Assign new channel: Assign a brand-new free frequency to the selected non-ME P2P and set it as the input side with one click.
- Auto-configure input/output (ME P2P only): Automatically decides whether an ME P2P should act as input or output based on whether its external network is connected to an ME Controller, and assigns a frequency automatically.
- Highlight & locate: Highlights P2P tunnels in the world (self / input / output rendered in different colors), optionally auto-turns your head toward the target, and sends location info and a teleport link to the chat bar.
- Cross-dimension connections: Fixes the vanilla issue where the client only sent coordinates, making cross-dimension P2Ps impossible to locate. The encoding now carries dimension info, allowing P2P devices to be correctly located and highlighted across dimensions.
⌨️ Mode Switching
V key (default, rebindable in the game's Controls settings) — press while holding the Advanced Memory Card to switch modes.
- Shift + Right-click — quickly switch between the two modes (in Copy Mode, Shift + Right-click performs the native AE2 copy action instead of switching).
? Installation
Requirements
| Dependency |
Version |
| Minecraft |
1.20.1 |
| Forge |
47.4.10 or higher (loader range [47,)) |
| Applied Energistics 2 (AE2) |
15.4.10 or higher ([15.4.10,)) |
| mixinextras |
1.0.0+ (optional, for Mixin enhancements) |
The mod also depends on Jade, GuideME, and JEI at runtime (common AE2-ecosystem add-ons; installing them is recommended for the best experience).
Steps
- Download the latest
advanced_memory_card-<version>.jar from the releases page.
- Place the
.jar file into your Minecraft mods folder.
- Make sure the required mods above are installed.
- Launch the game and find the item under the "Advanced Memory Card" creative tab.
? Configuration
The mod provides both client and server config files (located in the config/ directory):
Server config (advanced_memory_card-server.toml)
| Option |
Default |
Description |
maxCopyVolume |
2048 |
Maximum region volume (block count) allowed in Copy Mode; larger selections are rejected |
sendHighlightToChat |
true |
Whether to send location info and a teleport link to chat when highlighting a P2P device |
Client config (advanced_memory_card-client.toml)
Mainly used to personalize UI and rendering appearance. You can adjust:
- Highlight behavior:
rotateHeadOnHighlight (auto-turn head when highlighting), p2pHighlightDurationSec (highlight duration, 1–60 seconds).
- P2P tree widget: background / selected / hover colors, indent, row height, icon spacing, channel warning threshold, max name length, etc.
- Detail panel: background, title, label, value, and status (not active / not connected / connected) colors and layout dimensions.
- Generic buttons (FlatButton): default / hover / pressed / text colors.
- Copy Mode selection box: colors for start point, end point, targeted point, out-of-range, and the three selection states.
- P2P highlight rendering: self / input / output colors.
- Item color: item base color and tint color.
All colors are hexadecimal values (ARGB for GUI classes, RGB for rendering classes) and can be edited directly in the config files.
? Quick Usage Guide
Copy Mode
- Hold the Advanced Memory Card in Copy Mode and Shift + Right-click a source AE2 device to copy its configuration.
- Right-click the first corner block to mark the start point (red).
- Right-click the opposite corner block to mark the end point (white); it now enters the ready-to-paste state (green).
- Right-click on air to apply the config in bulk to all AE2 devices in the region.
Config Mode
- Switch to Config Mode and right-click any P2P tunnel part to open the configuration GUI.
- Browse / search the network's P2Ps in the left tree, and select a node to view its details on the right.
- Use the detail panel buttons to rename, bind a frequency, assign a new channel, auto-configure input/output, highlight & locate, and more.
? Development & Build (for developers)
# Run the client (dev environment)
./gradlew runClient
# Build the release jar
./gradlew build
# Generate data packs / language files
./gradlew runData
- Built on Forge Gradle 6.x with a Java 17 toolchain.
- Uses Mixin (
advanced_memory_card.mixins.json) to extend AE2's P2PTunnelPart.
- Resource files are produced by the data generators under
src/main/java/.../datagen into src/generated/resources/.
? License
This project is open-sourced under the GNU GPL-3.0 license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧