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]

Can I use N.E.I. every time i play? Can I use N.E.I. every time i play?

Posted On: September 19, 2023
Is it possible to always have Not Enough Items set up every time I play Minecraft even without Forge? Can I for example open Minecraft and choose my normal profile not Forge, and when I play have Forg...[More]


OpenTTD: Invading a city to get a rail line through it OpenTTD: Invading a city to get a rail line through it

Posted On: March 18, 2024
How do I keep local authorities off my back long enough to destroy and terraform part of their beautiful city so my megaconglomeration can inject its horrible, pollution-causing railway station right ...[More]


Multiclass for fighter? Multiclass for fighter?

Posted On: October 7, 2023
Im asking cuz im still in act 1 but since i learned about multi-classing, i was wondering on what is the best class and subclaas combo fo multiclass with fighter? Or if i should stay pure fighter ....[More]


Without spoilers, are any spells permanently missable in Hogwarts? Without spoilers, are any spells permanently missable in Hogwarts?

Posted On: March 8, 2023
I got to a part of the story where it seems that I've missed some spells. I do not want to get spoiled (nor do I want to spoil other players) and so I'd like to know, without spoilers (or with...[More]


Is Sebastian Sallow a pure-blood wizard? Is Sebastian Sallow a pure-blood wizard?

Posted On: July 20, 2023
Do we know Sebastian Sallow's blood status in the game? Is he pure-blood, half-blood, or Muggle-born? Question from user Shaun Roselt at stackexchange. Answer: Sebastian is definitely ...[More]


Dead or Alive: Dimensions Control Mechanism Dead or Alive: Dimensions Control Mechanism

Posted On: March 24, 2023
In the recently released title for the Nintendo 3DS, some of the video previews seem to suggest that the characters are controlled by "selecting" combinations on the touch screen, rather tha...[More]


Are there any merchants in Legend of Grimrock 2? Are there any merchants in Legend of Grimrock 2?

Posted On: June 13, 2023
Are there any merchants in Legend of Grimrock 2? I want to know if I should hoard items or just drop the ones that I don't need. I assume it's the same as the first but I want to make sure. ...[More]


in Zelda, Are the names of lightroots the names of shrines spelled backwards? in Zelda, Are the names of lightroots the names of shrines spelled backwards?

Posted On: June 22, 2023
Looking at your map in Tears of the Kingdom, you might notice that each lightroot is directly beneath a shrine. However, something I noticed when watching a video on Youtube is that the Nisoij lightro...[More]


How do I make mobs slowly respawn up to a certain cap? How do I make mobs slowly respawn up to a certain cap?

Posted On: January 27, 2023
I am currently making a Legend of Zelda themed adventure map. I am struggling to make it, so enemies spawn every few minutes but not spawn large amounts over time. I have tried using things like hoppe...[More]


Can I start with BG3 and skip 1 and 2? Can I start with BG3 and skip 1 and 2?

Posted On: August 14, 2024
I'm 60 and asked my kids what game should I try and they said Baldur's Gate. I purchased 1 and 2 off of Xbox live, but someone suggested I could just start w/ 3 since they can all stand on their own. ...[More]