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]

Which house do you find to be the coziest? Which house do you find to be the coziest?

Posted On: September 19, 2023
I have done a play through as 3 of the four houses (Ravenclaw, Slytherin, and Gryffindor). I find that Gryffindor is more cozy than the other two. Might just be because the colors are warmer. Hufflepu...[More]


Why can't I catch a Thestral in Hogwarts Legacy? Why can't I catch a Thestral in Hogwarts Legacy?

Posted On: March 5, 2023
I cannot for the life of me seem to catch a thestral. Any tips? Question from user Own_Doctor9472 at HogwartsLegacyGaming at reddit.com. Answer: I just use leviosa and then the nab sack. Neve...[More]


This Just Distracts Me in Hogwarts Legacy This Just Distracts Me in Hogwarts Legacy

Posted On: April 22, 2023
Question from user Ravenclaw-Gamer at HogwartsLegacyGaming at reddit.com. Answer: Started playing God of War: Ragnorok after HL and I’m pressing the revelio everywhere and it’s not w...[More]


Why do I need at least 30 Splatoon3 wins to earn the relative special weapon badge? Why do I need at least 30 Splatoon3 wins to earn the relative special weapon badge?

Posted On: April 16, 2023
According to Splatoon wiki:. If a player wins a match with a special weapon a certain number of times, they obtain normal, silver and gold badges. The number of required wins are 30, 180 and 120...[More]


In Factorio, is there a way to place blueprinted poles at maximum distances? In Factorio, is there a way to place blueprinted poles at maximum distances?

Posted On: April 30, 2023
The current issue I have is with placing Blueprinted Electric Poles over long distances as shown in this GIF:. Normally, you are able to hold down LMB, and move. Then once you reach the maximum dis...[More]


Poppy - Natsai Quest? Poppy - Natsai Quest?

Posted On: June 18, 2023
Good evening!. I have a short question: when do the quests from Poppy/Natsai continue? I got to the quest: "The Poachers House Call" with Poppy and to "Mum's the Word" with ...[More]


Naming My Hogwarts Graphorn Naming My Hogwarts Graphorn

Posted On: June 20, 2023
I just completed the main story quest that allows you to obtain a Graphorn named "lord of the shore". . Afterwards I captured another Graphorn and named it "lady of the mist" to...[More]


In PUBG, Where are all the underground bunkers? In PUBG, Where are all the underground bunkers?

Posted On: May 1, 2023
In Player Unknown battlegrounds there's a massive underground bunker in F4 filled with high grade loot. I know from a game where I joined a random squad that there are more underground bunkers as we r...[More]


how to make dwarves happier in Dwarf Fortress? how to make dwarves happier in Dwarf Fortress?

Posted On: April 28, 2023
Most of my dwarves are not happy, and I don't know how to make them happier in general. So, how can I properly make at least the angrier of them less unhappy/more happy? I really want to pre...[More]


Does closing the game reset Blood Moons timer in Breath Of The Wild? Does closing the game reset Blood Moons timer in Breath Of The Wild?

Posted On: July 23, 2023
According to Zelda dungeon, Blood Moon regularly occurs every 2 hours and 48 minutes of gameplay (every unskipped 7 days in-game). Another answer confirms that it's a time-based event. So I&...[More]