Applied Energistics ME Storage Input Source ​
lua
telem.input.meStorage (peripheralID: string)
Mod Dependencies
Requires Applied Energistics 2 and Advanced Peripherals.
This adapter produces a metric for each item and fluid ID in an ME storage network, with the metric names being the IDs, and the value being the total amount of that item/fluid in storage. Peripheral must be an Advanced Peripherals ME Bridge.
Items that are craftable but not stored are not included in the metrics.
Usage ​
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_me', telem.input.meStorage('meBridge_0'))
:cycleEvery(1)()
Given an ME Bridge peripheral with the ID meBridge_0
attached to an ME storage network with the following items and fluids:
This appends the following metrics to the backplane:
Name | Value | Unit |
---|---|---|
storage:minecraft:lava | 29.25 | B |
storage:minecraft:oak_planks | 3 | item |
storage:minecraft:redstone | 1408 | item |