Redstone Additions

* Analog Lever
* Redstone Link
* Pulse Extender
* Pulse Repeater
* Powered Latch

Create adds several components that can be used in Redstone Circuits. These include the Redstone Contact, Redstone Link, Linked Controller, Pulse Repeater, Pulse Extender, Powered Latch, and Powered Toggle Latch. These components can make redstone circuits simpler and smaller as well as giving finer control over timing.

## Usage

### Redstone Link

Redstone links transfer redstone signals across long distances, keeping their redstone signal strength. Receivers will output the strongest redstone strength received from sending links.

To toggle the Redstone Link between Sending and Receiving a signal, hold Shift and right click it or right click with a Wrench. A Redstone Link in Receiving mode will show a signal dish on the antenna. Assign an item or block to at least one of the two frequency slots, and the Redstone Link will only send or receive signals to or from Links with matching frequency slots.

The Redstone Link has a signal strength of a radius of 256 blocks, which does not require line-of-sight and thus can be placed underground, in a separate structure, etc. Note that the Redstone Link seems to have a 'default state' of OFF, and any Redstone Links that are actively receiving when a world is saved will briefly pulse OFF when the world is loaded again; this can cause unintended behaviors in contraptions that rely upon heavily active Links.

Redstone Links can be remotely controlled using the Linked Controller added in Create 0.3.2.

### Analog Lever

Emits a redstone signal with an adjustable strength. Right click to make it higher, shift right click to make it lower.

### Pulse Extender

A Pulse Extender is a redstone device that emits a variable length pulse immediately after receiving a trigger signal. The output is normally off by default and emits a powered pulse when triggered. It can also be inverted to be normally on and emit a negative (power off) pulse. Right-clicking the device toggles it between modes. Regardless of which mode it is in, the device will begin outputting a pulse immediately after detecting the ascending edge (off to on) of a redstone signal. The pulse will remain on as long as the trigger signal is on. The pulse length timer begins counting down only after the device detects a descending edge (on to off) of the trigger signal. Once the device is triggered, additional signal pulses will be ignored until the active pulse is complete.

#### Pulse Length

The pulse length can be changed by placing the crosshairs over the center of the device and moving the scroll wheel on the mouse. Pulse lengths can be set from 2-19 ticks, 1-59 seconds, and 1-30 minutes. The device will accept changes to the pulse length after the ascending edge trigger and before the descending edge trigger. After the descending edge trigger, the device will accept changes that shorten the pulse length but ignore changes that lengthen it.

#### Circuit Behaviors

Similar to a Redstone Repeater, a Pulse Extender acts as a diode transmitting a signal only in one direction. It outputs a signal strength of 15 regardless of the input strength thus behaving as a circuit extender. And it can both power and draw power from opaque blocks.

### Pulse Repeater

A Pulse Repeater is a redstone device that emits a pulse a set delay after receiving a trigger signal. It can also be set to output a redstone signal by default and to emit a negative pulse after the time delay. Right-clicking the device toggles it between positive and negative pulse outputs. Regardless of the type of pulse selected, the device is triggered on the ascending edge of a redstone signal (off to on). Additional trigger signals will be ignored until after the pulse is complete.

#### Delay Settings

The delay can be changed by placing the crosshairs over the center of the device and moving the scroll wheel on the mouse. Delay times can be set from 2-19 ticks, 1-59 seconds, and 1-30 minutes. Once the device is triggered and the delay is counting down, changes to the delay time will not take effect until the currently triggered pulse is done.

#### Circuit Behaviors

Similar to a Redstone Repeater, a Pulse Repeater acts as a diode transmitting a signal only in one direction. It outputs a signal strength of 15 regardless of the input strength thus behaving as a circuit extender. And it can both power and draw power from opaque blocks.

### Powered Latch

A Powered Latch has two inputs (a set and reset) and one output. The side with the redstone torch is the output. The opposite side is the set line. Either of the other two sides can act as the reset line. A pulse to the set line will power the latch which will maintain a powered output until a pulse detected on the reset line. When the output is on, any pulses to the set line will be ignored. When the output is off, any pulses to the reset line will be ignored. Both the set and reset actions are triggered on the ascending edge of the pulse.

#### Continuous Signals

When continuous signals are applied rather than pulses, the behavior of the Powered Latch becomes more complicated. If the output is off when power is applied to the set line, the output will turn on regardless of the state of the reset signal. If the set line is subsequently turned off, then the output will remain on if the reset line is unpowered but will turn off if the reset line is powered. If the output is on when power is applied to the reset line, the output will turn off regardless of the state of the set signal. If the reset line is subsequently turned off, then the output will remain off if the set line is unpowered but will turn on if the set line is powered.

#### Manual Operation

A Powered Latch can also be turned on and off manually whenever the signals to the set and reset line are the same. When they are opposite, the latch is locked in its current state and cannot be changed manually.

#### Circuit Behaviors

Similar to a Redstone Repeater, a Powered Latch can both power opaque blocks and can take signal inputs from opaque blocks.

### Powered Toggle Latch

A Powered Toggle Latch has one input and one output. The output is on the side with the redstone torch. The input is on the opposite side. When a pulse is detected on the input, the power state of the output is toggled (off to on or on to off.) The latch reacts to the ascending edge of the pulse. The latch can also be switched on or off manually regardless of the state of the input signal. Similar to a Redstone Repeater, a Powered Toggle Latch can both power opaque blocks and can take signal inputs from opaque blocks.

## History

* 0.5:
	+ Pulse Extender and Repeater can now be inverted.
	+ Redstone Link range changed to 256.
* 0.4:
	+ Added Pulse Extender.
	+ Adjustable Pulse Repeater functionality given to Pulse Repeater.
* 0.2.4: Redstone link receivers now emit their signal with the level of the strongest transmitter of the same frequency
* 0.2: Added Analog Lever, Powered Latch, Powered Toggle Latch, and Adjustable Pulse Repeater.
* 0.1: Added Pulse Repeaters and Redstone Links