Mekanism Chemical Tank Input Source ​
lua
telem.input.mekanism.chemicalTank (
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 Chemical 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_chemicalTank', telem.input.mekanism.chemicalTank('right', '*'))
:cycleEvery(5)()
Given a Chemical 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 |
---|---|---|
mekchemtank:fill_item_count | 0 - inf | item |
mekchemtank:filled_percentage | 0.0 - 1.0 | |
mekchemtank:drain_item_count | 0 - inf | item |
Advanced ​
lua
DUMPING_MODES = { IDLE = 1, DUMPING_EXCESS = 2, DUMPING = 3 }
Name | Value | Unit |
---|---|---|
mekchemtank:dumping_mode | DUMPING_MODES value |
Storage ​
Name | Value | Unit |
---|---|---|
mekchemtank:stored | 0.0 - inf | B |
mekchemtank:capacity | 0.0 - inf | B |
mekchemtank:needed | 0.0 - inf | B |
Storage ​
If the tank contains a chemical, a storage metric is added for the chemical. Given a chemical tank with the following contents:
The following metric would be added:
Name | Value | Unit |
---|---|---|
storage:mekanism:ethene | 47 | B |