ME Bridge¶
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.
Requirement
Requires the Applied Energistics 2 mod to be installed
Peripheral Name | Interfaces with | Has events | Introduced in |
---|---|---|---|
meBridge | ME System | Yes | 0.3b |
Failure
You need to place the inventory/tank you want to use to export/import stuff next to the ME Bridge and NOT next to the computer!
Info
If you are playing on 0.7 for the minecraft version 1.21.1 and older, please use the content tab for "1.21.1-0.7 and newer". The following documentation contains the legacy ME and RS bridge features which will be replaced with the next stable AP version.
The newer ME and RS Bridge system will eventually be back ported to 1.20.1 and 1.19.2 with 0.8.
Functions¶
Info
The item arguments(item: table
) accepts our item filters, you can check the syntax of these filters here.
craftItem¶
craftItem(item: table) -> boolean
Tries to craft the provided item
, returns true if it successfully starts crafting.
Item Properties¶
Check the item filters guide for more info!
item | Description |
---|---|
name: string |
The registry name of the item or a tag |
count: number? |
The amount of the item to craft |
nbt: string? |
NBT to match the item on |
OR
item | Description |
---|---|
fingerprint: string |
A unique fingerprint which identifies the item to craft |
count: number? |
The amount of the item to craft |
craftFluid¶
craftFluid(fluid: table, amount: number) -> boolean
Tries to craft the provided fluid
of the given amount
, returns true if it successfully starts crafting.
Fluid Properties¶
Check the fluid filters guide for more info!
fluid | Description |
---|---|
name: string |
The registry name of the fluid or a tag |
count: number? |
The amount of the fluid to craft |
nbt: string? |
NBT to match the fluid on |
OR
fluid | Description |
---|---|
fingerprint: string |
A unique fingerprint which identifies the fluid to craft |
count: number? |
The amount of the fluid to craft |
getItem¶
getItem(item: table) -> table
Returns a table with information about the item type in the system.
Properties¶
result | Description |
---|---|
name: string |
The registry name of the item |
fingerprint: string? |
A unique fingerprint which identifies the item to craft |
amount: number |
The amount of the item in the system |
displayName: string |
The display name for the item |
isCraftable: boolean |
Whether the item has a crafting pattern or not |
nbt: string? |
NBT to match the item on |
tags: table |
A list of all of the item tags |
importItem¶
importItem(item: table, direction: string) -> number
Imports an item
from a container in the direction
to the RS System.
Returns the number of the item
imported into the system.
Since version 0.7r
You can now use both relative (right
, left
, front
, back
, top
, bottom
) and cardinal (north
, south
, east
, west
, up
, down
) directions for the direction
argument.
1 2 3 4 |
|
exportItem¶
exportItem(item: table, direction: string) -> number
Exports an item
to a container in the direction
from the RS bridge block.
Returns the number of the item
exported into the container.
1 2 3 4 |
|
importItemFromPeripheral¶
importItemFromPeripheral(item: table, container: string) -> number
Similar to importItem()
it imports an item
from a container which is connected to the peripheral network.
container
should be the exact name of the container peripheral on the network.
Returns the number of the item
imported from the container.
exportItemToPeripheral¶
exportItemToPeripheral(item: table, container: string) -> number
Similar to exportItem()
it exports an item
to a container which is connected to the peripheral network.
container
should be the exact name of the container peripheral on the network.
Returns the number of the item
exported into the container.
getMaxItemDiskStorage¶
getMaxItemDiskStorage() -> number
Added in version 0.7.3r
Returns the total amount of available item disk storage.
getMaxFluidDiskStorage¶
getMaxItemDiskStorage() -> number
Added in version 0.7.3r
Returns the total amount of available fluid disk storage.
getMaxItemExternalStorage¶
getMaxItemExternalStorage() -> number
Added in version 0.7.3r
Returns the total amount of available external item disk storage.
getMaxFluidExternalStorage¶
getMaxFluidExternalStorage() -> number
Added in version 0.7.3r
Returns the total amount of available external fluid disk storage.
getEnergyStorage¶
getEnergyStorage() -> number
Returns the stored energy of the whole RS System in FE.
getMaxEnergyStorage¶
getMaxEnergyStorage() -> number
Returns the maximum energy storage capacity of the whole RS system in FE.
getEnergyUsage¶
getEnergyUsage() -> number
Returns the energy usage of the whole RS System in FE/t.
getPattern¶
getPattern(item: table) -> table | nil, string
Added in version 0.7.3r
Returns the crafting pattern for the item
if one exists.
Properties¶
pattern | Description |
---|---|
inputs: table |
A list of all the input items |
outputs: table |
A list of all of the output items |
byproducts: table |
A list of any byproduct items |
processing: boolean |
If the pattern is currently being used in crafting |
isItemCrafting¶
isItemCrafting(item: table) -> boolean
Returns true if a crafting job for the item
exists.
isItemCraftable¶
isItemCraftable(item: table) -> boolean
Added in version 0.7.3r
Returns true if the item
is craftable.
listCraftableItems¶
listCraftableItems() -> table
Does not exist in versions >=0.7.3r, <0.7.10b
Returns a list of information about all craftable items
Properties¶
item / fluid | Description |
---|---|
name: string |
The registry name of the item |
fingerprint: string? |
A unique fingerprint which identifies the item to craft |
amount: number |
The amount of the item in the system |
displayName: string |
The display name for the item |
isCraftable: boolean |
Whether the item has a crafting pattern or not |
nbt: string? |
NBT to match the item on |
tags: table |
A list of all of the item tags |
1 2 3 4 5 6 7 |
|
listCraftableFluids¶
listCraftableFluids() -> table
Does not exist in versions >=0.7.3r, <0.7.10b
Returns a list of information about all craftable fluids
listItems¶
listItems() -> table
Returns a list of information about all items in the RS System.
listFluids¶
listFluids() -> table
Returns a list of information about all fluids in the RS System.
Info
If you are playing on 0.7 for the minecraft version 1.20.1 and older, please use the content tab for "1.20.1-0.7 and older". The following documentation also works for the canary 0.8 version.
The new ME and RS Bridge systems will eventually be back ported to 1.20.1 and 1.19.2 with 0.8.
Functionality¶
The RS and ME Bridge now share the same functionality. Check this Guide for the whole documentation for every available feature.
Examples¶
Requester¶
The requester is a successor for the old "Automatic Autocrafting" script which uses the old ME Bridge functions. It currently only works with AP on 1.21.1 or on 1.19.2 0.8 and supports both the ME and the RS Bridge at the same time.
This script automatically schedules crafting jobs for pre-defined items, fluids and mekanism chemicals Do you want 500 glass in your me system at all times? Add glass to the list and the script will craft it for you. No need for level emitters or crafting cards!
You can find instructions on how to install the script here
Automatic Autocrafting¶
This script automatically crafts items in a list. Do you want 500 glass in your me system at all times? Add glass to the list and the script will craft it for you. No need for level emitters or crafting cards!
You can find instructions on how to install the script here
ME Crafting CPUs¶
This script shows you some statistics about the ME crafting cpus.
You can find instructions on how to install the script here
Changelog/Trivia¶
0.7r
The ME Bridge does uses computercraft relative and cardinal directions.
We also changed some function names.
0.4b
Reworked the system of the ME Bridge, it now has more features and a new system for the item
parameter.
0.3.9b
Added the importItem
and exportItem
from container functions.
0.3b
Added the ME Bridge with a good amount of features.