Skip to content

ME Bridge

Picture

Header

The Me Bridge is able to interact with Applied Energistics 2. You can retrieve items, craft items, get all items as a list and more. The Me Bridge uses one channel.

Events

Warning

The crafting event does not work everytime. The crafting event is also barely tested.

Event Name Parameter One Parameter Two Description
crafting "crafting" table job informations or nil Fires when a crafting job is done, cancelled or aborted.

Functions

Most functions uses a table to craft, export or import the item. You can see how these item parameters exactly works at the Item parameters of the ME/RS Bridge page.

Example with exportItem:

1
2
3
4
bridge = peripheral.wrap("meBridge_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
listCraftableFluid() table Returns all craftable fluids.
listFluid() 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 ME System.
getEnergyStorage() int Returns the stored energy of the whole ME System.
getMaxEnergyStorage() int Returns the maximum energy storage of the whole ME System.
getCraftingCPUs() table Returns all connected crafting cpus.
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 getCraftingCPUs()

Picture

Picture of the table from craftItem()

Picture

Example

I made a script to craft items, the computer will re-craft every item needed (a specified amount) in the ME 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 ME Bridge, it has now more features and a new system for the item parameter.

0.3.9b Added the functions import/exportItemFromChest

0.3b Added the ME Bridge with a good amount of features.