Counter: Difference between revisions
(Created page with "{{Block |image=Counter_256.png |invimage=Counter |type=Multipart block |dirt=Support block |gravity=No |transparent=Yes <small>(partial)</small> |light=Yes, 7 |tool=any |stack...") |
No edit summary |
||
Line 12: | Line 12: | ||
|availability=Survival | |availability=Survival | ||
|firstver=v4.0.0 | |firstver=v4.0.0 | ||
| | |data=19 | ||
|multipartid=pr_igate | |||
|nameid=None | |||
}} | }} | ||
The '''Counter''' is a | The '''Counter''' is a sequential [[Logic Gate|logic gate]] with 2 inputs and 2 outputs. It is used to count the number of pulses it receives. | ||
== Obtaining == | == Obtaining == | ||
Line 30: | Line 32: | ||
== Usage == | == Usage == | ||
=== I/O === | === I/O === | ||
The Counter has 2 inputs and 2 outputs. When placed, on the ground, the side facing the player is the ''' | The Counter has 2 inputs and 2 outputs. When placed, on the ground, the side facing the player is the '''zero output''', while the side facing away is the '''max output'''. The left side is the '''minus''' input, and the right is the '''plus''' input. | ||
=== Logic === | === Logic === | ||
The gate keeps tract of an internal | The gate keeps tract of an internal count that can either be added to or subtracted with the ''plus'' and ''minus'' inputs. When the count is at its max value, the ''max output'' is activated. When it is zero, the ''zero output'' is enabled. The values of ''increment'', ''decrement'', or ''max'' can be altered with the GUI. | ||
The needle on the gate moves from one output to the other to give a visual estimate as to what the internal count is. | |||
=== Configuration === | |||
A shift-right-click with a [[Screwdriver|screwdriver]] can flip the ''minus'' and ''plus'' inputs. | |||
=== GUI === | === GUI === | ||
{| | {| |
Latest revision as of 16:46, 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: 19 hex: 13 bin: 10011 |
Multipart ID |
pr_igate |
The Counter is a sequential logic gate with 2 inputs and 2 outputs. It is used to count the number of pulses it receives.
Obtaining
Crafting
Ingredients | Crafting recipe |
---|---|
Circuit Plate + Cathode + Conductive Plate + Pointer |
Usage
I/O
The Counter has 2 inputs and 2 outputs. When placed, on the ground, the side facing the player is the zero output, while the side facing away is the max output. The left side is the minus input, and the right is the plus input.
Logic
The gate keeps tract of an internal count that can either be added to or subtracted with the plus and minus inputs. When the count is at its max value, the max output is activated. When it is zero, the zero output is enabled. The values of increment, decrement, or max can be altered with the GUI.
The needle on the gate moves from one output to the other to give a visual estimate as to what the internal count is.
Configuration
A shift-right-click with a screwdriver can flip the minus and plus inputs.
GUI
The Counter GUI contains a few buttons to edit the increment, decrement, or max values. The gates current count is shown at the bottom, labeled state. |
Configuration
A shift-right-click with a screwdriver will flip the minus and plus inputs of the gate.
History
Version | Changes |
---|---|
v4.0.0 | Added the Counter. |
Issues
Issues pertaining to "Counter" are maintained on the ProjectRed Github page. Report issues there.