Mekanism Gas Generator Input Source ​
lua
telem.input.mekanism.gasGenerator (
peripheralID: string,
categories?: string[] | '*'
)
Mod Dependencies
Requires Mekanism and Mekanism Generators.
See the Usage section for a complete list of the metrics in each category.
Name | Type | Default |
---|---|---|
peripheralID | string | nil |
Peripheral ID of the Gas Generator | ||
categories | string[] | "*" | { "basic" } |
List of metric categories to query. The value lua
|
Usage ​
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_gasGenerator', telem.input.mekanism.gasGenerator('right', '*'))
:cycleEvery(5)()
Given a Gas Generator 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 |
---|---|---|
mekgasgen:fuel_filled_percentage | 0.0 - 1.0 | |
mekgasgen:burn_rate | 0.0 - inf | B/t |
mekgasgen:fuel_item_count | 0 - inf | item |
mekgasgen:energy_filled_percentage | 0.0 - 1.0 | |
mekgasgen:production_rate | 0.0 - inf | FE/t |
Advanced ​
Name | Value | Unit |
---|---|---|
mekgasgen:comparator_level | 0 - 15 |
Fuel ​
Name | Value | Unit |
---|---|---|
mekgasgen:fuel | 0.0 - inf | B |
mekgasgen:fuel_capacity | 0.0 - inf | B |
mekgasgen:fuel_needed | 0.0 - inf | B |
Energy ​
Name | Value | Unit |
---|---|---|
mekgasgen:energy | 0.0 - inf | FE |
mekgasgen:max_energy | 0.0 - inf | FE |
mekgasgen:energy_needed | 0.0 - inf | FE |
mekgasgen:max_energy_output | 0.0 - inf | FE/t |