Mekanism Fluid Tank Input Source ​
lua
telem.input.mekanism.fluidTank (
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 Fluid Tank | ||
categories | string[] | "*" | { "basic" } |
List of metric categories to query. The value lua
|
Usage ​
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_fluidTank', telem.input.mekanism.fluidTank('right', '*'))
:cycleEvery(5)()
Given a Fluid Tank 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 |
---|---|---|
mekfluidtank:filled_percentage | 0.0 - 1.0 | |
mekfluidtank:input_item_count | 0 - inf | item |
mekfluidtank:output_item_count | 0 - inf | item |
Storage ​
Name | Value | Unit |
---|---|---|
mekfluidtank:stored | 0.0 - inf | B |
mekfluidtank:capacity | 0.0 - inf | B |
mekfluidtank:needed | 0.0 - inf | B |
Storage ​
If the tank contains a fluid, a storage metric is added for the fluid. Given a fluid tank with the following contents:
The following metric would be added:
Name | Value | Unit |
---|---|---|
storage:mekanism:oxygen | 52 | B |