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 do you use Luxury gemstones for in Slipways? What do you use Luxury gemstones for in Slipways?

Posted On: June 24, 2023
Starting a new game, I got a Gemstone Asteroids modifier. I quickly found the a gemstone asteroid and managed to mine it. But I can't figure out what they are good for? Question from user DJ...[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]


What game is this music featured in Garrys Mod Idiot Box from? What game is this music featured in Garrys Mod Idiot Box from?

Posted On: September 3, 2023
I was watching some funny Garry's Mod Idiot Box episodes on YouTube. In episode 3 at 5:41 is a scene that has some music being played in the background. What game is from? It sounds so familiar to...[More]


Great Hall area Field Guide Pages Great Hall area Field Guide Pages

Posted On: July 31, 2023
Can anyone please help me find the last field guide page in the Great Hall area? It says I only have 23 out of the 24 for that area. I have used online guides and visited every single one of the page ...[More]


How can I make Skip98 work on a laptop with Windows 7? How can I make Skip98 work on a laptop with Windows 7?

Posted On: June 10, 2023
My Mother in law was playing to an old freeware Skip-bo game on her Windows XP computer, it's called Skip98. You could still find it by goggling it, but the original site is down. She bought a ...[More]


For Hogwarts Legacy Should I Use PS4 or Switch? For Hogwarts Legacy Should I Use PS4 or Switch?

Posted On: April 15, 2023
So I've been waiting for this game for ages, and I really want to play it. I have a PS4 and a Switch, and I was thinking of getting the Switch version once it comes out, because honestly it's ...[More]


When being killed by an object or non-player, does that entity gain the XP I had in diep.io? When being killed by an object or non-player, does that entity gain the XP I had in diep.io?

Posted On: April 16, 2024
If you are killed by a Sentry/Boss/Shape in arras.io, it appears on the leaderboard and Sentries and Crashers get visibly bigger.I would like to know if this is the same in diep.io even though these t...[More]


In Civilization5, is there a hotkey for the general Next Move button? In Civilization5, is there a hotkey for the general Next Move button?

Posted On: April 8, 2023
I'm looking for a keyboard hotkey for the generalized "Next Move", "Choose Research", "Unit Waiting for Order" button in the bottom-right corner of the interface. ...[More]


What happens to free games obtained through PlayStation Plus after it expires? What happens to free games obtained through PlayStation Plus after it expires?

Posted On: March 3, 2023
I bought a three months membership for PlayStation Plus some time ago. This membership has already expired. While it was active, I got the classic PSOne Resident Evil titles for free. Will I be able t...[More]


Whats the purpose of Wormskin Folios? Whats the purpose of Wormskin Folios?

Posted On: April 24, 2024
I collected one while doing a Nexus mission on an infected planet. The wiki says that there are more of these collectibles out there, so I suppose I can find the others in the same method.But then? Ar...[More]