telem
telem copied to clipboard
Pivot middleware
Refactor targeted metrics by swapping their name and a chosen attribute (source, adapter, unit) or a custom static value. This would require a potential refactor allowing name to be a label.
For example:
backplane
:addInput('storage', telem.input.refinedStorage('back'))
:middleware(mw.pivot('unit'))
would produce something like
unit_item = 45 (name = minecraft:cobblestone)
unit_B = 3.12 (name = minecraft:lava)