Craft using redstone and obsidian as follows:
[] []
[] []
Lay on the ground like so to use:
[] [] [] []
[] [] [] []
Output
[] [] [] []
[] [] [] []
Wiring J and K together creates a T-Flip-Flop
[] []
[] [] []
Output
[] [] [] []
[] [] [] []
Key:
: J
: K
: Clock (send a pulse here to update)
: Redstone
: Redstone torch
input of some kind (such as a button).
Known Issues:
- J, K and C terminals must have a straight redstone wire comming out for 1 block.
- If you create a T-FF, and pulse the Clock the output will be high for 3/4 of the cycle and low for 1/4. It will still be high and low once per two pulses (still good for making push buttons into switches).
Cheers
Twigz
------------------------------------------------
Addition: What is a JK Flip Flop and what does it do?
A JK Flip Flop is a basic circuit that is used to build more complex circuits. What J does is set the output to high (1). What K does is set the output to low (0). The output is set whenever a pulse is sent to the clock port (C). The output is denoted by Q.
Its truth table is as follows:
J K Q
0 0
1 0 1
0 1 0
1 1 Toggle State (If Q = 1, set to zero, if Q = 0, set to 1)
The most useful application in Minecraft is to create a T Flip Flop. This allows you to convert a pulse (such as from a stone button being pressed or a minecart running over a pressure plate) into a single high or low signal (for opening/closing a door, or setting a set of points). A T Flip Flop can be created by either wiring all 3 inputs together (J, K and C), or wiring J and K to high and wiring C to the input.
TheAttendee wrote :
> Mind elaborating on exactly what this does for the people who failed their
> engineering classes?
For starters, it allows you to make T-Flip Flops as stated above (this will be the most useful thing to an average MC player). This basically turns pulses into high/low states. Put one of these between a Button and a door and you've got a button that can open/close the door (as opposed to opening the door to have it shut a second afterwards).
PokemonGuy wrote :
> TheAttendee wrote :
> > Mind elaborating on exactly what this does for the people who failed their
> > engineering classes?
>
> For starters, it allows you to make T-Flip Flops as stated above (this will be the
> most useful thing to an average MC player). This basically turns pulses into high/low
> states. Put one of these between a Button and a door and you've got a button that can
> open/close the door (as opposed to opening the door to have it shut a second
> afterwards).
>
> They can also be used as counters, etc.
Yeah, I know a little about electronics, but that went WAY over my head.
Rollback Post to RevisionRollBack
Cast aside your festive doylaks: dragon stuff is about to happen.
Multiplayer is lonely once you understand how it actually works.
Nice! I haven't downloaded yet, but I definitely plan on using this. You really should set it up so that it has a direction for the output, similar to stairs (for example). I don't know if you've done this yet, but a texture identifying each side would be really cool.
...is there any way to add a clock? If J=K=1, does it just toggle once per tick?
If you make more, please add:
-Clock block (4 pulser, just for more compactness)
-Edge-triggered T Flip Flop.
-Random number generator (each tick, randomly provides power or not.)
Nice! I haven't downloaded yet, but I definitely plan on using this. You really should set it up so that it has a direction for the output, similar to stairs (for example). I don't know if you've done this yet, but a texture identifying each side would be really cool.
...is there any way to add a clock? If J=K=1, does it just toggle once per tick?
If J=K=1 yes it does toggle once per tick. However if toggles on the up slope of the first tick and the down slope of the second tick. I can't figure out why. If you look at the source (BlockJK.java), look up the function doFlipFlop, and think of a more intelligent algorithm, please inform me!
I plan to add a clock block. You can currently make clock circuits by making a circle of NOT gates, but they are buggy on load/reload.
-Edge-triggered T Flip Flop.
This is currently edge-triggered. Just inconsistent edges :tongue.gif:.
-Random number generator (each tick, randomly provides power or not.)
[*:810w0ono]RS NOR flip flop (JK is too complex for me )
[*:810w0ono]" delay" block - a block which delays a redstone current for the exact amount of time that it takes for a to fuse. Great for cannons!
Also, could you make a texture for the circuit blocks which (somehow) shows which input/output is which.
Use a JK with an OR gate. Use S = J and R = K. Also wire both inputs to an OR gate and the output of that to the Clock terminal. Ie:
S --+--- J
|
OR -- C
|
K --+--- K
" delay" block - a block which delays a redstone current for the exact amount of time that it takes for a to fuse. Great for cannons!
I might, depending on how useful this is. This may be achievable with a (future) clock block and a series of T FFs to reduce the frequency of the signal.
Also, could you make a texture for the circuit blocks which (somehow) shows which input/output is which.
I'll do it, but it'll come later.
Lastly, SMP version? please?
First thing on my agenda, apart from 1.2.3_1 compatability. I'm overriding the bookcase block though, not making a new block (so its compatible with unmodded clients, and Minecraft mania).
i...u....i....I LOVE YOU MAN!!! finally somebody made this i've been looking for one just like this for a while now, only 2 things i ask 1) update it for the newest version when he updates tomorrow, and 2) make some more chip/circuits. finally i can use that digital systems class, without having a field of redstone to accompany it!
(a dozen roses, and cookies too, you sir deserve them.)
I've made an block that acts as a JK-Flip-Flop. its 5am here so I'll be brief. If people are interested I may add more features.
The output always faces in a certain direction (I think it may be north).
EDIT: I've looked at the sun, the output terminal is facing the south.
Download:
http://www.snapperthetwig.com/stuff/icjkff.zip
(Contains source files written by me)
Craft using redstone and obsidian as follows:
[] []
[] []
Lay on the ground like so to use:
[] [] [] []
[] [] [] []
Output
[] [] [] []
[] [] [] []
Wiring J and K together creates a T-Flip-Flop
[] []
[] [] []
Output
[] [] [] []
[] [] [] []
Key:
: J
: K
: Clock (send a pulse here to update)
: Redstone
: Redstone torch
input of some kind (such as a button).
Known Issues:
- J, K and C terminals must have a straight redstone wire comming out for 1 block.
- If you create a T-FF, and pulse the Clock the output will be high for 3/4 of the cycle and low for 1/4. It will still be high and low once per two pulses (still good for making push buttons into switches).
Cheers
Twigz
------------------------------------------------
Addition: What is a JK Flip Flop and what does it do?
A JK Flip Flop is a basic circuit that is used to build more complex circuits. What J does is set the output to high (1). What K does is set the output to low (0). The output is set whenever a pulse is sent to the clock port (C). The output is denoted by Q.
Its truth table is as follows:
J K Q
0 0
1 0 1
0 1 0
1 1 Toggle State (If Q = 1, set to zero, if Q = 0, set to 1)
The most useful application in Minecraft is to create a T Flip Flop. This allows you to convert a pulse (such as from a stone button being pressed or a minecart running over a pressure plate) into a single high or low signal (for opening/closing a door, or setting a set of points). A T Flip Flop can be created by either wiring all 3 inputs together (J, K and C), or wiring J and K to high and wiring C to the input.
> Mind elaborating on exactly what this does for the people who failed their
> engineering classes?
For starters, it allows you to make T-Flip Flops as stated above (this will be the most useful thing to an average MC player). This basically turns pulses into high/low states. Put one of these between a Button and a door and you've got a button that can open/close the door (as opposed to opening the door to have it shut a second afterwards).
They can also be used as counters, etc.
> TheAttendee wrote :
> > Mind elaborating on exactly what this does for the people who failed their
> > engineering classes?
>
> For starters, it allows you to make T-Flip Flops as stated above (this will be the
> most useful thing to an average MC player). This basically turns pulses into high/low
> states. Put one of these between a Button and a door and you've got a button that can
> open/close the door (as opposed to opening the door to have it shut a second
> afterwards).
>
> They can also be used as counters, etc.
Yeah, I know a little about electronics, but that went WAY over my head.
Cast aside your festive doylaks: dragon stuff is about to happen.
Multiplayer is lonely once you understand how it actually works.
Alpha 1.0.4
...is there any way to add a clock? If J=K=1, does it just toggle once per tick?
If you make more, please add:
-Clock block (4 pulser, just for more compactness)
-Edge-triggered T Flip Flop.
-Random number generator (each tick, randomly provides power or not.)
My website: http://timeroot.zxq.net/
...I have nothing else to put here, sadly. :-(
If J=K=1 yes it does toggle once per tick. However if toggles on the up slope of the first tick and the down slope of the second tick. I can't figure out why. If you look at the source (BlockJK.java), look up the function doFlipFlop, and think of a more intelligent algorithm, please inform me!
I plan to add a clock block. You can currently make clock circuits by making a circle of NOT gates, but they are buggy on load/reload.
This is currently edge-triggered. Just inconsistent edges :tongue.gif:.
This could be interesting.
So, let me see if I got this right graphically:
C ____/------------\_____/---\________/------
Q ____/-------------------------\________/-----
is that's it's doing, and it should be doing
C ____/------------\_____/---\________/------
Q ____/-------------------------\________/-----
correct?
My website: http://timeroot.zxq.net/
...I have nothing else to put here, sadly. :-(
It should be doing:
C: \_____/--------\______/---------\_____/--------\______/---------
Q: \___________/-------------------\___________/-------------------
Ie, rechecking its state when it C turns on.
What its doing is:
C: \_____/--------\______/---------\_____/--------\______/---------
Q: \__________________/----------\__________________/---------
It has the same functionality for most practical purposes (such as a pressure plate toggled door), just the timing is a bit awkward.
[*:810w0ono]RS NOR flip flop (JK is too complex for me )
[*:810w0ono]" delay" block - a block which delays a redstone current for the exact amount of time that it takes for a to fuse. Great for cannons!
Also, could you make a texture for the circuit blocks which (somehow) shows which input/output is which.
Lastly, SMP version? please?
Use a JK with an OR gate. Use S = J and R = K. Also wire both inputs to an OR gate and the output of that to the Clock terminal. Ie:
I might, depending on how useful this is. This may be achievable with a (future) clock block and a series of T FFs to reduce the frequency of the signal.
I'll do it, but it'll come later.
First thing on my agenda, apart from 1.2.3_1 compatability. I'm overriding the bookcase block though, not making a new block (so its compatible with unmodded clients, and Minecraft mania).
(a dozen roses, and cookies too, you sir deserve them.)