Project Red - Exploration

Project Red - Exploration

27M Downloads

End-Point Counter

SReject opened this issue ยท 4 comments

commented

Overview:

This logic gate will output a pulse once it has received a user-specified amount of input pulses.

Input, Operation, and Output:

The gate will accept input pulses from only one side. Each time it receives an input pulse it will increase an internal counter by 1. Once this internal counter has reach a user-specified endpoint, the gate will output a 1 redstone tick pulse from the remaining 3 sides and then reset it's internal counter back to 0, so the process can start again.

GUI:

The GUI will be accessed simply by right clicking on the gate. Once accessed the gate should show 2 pieces of information, the first being the current state of the internal counter, the 2nd being the endpoint at which the gate will output a signal then reset.

The current state of the internal counter should have a button to reset the state to 0.

There should also be buttons to increase and decrease the endpoint by 1, 5, and 10.

When the GUI closes, if the Endpoint has been altered in such a way that the current counter state is greater than the endpoint, the internal counter should be reset to 0 but the gate should not output a signal.

Why:

To create this gate with just redstone and the current gates available via Project:Red, requires a space of atleast 2 blocks wide, 3 blocks tall, and 5 blocks long, as seen in this picture:
2013-09-10_17 01 45

Disclaimer: this is a feature request/enhancement, but by no means is me saying I am currently working on it (which is FR's on github usually mean) as I have very little knowledge of java and even less of minecraft or mcforge's basecode.

commented

Perhaps you've not heard of a Counter?

commented

The counter, as you currently have it, accepts pulses until it reaches its max then outputs, but then has to receive the same number of pulses on it's decrement side to completely reset it. The endpoint-counter suggested above, resets back to 0 once it's reached its max.

Another bit of difference is it doesn't have a 'count down' side. Which, though based on the redpower gate of the same name, is actually an end-point adder/subtracter.

commented

Hmm. Lets see. Say you wanted 10 pulses to reach max, then turn back to 0.

Settings:
Max-10
Inc-1
Dec-10

Now connect the output to the minus side.

Done in one gate, doesn't match the gate policy.

commented

Ah, ok. I see how to do it now. Thank you for your time :)