Redstonery
RedstoneryCircuits › Fullness-controlled overflow storage
Storage circuit

Fullness-controlled overflow storage

Give excess items a defined destination.

8 × 4 footprint4 layers40 blocksTested in 4 rotationsJava Edition 26.2
Open in the simulatorBuild it in the game

Layout

Layer 0 (on the floor)
barrel at x 0, z 0stone at x 0, z 2stone at x 0, z 1
Layer 1 (1 up)
hopper [facing=down] at x 0, z 0stone at x 2, z 0stone at x 3, z 0stone at x 4, z 0stone at x 7, z 0stone at x 7, z 1stone at x 7, z 2stone at x 7, z 3stone at x 0, z 3stone at x 1, z 3stone at x 2, z 3stone at x 3, z 3stone at x 4, z 3stone at x 5, z 3stone at x 6, z 3redstone dust at x 0, z 2redstone dust at x 0, z 1
Layer 2 (2 up)
hopper [facing=east] at x 0, z 0barrel at x 1, z 0comparator [facing=west, mode=compare] at x 2, z 0comparator [facing=west, mode=compare] at x 3, z 0redstone block at x 3, z 1redstone dust at x 4, z 0stone at x 5, z 0redstone torch (on a wall) [facing=east] at x 6, z 0redstone dust at x 7, z 0redstone dust at x 7, z 1redstone dust at x 7, z 2redstone dust at x 7, z 3redstone dust at x 0, z 3redstone dust at x 1, z 3redstone dust at x 2, z 3redstone dust at x 3, z 3repeater [facing=east, delay=1] at x 4, z 3redstone dust at x 5, z 3redstone dust at x 6, z 3
Layer 3 (3 up)
chest [facing=south, type=single] at x 0, z 0
redstone dustredstone torchrepeater or comparatorcontainerhopper, dropper or dispenserredstone blocksolid blockarrows point where a device sends its output; north is up

How it works

The primary barrel starts with space for two stones. A full-level comparator unlocks the lower overflow hopper only after the primary is full, sending the remaining six stones below. Removing items from primary storage locks the overflow route again.

  1. The primary barrel starts with room for two stones, and the feed chest contains eight.
  2. A full-level comparator unlocks the lower overflow route after primary storage fills, sending the remaining six stones to the lower barrel.

Inputs and outputs

  • Inputfeed chest (x 3, y 3, z 0)
  • Outputprimary barrel (x 4, y 2, z 0)
  • Outputoverflow barrel (x 3, y 0, z 0)

Blocks you need

17 × stone, 13 × redstone dust, 2 × hopper, 2 × barrel, 2 × comparator, 1 × chest, 1 × redstone block, 1 × redstone torch (on a wall), 1 × repeater.

Build it in the game: 68 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 ~3 ~3 ~0 minecraft:chest[facing=south,type=single]
setblock ~3 ~2 ~0 minecraft:hopper[facing=east]
setblock ~4 ~2 ~0 minecraft:barrel
setblock ~3 ~1 ~0 minecraft:hopper[facing=down]
setblock ~3 ~0 ~0 minecraft:barrel
setblock ~5 ~1 ~0 minecraft:stone
setblock ~5 ~2 ~0 minecraft:comparator[facing=west,mode=compare]
setblock ~6 ~1 ~0 minecraft:stone
setblock ~6 ~2 ~0 minecraft:comparator[facing=west,mode=compare]
setblock ~6 ~2 ~1 minecraft:redstone_block
setblock ~7 ~1 ~0 minecraft:stone
setblock ~7 ~2 ~0 minecraft:redstone_wire
setblock ~8 ~2 ~0 minecraft:stone
setblock ~9 ~2 ~0 minecraft:redstone_wall_torch[facing=east]
setblock ~10 ~1 ~0 minecraft:stone
setblock ~10 ~2 ~0 minecraft:redstone_wire
setblock ~10 ~1 ~1 minecraft:stone
setblock ~10 ~2 ~1 minecraft:redstone_wire
setblock ~10 ~1 ~2 minecraft:stone
setblock ~10 ~2 ~2 minecraft:redstone_wire
setblock ~10 ~1 ~3 minecraft:stone
setblock ~10 ~2 ~3 minecraft:redstone_wire
setblock ~3 ~1 ~3 minecraft:stone
setblock ~3 ~2 ~3 minecraft:redstone_wire
setblock ~4 ~1 ~3 minecraft:stone
setblock ~4 ~2 ~3 minecraft:redstone_wire
setblock ~5 ~1 ~3 minecraft:stone
setblock ~5 ~2 ~3 minecraft:redstone_wire
setblock ~6 ~1 ~3 minecraft:stone
setblock ~6 ~2 ~3 minecraft:redstone_wire
setblock ~7 ~1 ~3 minecraft:stone
setblock ~7 ~2 ~3 minecraft:repeater[facing=east,delay=1]
setblock ~8 ~1 ~3 minecraft:stone
setblock ~8 ~2 ~3 minecraft:redstone_wire
setblock ~9 ~1 ~3 minecraft:stone
setblock ~9 ~2 ~3 minecraft:redstone_wire
setblock ~3 ~0 ~2 minecraft:stone
setblock ~3 ~1 ~2 minecraft:redstone_wire
setblock ~3 ~0 ~1 minecraft:stone
setblock ~3 ~1 ~1 minecraft:redstone_wire
item replace block ~3 ~3 ~0 container.0 with minecraft:stone 8
item replace block ~4 ~2 ~0 container.0 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.1 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.2 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.3 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.4 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.5 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.6 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.7 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.8 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.9 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.10 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.11 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.12 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.13 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.14 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.15 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.16 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.17 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.18 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.19 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.20 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.21 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.22 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.23 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.24 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.25 with minecraft:stone 64
item replace block ~4 ~2 ~0 container.26 with minecraft:stone 62