Analog Gain

Analog Gain
Stackable
Yes(64)

Overview

The Analog Gain is an Analog Gate that multiplies its inputs and outputs the result. The equation for the output Redstone signal (O) based on two input Redstone signals (IA and IB) is:

O = IA × IB

Since Redstone operates on signal levels from 0 to 15, the output signal is capped at 15.

Configuration

The inputs are marked with Pin Mark A and can be configured to face any direction for normal Analog Gain by right-clicking the block.

Parallel Analog Gain

The Analog Gain also has a Parallel Gate variant. In this configuration, the output is determined by finding the greatest signal on the Left and Right sides and then multiplying it by the signal on the Back. The equation for the output Redstone signal (O) based on the input Redstone signals (L, R, and B) is:

O = B × max(L, R)

max(L, R) is the greatest signal between the Left (L) and Right (R) sides.

As always, the output signal is capped at 15.

Parallel Analog Gain
Stackable
Yes(64)

Crafting

Normal Analog Gain

Parallel Analog Gain

Version Log

VersionDescription
0.0.0Introduced. On update from anywhere reads redstone signal only and updates neighbours when output changes.
0.0.1Unlike in the previous version, block first reads the blockstate on the input, and if suitable, uses blockstate value, if not, reads redstone signal.
0.1.1Changed registry name from analog_gain to floor_analog_gain and paralel_analog_gain to floor_parallel_analog_gain. Replaced bottom texture from being that on the top to Smooth Stone Block.
0.2.0Changed registry name from floor_analog_gain to normal_analog_gain and floor_parallel_analog_gain to parallel_analog_gain. Can be placed on walls and ceiling. Updates the block on the output when output changes instead of updating all neighbours. Output data is stored on Block Entity. Lost `rotate` and `mirror` block methods..
0.2.1Reimplemented `rotate` block method.