Refined Storage Input Source ​
lua
telem.input.refinedStorage (peripheralID: string)
Mod Dependencies
Requires Refined Storage and Advanced Peripherals.
This adapter produces a metric for each item and fluid ID in a Refined 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 RS 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_refined', telem.input.refinedStorage('rsBridge_0'))
:cycleEvery(1)()
Given an RS Bridge peripheral with the ID rsBridge_0
attached to a Refined Storage network with the following items and fluids:
This appends the following metrics to the backplane:
Name | Value | Unit |
---|---|---|
storage:minecraft:lava | 23.81 | B |
storage:minecraft:oak_planks | 3 | item |
storage:minecraft:redstone | 459 | item |