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]

I hate the Gith so much. Feel sorry for her. I hate the Gith so much. Feel sorry for her.

Posted On: April 25, 2026
Second time doing the Crëche quest. I found something, or rather someone I missed before. This one Tiefling scout whom you meet in the starting area. She warns you to steer clear of the Gith patrol, ...[More]


In SeriousSam, How do I get this body armour located in Tomb Of Ramses III? In SeriousSam, How do I get this body armour located in Tomb Of Ramses III?

Posted On: March 24, 2023
I'm at the Tomb Of Ramses III in Serious Sam HD, and there is some body armour located at the top of an area previously containing an Arachnoid. I'm unable to find anyway up to this area. . ...[More]


Does harming a companion indirectly with Warding Bond affect their approval? Does harming a companion indirectly with Warding Bond affect their approval?

Posted On: March 14, 2024
If one of my companions casts.Warding Bond.on my main character, and therefore takes damage whenever "I" do, does.harming them in that way cause their approval to decrease?I would think not, since the...[More]


Will PS4 game discs work on PS5 Console? Will PS4 game discs work on PS5 Console?

Posted On: May 4, 2023
I recently bought a PS5, after long wait. So, the first few games that I plan are - Bloodborne and Demon Souls. The only discs for PS4 available on Amazon India are that from PS4. So, will those di...[More]


What dialogue choice do you regret choosing? What dialogue choice do you regret choosing?

Posted On: December 17, 2024
Question from user andyyhs at BaldursGate3 at reddit.com.Answer:letting Laezel go on her own to Crèche on my first playthrough and then she turned to shadow Laezel and I wasnt able to get her back. h...[More]


Can guards find and arrest you in casing mode in a public area during a searching phase? Can guards find and arrest you in casing mode in a public area during a searching phase?

Posted On: September 10, 2023
In Payday 3, certain things can cause a Searching phase, such as a teammate being cuffed. During this phase, if you're caught in a private area in casing mode you will be cuffed instead of escorte...[More]


What Shaders are animated? What Shaders are animated?

Posted On: March 6, 2024
I'm looking for a list of shaders that are animated, or having "moving" textures, like Gambit Emerald, Rasmussen Clan (the only two I own that seem to be animated). There's no specific category listi...[More]


Can players spawn on glass blocks in Minecraft? Can players spawn on glass blocks in Minecraft?

Posted On: July 18, 2023
I know that mobs can't spawn on glass blocks as can be seen from this question and answer. But what about players? If I have my spawn area covered in glass blocks, will I be able to spawn on th...[More]


Why does Romance have to be creepy in Hogwarts Why does Romance have to be creepy in Hogwarts

Posted On: March 13, 2023
It might be an old topic, but I've seen too many people saying that wanting romance in this game is pedo behaviour. Why does "romance" have to be a synonym for +18 content? seriously,...[More]


In Farmville, Can I make friends with people who arent my social media friends? In Farmville, Can I make friends with people who arent my social media friends?

Posted On: May 25, 2023
I want friends! Friends seem awesome! I have a couple through people I know on Facebook, but not a lot of people I know are playing this game. Can I make friends any other way than connecting my socia...[More]