Mekanism Bin Input Source ​
lua
telem.input.mekanism.bin (
peripheralID: string,
categories?: string[] | '*'
)
Mod Dependencies
Requires Mekanism.
See the Usage section for a complete list of the metrics in each category.
Name | Type | Default |
---|---|---|
peripheralID | string | nil |
Peripheral ID of the Bin | ||
categories | string[] | "*" | { "basic" } |
List of metric categories to query. The value lua
|
Usage ​
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_bin', telem.input.mekanism.bin('right', '*'))
:cycleEvery(5)()
Given a Bin peripheral on the right
side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity):
Basic ​
Name | Value | Unit |
---|---|---|
mekbin:stored | 0 - inf | item |
mekbin:capacity | 0 - inf | item |
Storage ​
If the bin contains items, a storage metric is added for the item. Given a bin with the following contents:
The following metric would be added:
Name | Value | Unit |
---|---|---|
storage:minecraft:lime_concrete_powder | 71 | item |