Upon request from multiple moderators/experts, this question has been split into two identical questions, one for each of the two main versions of Minecraft. This question is for solutions for Java Edition. If you have a solution for Bedrock Edition, please post it here. 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 am creating a redstone contraption that is based offenvision an RSSR-NORT latch and a T-flip-flop at once.
The contraption needs to have three pulse-based inputsset, reset, and onetoggle 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.
Here are Just like an SR latch, pressing S or R when the inputs and their descriptions of what theycell is already in that state should do: nothing.
- "On" button: Turn the output on, or keep it on if it is already on.
- "Off" button: Turn the output off, or keep it off if it is already off.
- "Toggle" button: Toggle the state of the output, no matter what state it was in before.
The toggle button should provide onlyAll of my circuitry so far has been "unclean" implementations, either a temporary inversionbodged wiring to add a toggle to an SR latch, with the next button press acting as normalor bodged wiring to add SR inputs to a T-flip-flop.
Here are What is the questions I would likebest way to have answered:go about making such a latch?
- Should my redstone contraption be based off a T-flip flop, a RS-NOR latch, or neither?
- What is the most compact way to construct a redstone contraption like this?
Please include images with your solution.See also: Same question for Bedrock Edition (originally one question; separated upon request from others)