Can a redstone latch in Minecraft Java Edition be supplemented with a toggle function?

[BACK]
Can a redstone latch in Minecraft Java Edition be supplemented with a toggle function?
Posted On: April 3, 2023

SR latches and T-flip-flops are trivial circuitry in Minecraft redstone, but it appears that there is little to be found for a circuit that combines both, allowing for both SR and T functionality.


I envision an SR-T latch to have set, reset, and toggle inputs respectively, but all connected to the same memory cell. This means that the output can be controlled by setting it, resetting it, and toggling it all at once. Just like an SR latch, pressing S or R when the cell is already in that state should do nothing.


All of my circuitry so far has been "unclean" implementations, either a bodged wiring to add a toggle to an SR latch, or bodged wiring to add SR inputs to a T-flip-flop. What is the best way to go about making such a latch?


See also: Same question for Bedrock Edition (originally one question; separated upon request from others).


Question from user KnowledgeIsPower at gaming.stackexchange.com.


Answer:

I have managed to create a compact design for this so-called “SRT latch:”.


This circuit uses a T-flip-flop as its base. The T-flip-flop's output is used to activate pistons that complete a circuit from the corresponding S/R input to the toggle input. This effectively treats the S/R buttons as “conditional toggles.”.


This circuit is compact, simple, and uses its space effectively with a symmetrical layout. At its bare minimum, the footprint of this circuit is 5×3×2, excluding the space taken by the inputs and outputs.


Upon further thought, it turns out that this circuit is, in essence, a JK flip flop, the only difference being that the toggle function is controlled by a separate input, rather than with both inputs being on at once. This could theoretically render this design as one of the most compact JK flip flop designs in Minecraft.


This circuit is likely to work on MCBE, but has not yet been tested. I will transcribe this answer to the other question if I can confirm its functionality.


Answer from user KnowledgeIsPower at gaming.stackexchange.com.



[BACK]
Can a redstone latch in Minecraft Java Edition be supplemented with a toggle function?
Posted On: April 3, 2023

SR latches and T-flip-flops are trivial circuitry in Minecraft redstone, but it appears that there is little to be found for a circuit that combines both, allowing for both SR and T functionality.


I envision an SR-T latch to have set, reset, and toggle inputs respectively, but all connected to the same memory cell. This means that the output can be controlled by setting it, resetting it, and toggling it all at once. Just like an SR latch, pressing S or R when the cell is already in that state should do nothing.


All of my circuitry so far has been "unclean" implementations, either a bodged wiring to add a toggle to an SR latch, or bodged wiring to add SR inputs to a T-flip-flop. What is the best way to go about making such a latch?


See also: Same question for Bedrock Edition (originally one question; separated upon request from others).


Question from user KnowledgeIsPower at gaming.stackexchange.com.


Answer:

I have managed to create a compact design for this so-called “SRT latch:”.


This circuit uses a T-flip-flop as its base. The T-flip-flop's output is used to activate pistons that complete a circuit from the corresponding S/R input to the toggle input. This effectively treats the S/R buttons as “conditional toggles.”.


This circuit is compact, simple, and uses its space effectively with a symmetrical layout. At its bare minimum, the footprint of this circuit is 5×3×2, excluding the space taken by the inputs and outputs.


Upon further thought, it turns out that this circuit is, in essence, a JK flip flop, the only difference being that the toggle function is controlled by a separate input, rather than with both inputs being on at once. This could theoretically render this design as one of the most compact JK flip flop designs in Minecraft.


This circuit is likely to work on MCBE, but has not yet been tested. I will transcribe this answer to the other question if I can confirm its functionality.


Answer from user KnowledgeIsPower at gaming.stackexchange.com.



[BACK]

What is the meaning of the blue icon at the right-top corner in Far Cry: New Dawn? What is the meaning of the blue icon at the right-top corner in Far Cry: New Dawn?

Posted On: August 22, 2023
What is the meaning of the blue icon at the right-top corner in Far Cry: New Dawn? Question from user ÇaÄŸatay KAYA at stackexchange. Answer: These are "Far Cry Credits", a...[More]


In Beat Saber how do I disable TinyTAN avatars on BTS songs? In Beat Saber how do I disable TinyTAN avatars on BTS songs?

Posted On: March 3, 2023
Sometimes while playing Beat Saber's BTS Music Pack, TinyTAN avatars will appear mid-song and start flying around. The extra distraction makes it difficult to play Expert or Expert+ tracks. Is ...[More]


Emperor is completly justified Emperor is completly justified

Posted On: December 30, 2025
Many people treat him like heartless tyrant and view him as hypocrite, tyrant who demands full obedience and blind trust. He does give you the reason to trust him and if you do, you succeed. You survi...[More]


Storyline of Hogwarts Legacy Storyline of Hogwarts Legacy

Posted On: April 7, 2023
Did anyone else feel like the storyline of the entire game was too weak? Like I loved the game and its beautiful creation of the world of Hogwarts but the main storyline about the ancient magic, ranro...[More]


How many dead horses will the Horse God, Malanya, remember? How many dead horses will the Horse God, Malanya, remember?

Posted On: August 15, 2023
After paying to unlock Malanya, the Horse God, you can revive horses that you had boarded that have reached a state of no longer living. Is there some kind of limit on how many horses are available to...[More]


Where to get Spring Heeled double-jump Trinket? Where to get Spring Heeled double-jump Trinket?

Posted On: July 19, 2023
I just beat the first mission Ubiquity (Wenjie) Visionary. For some reason, I sacrificed the Spring Heeled double-jump Trinket. Now I want to go on to the second mission Chaos Theory (Harriet) Visiona...[More]


Lost connection in clan war attack Lost connection in clan war attack

Posted On: July 3, 2023
I just finished deploying dragons in a clan war attack when the connection was lost. Looking at the replay, I see that the server only registered deploying the first few dragons, which resulted in ...[More]


Whats the last GTA V Franklin mission? Whats the last GTA V Franklin mission?

Posted On: January 11, 2023
The only character with a number below their name is Franklin, this indicates that there is a mission remaining, but I cannot find it! Any ideas what it might be? Could it be a street race, as I have ...[More]


How can I improve framerate of Minecraft client? How can I improve framerate of Minecraft client?

Posted On: March 8, 2023
I'm a happy Minecraft player. I place my blocks, mine my coal, and generally nobody gets hurt. Lately though, those mean creepers have been sneaking up on me from behind, and killing me. Why? Beca...[More]


Does Flash make a champion untargetable for a moment? Does Flash make a champion untargetable for a moment?

Posted On: April 18, 2024
There are some effects in the game which remove a champion's sprite from the map, rendering them untargetable for a moment, such as Elise's Rappel. Does the Summoner Spell Flash do this as well, even...[More]