Page 1 of 1

Indicator lamps

Posted: Fri Feb 14, 2020 9:54 pm
by MrBadDragon
I have reached a blockage!

I want to set up a level meter to record the % of levels of science packs in my buffer using a display of lights. I have 10 lights per item.

What I have done is linked all the buffer chests to an arithmetic combinator set to input any / 10% of the buffer and output any. That gives me a value of each item with a range of 0 to 9 which is what I want.

I then program my lights to light up buy item >= 0, item > 0, item >1 .... this works great.

Where I am stuck is how do i replace the explicit reference to the item so I can set the monitor to read the item from a combinator allowing me to paste the indicator and then set up the item in one place rather than having to program each light?

Re: Indicator lamps

Posted: Fri Feb 14, 2020 10:16 pm
by netmand
- arithmetic combinator to filter the signal to one item (input <item>+0 output:item or color)
- use * at each lamp:
before: item >= 0, item > 0, item >1 ....
after: * >= 0, * > 0, * >1 ....