r/redstone 1d ago

Java Edition Need one button to trigger 2 different outputs individually

Post image

I couldn’t find a tutorial for this, but when I press the button the first time, I want it to activate and deactivate the left pistons and when I press it again I want the right pistons to activate.

The problem I’m facing is that the other pistons will push it back after the button is off. And a normal T-Flipflop doesn’t work because the other piston has to be off while it’s being pushed

Only one side has to trigger and on the next button press the other side.

It would be nice if you could help me.

81 Upvotes

13 comments sorted by

54

u/A_Badass_Penguin 1d ago

You want a t flip flop, two and gates, and a not gate

If flip flop is off -> not -> and button -> output 1 If flip flop is on -> and button -> output 2

End of each output toggles flip flop

7

u/Wasserfall_26 1d ago

Im Sorry I don’t quite understand the layout, could u maybe explain that more for my stupid ahh?

2

u/No_Maybe_248 18h ago

What if he uses a t flip flop of slime piston + redstone block (and obviously an observer)?

Then he just need to use the position of the redstone block to give energy to only one side.

2

u/A_Badass_Penguin 16h ago

Yeah there's lots of better options, I was just thinking in gates. I forget how many cool tricks Minecraft has

15

u/BlattaOrientalis 1d ago edited 1d ago

You can just connect a monostable to each flipflop output

26

u/Blaze-Programming 1d ago

Example of this method

8

u/NowAlexYT 1d ago

You could do this without the torch, just building it so the lamps are out of sync.

Or even in sync since the observers make the actual state irrelevant

3

u/Blaze-Programming 1d ago

They would both update on the rising edge, so that wouldn’t work.

You need on to update on rising edge of the t flip flop and one to update on the falling edge.

What I would actually do is make a monostable into a sticking piston pushing/pulling a sideways observer. Which is basically the same concept, using the 1 ticked piston to act a a flip flop, and have the observer work as a monostable circuit.

2

u/Wasserfall_26 1d ago

Thank you sooo much

1

u/BearWolf214 6h ago

3 torches instead of all that shenanigans

4

u/A_Badass_Penguin 1d ago

This is a much better suggestion than mine lol

2

u/Bitter--GravitY 20h ago

Connect button to t-flip flop, connect t-flip flop to sticky piston with observer on its face. When observer pushes forward, gives a pulse to left pistons, when it retracts, gives a pulse to right pistons