Mekanism Mechanical Pipe Input Source ​
lua
telem.input.mekanism.mechanicalPipe (
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 Mechanical Pipe | ||
categories | string[] | "*" | { "basic" } |
List of metric categories to query. The value lua
|
Usage ​
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_mechanicalPipe', telem.input.mekanism.mechanicalPipe('right', '*'))
:cycleEvery(5)()
Given a Mechanical Pipe 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 |
---|---|---|
mekpipe:filled_percentage | 0.0 - 1.0 |
Transfer ​
Name | Value | Unit |
---|---|---|
mekpipe:buffer | 0.0 - inf | B |
mekpipe:capacity | 0.0 - inf | B |
mekpipe:needed | 0.0 - inf | B |