Mekanism Digital Miner Input Source ​
lua
telem.input.mekanism.digitalMiner (
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 Digital Miner | ||
categories | string[] | "*" | { "basic" } |
List of metric categories to query. The value lua
|
Usage ​
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_digitalMiner', telem.input.mekanism.digitalMiner('right', '*'))
:cycleEvery(5)()
Given a Digital Miner peripheral on the right
side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity):
Basic ​
lua
STATES = { FINISHED = 1, IDLE = 2, PAUSED = 3, SEARCHING = 4 }
Name | Value | Unit |
---|---|---|
mekminer:running | 0 or 1 | |
mekminer:slot_count | 0 - inf | |
mekminer:state | STATES value | |
mekminer:to_mine | 0 - inf | |
mekminer:energy_usage | 0.0 - inf | FE/t |
mekminer:slot_usage | 0 - inf | |
mekminer:energy_filled_percentage | 0.0 - 1.0 |
Advanced ​
Name | Value | Unit |
---|---|---|
mekminer:auto_eject | 0 or 1 | |
mekminer:auto_pull | 0 or 1 | |
mekminer:inverse_mode | 0 or 1 | |
mekminer:inverse_mode_requires_replacement | 0 or 1 | |
mekminer:max_radius | 1 - inf | m |
mekminer:max_y | -inf - inf | |
mekminer:min_y | -inf - inf | |
mekminer:radius | 0 - inf | m |
mekminer:silk_touch | 0 or 1 | |
mekminer:comparator_level | 0 - 15 |
Energy ​
Name | Value | Unit |
---|---|---|
mekminer:energy | 0.0 - inf | FE |
mekminer:max_energy | 0.0 - inf | FE |
mekminer:energy_needed | 0.0 - inf | FE |