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 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]


Are there any special rewards for completing Adventure Mode multiple times? Are there any special rewards for completing Adventure Mode multiple times?

Posted On: August 2, 2023
I recently completed Adventure Mode in Plants vs. Zombies for the iPhone. Are there any special rewards for completing it multiple times? I noticed that when I started Adventure Mode again I had to...[More]


How do I empty a bucket in Vintage Story? How do I empty a bucket in Vintage Story?

Posted On: August 10, 2023
I filled a bucket with water, but can only seem to empty it in a barrel. I just want to pour the water - I don't need it anymore. How do I do that? Question from user Konerak at stackexchange. ...[More]


Screen flashing during the day in Watch Dogs Screen flashing during the day in Watch Dogs

Posted On: September 25, 2023
Sometimes textures and the screen start flashing while I play the game. But this only happen during the day. I'm playing Watch Dogs 1 from Steam. Question from user Diego Borba at stackexcha...[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]


Xbox One controller will not turn Xbox on Xbox One controller will not turn Xbox on

Posted On: February 8, 2023
I used to be able to turn my Xbox on with the wireless controller without fail but recently it will work for a while and then just suddenly stop turning on the Xbox. I hold the center X button and it ...[More]


How is profit from gambling paid out? How is profit from gambling paid out?

Posted On: January 25, 2023
Normally, with a trade port, the payment for your wares shows up all few days when they sell.With gambling however, this is different. There is no direct payout as far as I can see and it is also not ...[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]


i CANNOT beat this fight ? i CANNOT beat this fight ?

Posted On: December 5, 2024
This lorroakan fight seems impossible, i’ve tried ‘hold person’, ‘dominate person’, ‘silence’ and he just gets saved from them all and absolutely whoops my ass. i’ve tried going for th...[More]


In Yakuza 0, How do I fight the 3rd to last opponent in the Colosseum? In Yakuza 0, How do I fight the 3rd to last opponent in the Colosseum?

Posted On: March 28, 2023
I have fought every opponent at the Bed of Styx colosseum except for one. Even after repeating every tournament multiple times, I haven't met the third to last person in the opponent list. Is t...[More]