Mekanism Radioactive Waste Barrel Input Source
lua
telem.input.mekanism.wasteBarrel (
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 Radioactive Waste Barrel | ||
categories | string[] | "*" | { "basic" } |
List of metric categories to query. The value lua | ||
Usage
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_wasteBarrel', telem.input.mekanism.wasteBarrel('right', '*'))
:cycleEvery(5)()Given a Radioactive Waste Barrel 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 |
|---|---|---|
mekwastebarrel:filled_percentage | 0.0 - 1.0 |
Storage
| Name | Value | Unit |
|---|---|---|
mekwastebarrel:stored | 0.0 - inf | B |
mekwastebarrel:capacity | 0.0 - inf | B |
mekwastebarrel:needed | 0.0 - inf | B |
Storage
If the barrel contains a chemical, a storage metric is added for the chemical. Given a waste barrel with the following contents:

The following metric would be added:
| Name | Value | Unit |
|---|---|---|
storage:mekanism:spent_nuclear_waste | 491.92 | B |