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]

In Yupitergrad 2, How do I defeat the shield drone? In Yupitergrad 2, How do I defeat the shield drone?

Posted On: July 20, 2023
In Yupitergrad 2: the Lost Station, I have just acquired the miniguns, and now I am trying to get past the adjacent room that has a single, button-activated drone that is protected by a glowing shield...[More]


Is there a way to fully load a turret in Factorio? Is there a way to fully load a turret in Factorio?

Posted On: March 18, 2023
For the defense of my factory I use Gun Turrets. I've got a belt with magazines running past them. However when there are a lot of biters/spitters coming the belt can't provide fast enough so ...[More]


Do cursed chests replace normal chests in Dead Cells? Do cursed chests replace normal chests in Dead Cells?

Posted On: April 9, 2023
The description for the "Damned" aspect says "Cursed chests spawn rate is doubled". Do the extra cursed chests replace normal non-cursed chests that would have spawned? Question...[More]


Why does this solution to 5-3 work? Didnt the Prince get eaten? Why does this solution to 5-3 work? Didnt the Prince get eaten?

Posted On: November 26, 2023
In Storyteller, a puzzle game about telling stories that fit a title, I accidentally solved Chapter 5.3 - Duplicity: A Kiss and a Curse without understanding why my solution worked. Kiss, Witch, Pr...[More]


so…uh… how many do - don’t use the parasite powers? so…uh… how many do - don’t use the parasite powers?

Posted On: January 30, 2025
i saw a post the other day talking about the things you do/dont don’t do in a run and a lot of people were like (on their first run mind you) “i would never use weird powers that some random perso...[More]


What are the black bugs that come from defeated enemies? What are the black bugs that come from defeated enemies?

Posted On: January 31, 2023
Sometimes when I defeat an enemy a small black bug will appear and start flying away from me. What are these black bugs? Is there something I can do with them? Question from user Stevoisiak at gami...[More]


How can I make time-lapse videos of my Minecraft creations? How can I make time-lapse videos of my Minecraft creations?

Posted On: July 16, 2023
How can I make time-lapses of my Minecraft creations? Ideally I'd like something that can record automatically from a fixed location, either generating a bunch of images (I've got software to ...[More]


What kind of DLC do you wish for for Hogwarts legacy? What kind of DLC do you wish for for Hogwarts legacy?

Posted On: August 25, 2023
These are the DLC I wish to see for Hogwarts legacy (yes, DLC, I do not want another game with a new character, I dont want to spend hours on learning basic spells, I want to expand on the world I alr...[More]


BG3 trophy list is a bit... BG3 trophy list is a bit...

Posted On: September 26, 2023
Hostile. I don't mind trophies for playing the game badly that take a few minutes to unlock or which can be done in the context of a throwaway save. But Jack of all Trades? Who in their right m...[More]


Can you unlock secret stamps before beating the game in Storyteller? Can you unlock secret stamps before beating the game in Storyteller?

Posted On: November 24, 2023
After getting every crown in Storyteller, I unlocked a list of achievements called the Secret Stamp Collection. If I met the requirements for one of these stamps before beating the game, could I unloc...[More]