Mnemonic Bulb - hjake123/reactive GitHub Wiki
Version 9+ only
The Mnemonic Bulb is an organic memory cell which can repeat sequences of redstone signals.
Obtaining
Mnemonic Bulbs can appear when Psychic Lichen grows as a response to a player with experience making contact with it.
Usage
Mnemonic Bulbs exhibit behavior based on which of a few states they are in. When initially placed, a Bulb will be in the "Empty" state. If a Bulb is broken after a sequence is recorded to it, the sequence will be saved to its dropped item, and it will enter the "Disabled" state when placed back down instead.
The Bulb can store up to 256 runs of up to a minute each of analog redstone signal.
States
Empty
In this state, the entire Bulb is purple.
When provided a strong redstone signal, it will transition to the "Recording" state.
Recording
In this state, the lower lights on the Bulb will pulse on and off.
From now, the Bulb begins to record every change in redstone signal that it receives as a sequence of signal strengths and durations. If the bulb is given an electrical charge (via a Volt Cell below it) or it is left with a signal of 0 for more then one minute, it stops recording and transitions to either the "Disabled" or "Replaying" state depending on if there is a Volt Cell below it.
Disabled
In this state, the Bulb looks identical to an "Empty" bulb.
If provided a strong redstone signal, it will clear its memory and return to the "Recording" state. If provided with an electrical charge, it will instead transition to "Replaying".
Replaying
In this state, the Bulb's upper light is green and its lower lights blink with its recorded sequence.
It will play back the sequence on loop until it is either broken or has the Volt Cell removed from below it, at which point it will transition to "Disabled".