Skip to content

RS Bridge

Picture

Header

The Rs Bridge is able to interact with Refined Storage. You can retrieve items, craft items, get all items as a list and more.

Events

No events.

Functions

Most functions uses a table to craft, export or import the item. You can define NBT values, the amount and the name of the item. You can use the command /advancedperipherals getHashItem with an item in your hand to get the MD5 hash of the NBT tags of the item. The MD5 hash for the protection I book is ae70053c97f877de546b0248b9ddf525.

Example with exportItem:

1
2
3
4
bridge = peripheral.wrap("rsBridge_0") -- Define the peripheral

bridge.exportItem({name="minecraft:enchanted_book", count=1, nbt="ae70053c97f877de546b0248b9ddf525"}, "UP")
-- Exports an protection I book to the chest above the me bridge.
Function Returns Description
listCraftableFluids() table Returns all craftable fluids.
listFluids() table Returns all stored fluids.
listCraftableItems() table Returns all craftable items.
listItems() table Returns all items.
isItemCrafting(table item) boolean Returns true if a job for the item already exists.
getItem(table item) table Returns a table with information of the item.
getEnergyUsage() int Returns the energy usage of the whole RS System.
getEnergyStorage() int Returns the stored energy of the whole RS System.
getMaxEnergyStorage() int Returns the maximum energy storage of the whole RS System.
craftItem(table item) table Crafts an item.
exportItem(table item, string directions) int Exports an item to a chest in the direction of the block. Valid directions are "up", "down", "north", "west", "east" and "south".
importItem(table item, string directions) int Imports an item to the me system from the chest in the direction of the block. Valid directions are "up", "down", "north", "west", "east" and "south".
exportItemToChest(table item, string chest) int Exports an item to a chest (every inventory tile entity should work) which is connected to the peripheral network.
importItemFromChest(table item, string chest) int Imports an item to a chest(every inventory tile entity should work) which is connected to the peripheral network.

Screenshots

Picture of the table from listItems()

Picture

Picture of the table from listCraftableItems()

Picture

Example

I made a script to craft items, the computer will re-craft every item needed (a specified amount) in the RS system. Everything is adjustable.

Script: Click here

Bug

This script does not work on version above 0.4b

Screenshot: Picture

Changelog/Trivia

0.4b Reworked the system of the RS Bridge, it has now more features and a new system for the item parameter.

0.3.9b Added the functions import/exportItemFromChest

0.3.6b Added the RS Bridge with a good amount of features.