State Cell: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
|availability=Survival | |availability=Survival | ||
|firstver=v4.0.0 | |firstver=v4.0.0 | ||
| | |data=20 | ||
|multipartid=pr_igate | |||
|nameid=None | |||
}} | }} | ||
The '''State Cell''' is a complex | The '''State Cell''' is a complex sequential [[Logic Gate|logic gate]] with 2 inputs and 2 outputs used to create time based logic circuits. | ||
== Obtaining == | == Obtaining == | ||
Line 32: | Line 34: | ||
The State Cell has 2 inputs and 2 outputs. When placed, on the ground, the side facing away from the player and the left sides are the outputs, while the other 2 are the inputs. The front is the '''end state''' output, the left is the '''running''' output, the back is the '''clock start''' input, and the right is the '''clock reset''' input. | The State Cell has 2 inputs and 2 outputs. When placed, on the ground, the side facing away from the player and the left sides are the outputs, while the other 2 are the inputs. The front is the '''end state''' output, the left is the '''running''' output, the back is the '''clock start''' input, and the right is the '''clock reset''' input. | ||
=== Logic === | === Logic === | ||
When the | When the ''clock start'' input is activated, the state cell starts its clock. While the clock is enabled, the ''running'' output remains enabled. Whenever the ''clock start'' or the ''clock reset'' inputs are enabled, the clock goes back to zero and is held there if the clock was running. When the clock reaches the end of its set time value, the ''end state'' output is pulsed, and the clock goes back to zero and is disabled. This time value can be set with the GUI. | ||
=== Applications === | |||
A common application is to stack a bunch of state cells in a row, so one cell's ''end state'' output activates another's ''clock start'' input. A clock with custom intervals can be created this way. | |||
=== Configuration === | === Configuration === | ||
A shift-right-click with a [[Screwdriver|screwdriver]] can flip the state cell horizontally. When flipped, the gate's | A shift-right-click with a [[Screwdriver|screwdriver]] can flip the state cell horizontally. When flipped, the gate's ''running'' and ''clock reset'' inputs swap sides. | ||
=== GUI === | === GUI === | ||
{| | {| |
Latest revision as of 16:50, 17 March 2015
Type |
Multipart block |
---|---|
Physics |
No |
Transparency |
Yes (partial) |
Luminance |
Yes, 7 |
Blast resistance | |
Tool |
Any tool |
Renewable |
Yes |
Stackable |
Yes (64) |
Flammable |
No |
Availability |
Survival |
First appearance | |
Drops |
Itself |
Data value |
dec: 20 hex: 14 bin: 10100 |
Multipart ID |
pr_igate |
The State Cell is a complex sequential logic gate with 2 inputs and 2 outputs used to create time based logic circuits.
Obtaining
Crafting
Ingredients | Crafting recipe |
---|---|
Circuit Plate + Anode + Cathode + Conductive Plate + Silicon Chip + Pointer |
Usage
I/O
The State Cell has 2 inputs and 2 outputs. When placed, on the ground, the side facing away from the player and the left sides are the outputs, while the other 2 are the inputs. The front is the end state output, the left is the running output, the back is the clock start input, and the right is the clock reset input.
Logic
When the clock start input is activated, the state cell starts its clock. While the clock is enabled, the running output remains enabled. Whenever the clock start or the clock reset inputs are enabled, the clock goes back to zero and is held there if the clock was running. When the clock reaches the end of its set time value, the end state output is pulsed, and the clock goes back to zero and is disabled. This time value can be set with the GUI.
Applications
A common application is to stack a bunch of state cells in a row, so one cell's end state output activates another's clock start input. A clock with custom intervals can be created this way.
Configuration
A shift-right-click with a screwdriver can flip the state cell horizontally. When flipped, the gate's running and clock reset inputs swap sides.
GUI
The timer GUI contains a few buttons to edit the timer value, which is show on the top. Several time-based gates share this same GUI. |
History
Version | Changes |
---|---|
v4.0.0 | Added the State Cell. |
Issues
Issues pertaining to "State Cell" are maintained on the ProjectRed Github page. Report issues there.