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]

Is Hogwarts Legacy Worth Buying? Is Hogwarts Legacy Worth Buying?

Posted On: April 7, 2023
Calling all Muggles, Wizards, Witches and magical creatures with Classifaction XXXX!. A month on, what are peoples opinions on the game as I'm considering buying it? This can be related to g...[More]


Can I skip the launcher when launching Baldurs Gate 3 from Steam? Can I skip the launcher when launching Baldurs Gate 3 from Steam?

Posted On: July 12, 2023
I don't want to have to go through the "Larian Launcher" when I want to play Baldur's Gate 3 in Steam. How can I skip it? Question from user Oak at stackexchange. Answer: To...[More]


Ehhhhh... I need help... Ehhhhh... I need help...

Posted On: April 24, 2024
I play on the highest difficulty so i have only one save. For a magic reason the game decide to auto save at this exact moment. Is there any way for me to not need to restart a new game? .https://prev...[More]


How long do I need to survive on the Hyperbolica rocket skis? How long do I need to survive on the Hyperbolica rocket skis?

Posted On: May 9, 2023
In the Frosted Fields there is an inventor who created a pair of rocket skis. They ask you to prove the rocket skis are safe by testing them and surviving until they run out of fuel. How long do I ...[More]


Where does The Darkness II keeps its save files? Where does The Darkness II keeps its save files?

Posted On: May 11, 2023
Say I wanted to back up or delete my saves on the PC version (via Steam). Where are they located? Question from user a cat at gaming.stackexchange.com. Answer: Using X to represent the gam...[More]


is there a way to auto-join conversations in multiplayer Baldurs Gate 3? is there a way to auto-join conversations in multiplayer Baldurs Gate 3?

Posted On: September 23, 2023
When playing multiplayer in Baldur's Gate 3, is there any way to automatically join conversations initiated by another player? Or alternatively, can I add some sort of audio cue when there's a...[More]


In MoH Allied Assault, can you save Jack Grillo? In MoH Allied Assault, can you save Jack Grillo?

Posted On: March 13, 2023
has anyone confirmed whether it's possible to prevent the death of Maj. Jack Grillo at the start of Mission 2, Scuttling the U-529, Level 1, Secret Documents of the Kriegsmarine? I recently mad...[More]


What's your BG3 take: Hot or Cold What's your BG3 take: Hot or Cold

Posted On: November 20, 2025
Here's mine: This concept art is significantly better then the Soul Vestment we got.Question from user DC_Lark at BaldursGate3 at reddit.com.Answer:Dame Aylin is cool, but I like the original Nightson...[More]


Cosmoen Evolution Cosmoen Evolution

Posted On: September 10, 2023
If I evolve a Cosmoen into a Solgaleo, is there a way to get Lunala? Because my goal is to complete the Pokedex, if I evolve my Cosmoen into Solgaleo, what are the ways to get a Lunala? Question fr...[More]


Do enemies only drop food after beating the game? Do enemies only drop food after beating the game?

Posted On: October 17, 2023
I've never seen enemies drop food until I started Loitering. Were those drops unlocked by beating the game / seeing the credits? And is it only because I'm Loitering, instead of going to Ne...[More]