Jump to: navigation, search

Counter

Counter
Counter 256.png
Counter
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

v4.0.0

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
Circuit PlateCathodeCircuit PlateConductive PlateConductive PlatePointerCircuit PlateCathodeCircuit Plate
Counter


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

Gui of a Counter
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.




Cookies help us deliver our services. By using our services, you agree to our use of cookies.