Redstonery
RedstoneryCircuits › Hopper timer
Pulse circuit

Hopper timer

Store a finite duration as a quantity of items.

3 × 4 footprint1 layer6 blocksTested in 4 rotationsJava Edition 26.2
Open in the simulatorBuild it in the game

Layout

Layer 0 (on the floor)
hopper [facing=east] at x 0, z 0hopper [facing=east] at x 1, z 0barrel [facing=up] at x 2, z 0comparator [facing=north, mode=compare] at x 0, z 1redstone dust at x 0, z 2redstone lamp at x 0, z 3
redstone dustrepeater or comparatorlampcontainerhopper, dropper or dispenserarrows point where a device sends its output; north is up

How it works

A one-shot inventory timer: four items drain through two hoppers into a barrel. The comparator reads whether the first hopper still contains anything. Transfers start during construction settling; Reset restores the four items.

  1. Items leave a hopper at its transfer cadence, and a comparator reports whether the measured hopper still contains anything.
  2. When the supply empties, the output ends. Reloading items prepares another run.

Inputs and outputs

  • Inputthe hopper with the items (x 0, y 0, z 0)
  • Outputlit while it still holds any (x 0, y 0, z 3)

Blocks you need

2 × hopper, 1 × barrel, 1 × comparator, 1 × redstone dust, 1 × redstone lamp.

Build it in the game: 7 commands

Relative to where you stand, with x running east and z running south. Paste one line at a time into chat, or into a chain of command blocks. The block art is the game's own; the layout is what the page above shows.

setblock ~0 ~0 ~0 minecraft:hopper[facing=east]
setblock ~1 ~0 ~0 minecraft:hopper[facing=east]
setblock ~2 ~0 ~0 minecraft:barrel[facing=up]
item replace block ~0 ~0 ~0 container.0 with minecraft:stone 4
setblock ~0 ~0 ~1 minecraft:comparator[facing=north,mode=compare]
setblock ~0 ~0 ~2 minecraft:redstone_wire
setblock ~0 ~0 ~3 minecraft:redstone_lamp