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 view your Steam Year in Review from your profile? How to view your Steam Year in Review from your profile?

Posted On: December 20, 2023
I am unable to find a place where I can see the "My year in review" from my steam profile. I received a mail about it, and thought it was quite informative, and would like to compare this ye...[More]


In Hogwarts, Am I just glitched? In Hogwarts, Am I just glitched?

Posted On: March 4, 2023
So I definitely got the treasure here, but it says I didn't. it's happening at another place as well . Am I just glitched? Question from user coreyc2099 at HogwartsLegacyGaming at reddit.co...[More]


Can I alter the biome of an area? Can I alter the biome of an area?

Posted On: January 12, 2023
In part 3 of my adventures, I would like to find out if there is a way to change biomes. In part 2, fredley said that it is possible to move terrain from one world to another, but the biomes wouldn...[More]


How can I make time-lapse videos of my Minecraft creations? How can I make time-lapse videos of my Minecraft creations?

Posted On: July 16, 2023
How can I make time-lapses of my Minecraft creations? Ideally I'd like something that can record automatically from a fixed location, either generating a bunch of images (I've got software to ...[More]


What’s you favorite spell in Hogwarts Legacy? What’s you favorite spell in Hogwarts Legacy?

Posted On: March 23, 2023
I really like depulso it’s really cool that you can slam enemies into each other with it. Also revelio used to be my favorite spell but after hearing it over 10,000 times in one hour it’s ...[More]


How to unlock the Bandolier via ammo caches? How to unlock the Bandolier via ammo caches?

Posted On: March 17, 2024
Aside from buying the Bandolier as a tier3 item at the shop, I've read you can unlock it by other means, after accessing some secret exits in Chaos Generator and Marksman and hitting some switches. H...[More]


Which game is shown in the Virtual Boy Pro for Nintendo Switch announcement trailer? Which game is shown in the Virtual Boy Pro for Nintendo Switch announcement trailer?

Posted On: April 2, 2024
The recent announcement trailer for the Virtual Boy Pro for Nintendo Switch showcased a game running on the console. It looked like a Legend of Zelda title, with the player character riding a horse ac...[More]


Honkai Star Rail What is Effect Hit Rate? Honkai Star Rail What is Effect Hit Rate?

Posted On: May 15, 2023
Some relics have an 'Effect Hit Rate' stat. What effect is being referred to here and at what point is the hit/no-hit RNG evaluated? Question from user LT_ at gaming.stackexchange.com. A...[More]


Which explosive guns can cause critical hits? Which explosive guns can cause critical hits?

Posted On: January 24, 2023
When I wrote How do I use elemental effects in Borderlands 2? to the best of my knowledge Explosive guns couldn't critical; I've tested this with "grenade" Assault Rifles, Gyrojet Tourge Assault Rifle...[More]


How to enhance match objectives in Fifa 23 career matches How to enhance match objectives in Fifa 23 career matches

Posted On: April 30, 2023
I play Fifa 23 on a PC with an Xbox controller and intend to achieve the enhanced objectives when a career match begins. I can see the objectives screen and it says I should press L + Hold L. Ho...[More]