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]

How does Skyrim determine if a dungeon is cleared? How does Skyrim determine if a dungeon is cleared?

Posted On: July 19, 2022
Skyrim adds an awesome feature, that lets you know if you have cleared a dungeon or not. This saves a lot of time and effort, because you do not have to revisit every dungeon you have been through lik...[More]


Am I Locked Out? Romance Question Am I Locked Out? Romance Question

Posted On: April 29, 2024
I was trying to start a love triangle between my Dark Urge, Astarion, and Shadowheart. I slept with Astarion very early on. He was at exceptional approval before we even reached the goblin camp. (And ...[More]


What is the hidden trophy below Lore Master? What is the hidden trophy below Lore Master?

Posted On: August 25, 2023
In Lucky Luna's trophy list there is a hidden Story Mode trophy marked ??? near the bottom of the list. It sits between the trophies for Lore master and Taking flight. What are the requirements fo...[More]


How to defeat Ranrok in Hogwarts Legacy?! How to defeat Ranrok in Hogwarts Legacy?!

Posted On: April 10, 2023
Is there a secret because im about to lose my mind!! I just keep casting crucio any chance I get and try to avoid his fire. I cannot wear him down in the 3rd phase!. Question from user jessicashaye...[More]


How do I drop off supplies at Elder Scrolls Hrothgar? How do I drop off supplies at Elder Scrolls Hrothgar?

Posted On: July 7, 2023
I have the quest to bring supplies to Hrothgar, but when I got there I had no idea where to drop them off. Any idea what to do to complete the quest?. Question from user Ivo Flipse at stackexchange...[More]


How can I play Quake on OS X 10.7 or above? How can I play Quake on OS X 10.7 or above?

Posted On: February 9, 2023
Is there any option for native playing Quake on OS X 10.7 and above?Question from user LuisEspinoza at gaming.stackexchange.com.Answer:Yes there is actually a way to play Quake but you'll need the CD ...[More]


What happens to the essence in Ninja Gaiden Sigma 2? What happens to the essence in Ninja Gaiden Sigma 2?

Posted On: July 1, 2023
In Ninja Gaiden Sigma 2 (PS3), when you use the ultimate technique and absorb the surrounding essence, does it heal/give ki/money or is it just consumed towards the speed charging of UT? Question f...[More]


Cyberpunk 2077 cloud sync conflict on launch Cyberpunk 2077 cloud sync conflict on launch

Posted On: February 19, 2023
I've been playing Cyberpunk 2077 for a few days now - I purchased it in the Epic Game Store. So far, whenever I launch the game from the Epic app, I get this message each and every time:. I ...[More]


What is the music in the Dazed and Confused mission in Far Cry 4? What is the music in the Dazed and Confused mission in Far Cry 4?

Posted On: January 24, 2023
I've just been playing the Dazed and Confused level and was wondering what the music was. It's a mission with Yogi and Reggie done under the influence of drugs. I was curious if it was a no...[More]


Hogwarts Legacy is Excellent but lacking? Hogwarts Legacy is Excellent but lacking?

Posted On: April 17, 2023
Anyone else love the game but just feel they could have expanded on a lot of things? Beast taming could have been a proper side thing yet I'm just feeding them for materials, once I've gott...[More]