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 Engi Med-Bot Dispersal affected by MedBay upgrades? Is Engi Med-Bot Dispersal affected by MedBay upgrades?

Posted On: August 4, 2023
The title pretty much says it all. Do med-bay upgrades make healing in rooms besides the med-bay faster when you have med-bot dispersal? Question from user Fambida at stackexchange. Answer: T...[More]


How to get drow gf? How to get drow gf?

Posted On: April 5, 2025
Used a stupid title just in case I don't spoil anyone, but you know what I mean. .I want to recruit Minthara. I understand I do that by knocking her out non-lethal style in the goblin camp. However I ...[More]


How do I prioritize local hydrogen over remote hydrogen from a gas giant? How do I prioritize local hydrogen over remote hydrogen from a gas giant?

Posted On: January 13, 2023
I recently exploited my local gas giant for hydrogen and fire ice, which is quite useful. The main reason was to get started on deuterium production for various advanced items. But I just noticed that...[More]


I keep having to reload and it’s getting annoying I keep having to reload and it’s getting annoying

Posted On: October 28, 2023
I keep forgetting to do things before entering nightsongs prison and having to reload. I thought I had got it, finally, but I looked up a checklist and I just straight up never found the one who was g...[More]


Is it still possible to start and finish a quest from Chapter 1 after starting Chapter 2? Is it still possible to start and finish a quest from Chapter 1 after starting Chapter 2?

Posted On: July 27, 2023
Baldur's Gate: Enhanced Edition is divided by chapter. When I start Chapter 2, will I still be able to activate quests from Chapter 1? In my journal, all previous chapter quests disappeared after ...[More]


Do I need to completely finish Season 1 before starting Season 2 Walking Dead? Do I need to completely finish Season 1 before starting Season 2 Walking Dead?

Posted On: March 25, 2023
The second season of The Walking Dead episodic game has just been released. I've not yet finished all the episodes from season one. Is the second season a continuation of the same story ( so ma...[More]


This is why people ship them This is why people ship them

Posted On: January 27, 2025
Question from user OCDurge at BaldursGate3 at reddit.com.Answer:At the epilogue party, Dammon writes her a letter saying he thinks about her often and basically begs her to write him back!.Answer from...[More]


How to obtain all 3 starters on Pokemon Fire Red - Leaf Green and have them as Original Trainer (OT) (Macbook VBA)? How to obtain all 3 starters on Pokemon Fire Red - Leaf Green and have them as Original Trainer (OT) (Macbook VBA)?

Posted On: March 31, 2024
I am currently using an Apple M1 Ventura machine with a VirtualBoyAdvance.How do I get all 3 starters (Bulbasaur, Charmander and Squirtle) with Original Trainer (OT) status on a game without using che...[More]


How do I find the ID for a game on Steam? How do I find the ID for a game on Steam?

Posted On: May 18, 2023
Every game on Steam has a different Game ID (also known as App ID). For instance, looking on my own computer, Portal has an ID of 400, and FTL: Faster Than Light is 212680. How do I find this ID fo...[More]


What does it mean to have sacred - ancestral aspects? What does it mean to have sacred - ancestral aspects?

Posted On: August 15, 2023
As my level increases, I'm starting to find some sacred/ancestral versions of aspects. However, for the vast majority of aspects, it seems to make no difference what version it is. (in fact, th...[More]