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]

What are the upgrade paths for the academy? What are the upgrade paths for the academy?

Posted On: January 24, 2023
The academy only shows what unit type it upgrades to for existing units already in the army, and only if you've already unlocked the correct race and level upgrades. Can anyone provide or link to a di...[More]


In Tears of the Kingdom, can you activate only certain devices attached to a vehicle? In Tears of the Kingdom, can you activate only certain devices attached to a vehicle?

Posted On: June 9, 2023
In TOTK, I was doing the quest where you have to get the fella and his cart out of the hole. I attached the balloons and flame emitters to the cart, then added a fan. When I activated them, they al...[More]


How do I get to the new cow rift in Reaper of Souls? How do I get to the new cow rift in Reaper of Souls?

Posted On: June 25, 2023
There have been reports of a new "cow level" that seems to only be accessible via Nephalem Rifts: Are the Rifts fixed in terms of location (act/area)? Are Rifts the only way to get there?...[More]


Hogwarts Legacy Help 100% please Hogwarts Legacy Help 100% please

Posted On: July 29, 2023
Can somebody please walk me through what I'm missing for the platinum? I'm missing 1 revelio page in hogwarts and I don't know which one it is, I've tried guides and everything, I just...[More]


In Super Mario Odyssey, How often vibration is used to indicate item locations? In Super Mario Odyssey, How often vibration is used to indicate item locations?

Posted On: March 22, 2023
Since Switch Lite doesn't have vibration motors, Nintendo has an alternative for the rumble in a form of visual "screen-shake" in Odyssey. The indicator is subtle, challenging to notice ...[More]


How do you pet Bubba with a controller? How do you pet Bubba with a controller?

Posted On: August 30, 2023
When playing Holocure on keyboard you can pet Amelia's dog Bubba by pressing P while standing next to him. However, I'm playing on Steam Deck. Is there a way to pet Bubba when playing with a c...[More]


How do I forcefully duplicate a nether portal in Minecraft? How do I forcefully duplicate a nether portal in Minecraft?

Posted On: May 23, 2023
I've seen nether portals being duplicated due to linking problems before, but I can't seem to replicate that on purpose. I'm trying to create a sort of manual obsidian farm that doesn'...[More]


Crucio Crucio

Posted On: August 7, 2023
So I'm on the brink of level 18 and I've just talked to sebastian about crucio and he told me to wait for his owl post, how long do I have to wait for him to reach out to start the quest? Q...[More]


How much room do I need to play Ring Fit Adventure? How much room do I need to play Ring Fit Adventure?

Posted On: April 8, 2024
I'm interested in Ring Fit Adventure, but given the layout of my room, I have a relatively narrow strip of space between the Dresser/TV and the end of my bed. Is this enough room to successfully perfo...[More]


Please help me with Hogwarts Legacy Please help me with Hogwarts Legacy

Posted On: April 23, 2023
I was on my way to meet Jackdaw at the forbidden forest when I fell into this tomb, iv tried loading my different save points but iv spent so long in here that they are all putting me in the same spot...[More]