跳到正文

Building Gadget Refined Storage Bridge

作者:r4ai

Adds a bridge allowing Building Gadgets to insert and extract items/fluids from Refined Storage 2 networks.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Building Gadget Refined Storage Bridge

日本語版は README_ja.md を参照してください。

A Kotlin-based mod for NeoForge 1.21.1.

Adds the refined_storage_bridge block. By specifying this block as the bind to inventory target in Building Gadgets 2, the Building Gadget can insert and extract items and fluids from a Refined Storage 2 network.

Prerequisites

Usage

  1. Build a Refined Storage 2 network and connect the refined_storage_bridge block to a cable.
  2. While holding a Building Gadget, right-click the bridge block to bind to inventory.
  3. When placing or exchanging blocks with the Gadget, items will be pulled from the RS network.
  4. Removed blocks are returned to the RS network.

Checking Status

Right-clicking the bridge block with an empty hand shows the current connection state.

| Display | State |
| ————- | —————————————————————- |
| Connected | Successfully connected to the RS network |
| Disconnected | The cable is disconnected or no network was found |
| Inactive | The network does not have enough power |

When power stops or the cable is cut, the bridge immediately halts operation (fail-closed).

Inventory layout rebuilds are batched at most once per ~1 second, even during continuous network updates. Actual item insertion and extraction continue to work normally in the meantime, but there may be a slight delay before the item count and sort order are reflected in the GUI.

Limitations

  • No GUI.
  • Only ItemHandler.BLOCK is used for the connection with Building Gadgets 2 (other interfaces are not supported).
  • Connects to Refined Storage 2 via the official API. Runtime reflection is used only for display conversion of resource names.
  • Owner restrictions and RS security integration are not implemented.

Development

Installation

  1. Run ./gradlew build.
  2. Place the generated jar from build/libs/ into the Minecraft mods/ folder.
build/libs/
├── refined_storage_bridge-<version>.jar         ← place this in mods/
└── refined_storage_bridge-<version>-sources.jar ← sources (optional)

常见问题

Building Gadget Refined Storage Bridge 支持哪些 Minecraft 版本?

Building Gadget Refined Storage Bridge 支持 Minecraft Java 版 1.21.1–26.1,共 12 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Building Gadget Refined Storage Bridge 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分