T flip-flop with a button and a lamp

A T flip-flop switches on with one press and off with the next. Press the button: the lamp turns on. Press it again: it turns off. Inside, one item moves between two droppers, and a comparator lights the lamp while the item is in the right one.

T flip-flop in the 3D viewer, its lamp on after one press of the button
22 blocks · one press on, one off

How it works, part by part

1 · ButtonA stone button stays pressed for 1 second (20 ticks). It sits on the floor beside the right dropper, so a press fires that dropper straight away. Leave 22 ticks between presses: a press 20 or 21 ticks after the last one does nothing, because the repeater still powers the left dropper for 2 ticks after the button pops up, and that keeps the right dropper powered too.
2 · Dust and repeaterThe button also powers this dust, which runs round to a repeater (delay 1) facing the left dropper. So the left dropper fires 2 ticks after the right one.
3 · Left dropperIt starts with the item (here a stone). A powered dropper moves one item into the container it faces 4 ticks later. This one faces the right dropper and fires 2 ticks after it: if it holds the item, it passes it on. Only one of the two holds the item, so a press moves it one step: from the left dropper into the right one, or from the right one up through the hoppers and back to the left.
4 · Right dropperThe one next to the comparator. It faces up into the hoppers and fires first: if it holds the item, it passes it up to them; if it's empty, nothing happens.
5 · HoppersThey carry the item from the right dropper back round to the left one, ready for the next press. A hopper passes an item on every 8 ticks.
6 · Comparator and lampThe comparator reads the right dropper: 1 while the item is in it, 0 when it's empty. A signal of 1 is enough to light the lamp in front of it.
7 · FloorStone under the dust, the repeater, the comparator and the button, which all need a block to sit on.
How its parts work

Download for your world

Both files hold the same machine, for Java Edition 26.3. Pick the one your tools load.

How to load it
  1. Structure block: put the .nbt file in your world’s generated/minecraft/structure folder, place a structure block (/give @s structure_block), set it to Load, type the file name without .nbt, then Load.
  2. WorldEdit: put the .schem file in WorldEdit’s schematics folder, then type //schem load <name> and //paste.
  3. Litematica: put the .schem file in .minecraft/schematics, open the Litematica menu (M), load it and place it where you stand.

The full guide, step by step

Build it

Materials
  • 12× stone
  • 2× dropper
  • 2× hopper
  • 2× redstone dust
  • 1× button
  • 1× repeater
  • 1× comparator
  • 1× redstone lamp

Layer by layer

From the bottom up. Turn the 3D view and click a block to see exactly where it goes.

  1. Layer 1 12× stone
  2. Layer 2 2× dropper, 2× redstone dust, 1× button, 1× repeater, 1× comparator, 1× redstone lamp
  3. Layer 3 2× hopper

Want a variant? Ask your AI.

Show me the T flip-flop from Contraptify and make a variant of it. How to connect your AI

Related machines