Mekanism Dynamic Tank Input Source ​
lua
telem.input.mekanism.dynamicTank (
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 Dynamic 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_dynamicTank', telem.input.mekanism.dynamicTank('right', '*'))
:cycleEvery(5)()
Given a Dynamic 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 |
---|---|---|
mekdyntank:filled_percentage | 0.0 - 1.0 | |
mekdyntank:input_item_count | 0 - inf | item |
mekdyntank:output_item_count | 0 - inf | item |
Storage ​
Name | Value | Unit |
---|---|---|
mekdyntank:stored | 0.0 - inf | B |
mekdyntank:fluid_capacity | 0.0 - inf | B |
mekdyntank:chemical_capacity | 0.0 - inf | B |
Formation ​
Name | Value | Unit |
---|---|---|
mekdyntank:formed | 0 or 1 | |
mekdyntank:height | 0 - inf | m |
mekdyntank:length | 0 - inf | m |
mekdyntank:width | 0 - inf | m |
Storage ​
Dynamic tanks may hold either a fluid or a chemical. If the tank is not empty, a storage metric is added for the contents. Given a dynamic tank with the following contents:
The following metric would be added:
Name | Value | Unit |
---|---|---|
storage:tconstruct:molten_ender | 7455.75 | B |