Regulator

The Regulator is very versatile and can be used for many tasks. This machine can be used in-line, as well as for sorting and filtering among other options.

It will emit a Redstone pulse whenever it ejects items and will provide a constant Redstone signal when the inventory connected to the output side holds at least the amount of items in the output side inventory.

Inventories
The regulator can be considered to have 3 inventories.

Input
This is the left inventory. Items in this inventory determine the kind and amount of items the internal buffer will accept from a tube connected to the block's input side. If used in-line this must be filled or it will not be considered a valid destination.

Internal Buffer
This is the centre inventory. Items are stored here and ejected on the block's output when the items exactly match the input inventory. Items supplied from the sides of the block also enter this inventory, circumventing the input side's rules.

Output
This is the right inventory. Items placed in this slot will enable output only if the connected inventory has fewer items than specified here. Filling those inventories is optional, but the effects can be combined for additional effects. It has 2 modes of operation, which determine output behaviour.



Output Modes
There are two output modes: synchronous and asynchronous.

Synchronous Output
This mode is the default mode and will only eject items on the output side if the internal buffer matches output requirements exactly.

Asynchronous Output
This mode will match each kind of item individually and not wait for the ratio to match.

Trivia

 * The Regulator won't be considered a valid receiver if there is nothing in its input inventory.