Upon request from moderators/experts, this question has been split into two questions, one for each of the main editions of Minecraft. If you have an answer for Java Edition, please post it here.

I am creating a redstone contraption that is based off an RS-NOR latch and a T-flip-flop at once.
The contraption needs to have three pulse-based inputs and one output.

Here are the inputs and their descriptions of what they should do:

  • "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.

Many online tutorials provide a solution for an RS-NOR latch or a T-Flip-Flop alone, but not this combination of them.

What is the most compact way to construct a redstone contraption like this?

Please include images with your solution.

  • 3
    Which game are you actually playing, MCJava or MCBE? – Fabian Röling May 14 '20 at 6:46
  • 1
    Since you are asking for both editions, it would best to split it into 2 questions - we aim for a 1:1 question to answer ratio - multiple questions can make it difficult to provide a good and specific answer - some users might be experienced in one and not the other, meaning that this question, as it is, requires 2 answers. There's nothing wrong with posting 2 questions about the same thing in different systems! – Ben May 15 '20 at 3:45
  • A 1:1 question to answer ratio is not at all the goal, having a valid answer for the entire question is the goal and only one question should be in a question post. – Fabian Röling May 15 '20 at 10:02
  • I don't know how you read that into my answer, but I just replied to the "1:1 ratio" thing in the previous comment, because multiple answers per question are usually a good thing. What you did is totally fine and good, no worries. – Fabian Röling May 15 '20 at 22:28
  • As I said: Everything is fine, no worries. By limiting this question, you made it a valid question here already. I don't know if you can see that, but there are 3 reopen votes on this already. 2 more and it gets reopened. This just takes a bit of time, because not many people here check questions with reopen votes. – Fabian Röling May 16 '20 at 2:46

The primary mechanism you're going to want is an RS latch and some AND gates. This will operate as a regular RS latch when you press the On or Off button, and as a Toggle when you press Toggle. This works by routing the toggle signal to the appropriate end of your RS latch, turning it on or off based on the current state of the RS latch

Circuit diagram consisting of an RS latch and a pair of AND gates

I feel like I've been here before. Anyway. As it turns out there are quite a few differences in how Minecraft Bedrock Edition redstone works that I don't fully understand, which makes my Java Edition answer inoperative in Bedrock edition. However, with some small tweaking, it can be made to work.

The main tweak is a monostable circuit on the Toggle line:

Input lines with monostable circuit

This circuit uses a sticky piston to, in one game tick, send a redstone pulse and cut it off. This causes the Toggle input to only be on for 1 tick. This prevents the mechanism from cycling more than once when the toggle button is pressed. Without this, the pistons will switch back and forth repeatedly until the signal turns off, which is not what we want.

From here, only minor tweaks are required to the original Java mechanism (Bedrock edition has different rules about when redstone dust connects to pistons, so a few more redstone repeaters were required):

RS Latch and AND gate mechanism

As in my previous answer, there are sticky pistons underneath the gold blocks which act as AND gates, and a redstone repeater underneath the diamond block to keep the signal from the repeater on the Reset line from being directly connected to the Output line.

Unfortunately, due to the monostable circuit, this build is quite a bit bulkier in Bedrock edition, coming in at 9x4 on Bedrock (vs 5x4 on Java).

  • I want to keep developing this, I'm not happy with 9x4, so I'll take a look in a few alternate directions to get something that's both compact and functional in Bedrock Edition. – Unionhawk May 19 '20 at 21:10
  • For I can accept this as the best answer. Please keep working on this and edit this post if you come up with a better solution. – ExpertCoder14 May 22 '20 at 21:30

This is the way to make it, just put any STACKABLE item that stacks to 64 in the dropper. To toggle just power and unpower the pistonenter image description here, to toggle just power and unpower the piston

  • 1
    How does this address the question? The OP asked for three buttons, I'm only seeing two. Also, if you hit a button on the dropper, where is it going to put the items? Are the droppers pointed towards each other? Not clear from the screen shot. – John May 14 '20 at 15:55
  • Unless redstone in MCBE is totally broken, this does not toggle the output state on a third button press. – Fabian Röling May 15 '20 at 10:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.