Automatic sugar cane farm

Three sugar canes grow on mud with water beside them. When a cane grows to 3 blocks, the observer on its piston fires, and the piston breaks the top two blocks. The bottom block stays and grows again. Hoppers under and in front of the canes collect the sugar cane into a chest.

Sugar cane farm in the 3D viewer
39 blocks · the top 2 of 3 blocks

How it works, part by part

1 · Sugar caneEach cane grows a block on its top, up to 3 tall. In the game that happens at random, about every 18 minutes; the test makes it grow.
2 · MudSugar cane needs sand or mud with water beside it. Mud is a little lower than a full block, so the hopper under it can still pick up items lying on top. Sand or stone would stop it.
3 · WaterA water source beside each mud block, held in by stone. Sugar cane needs it to stay planted.
4 · ObserversEach sits on a piston and watches the space where the cane's third block grows, not the cane itself. A cane 2 tall leaves it quiet; the third block fires it. Watching the second block wouldn't work: the observer would see the piston head come and go and fire again and again.
5 · PistonsA piston pushes into the cane's second block and breaks it. The block above breaks a tick later. Both drop their sugar cane, and the bottom block stays to grow again.
6 · Dust behind the pistonsAn observer powers the dust behind it, and the dust powers the blocks under it, beside each piston. So one cane growing fires all three pistons. The other pistons only break blocks that have grown.
7 · Hoppers under the mudThe top block's item falls straight down onto the mud, and the hopper under it takes it. Each passes its items to the hopper line in front.
8 · Hopper lineThe piston pushes the second block's item forward, and it falls into this line. The hoppers pass everything along to the chest.
9 · ChestWhere the sugar cane ends up.
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
  • 14× stone
  • 6× hopper
  • 3× mud
  • 3× sugar cane
  • 3× water
  • 3× piston
  • 3× observer
  • 3× redstone dust
  • 1× chest

Layer by layer

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

  1. Layer 1 6× hopper, 3× stone, 1× chest
  2. Layer 2 5× stone, 3× mud, 3× water
  3. Layer 3 3× sugar cane, 3× stone
  4. Layer 4 3× piston, 3× stone
  5. Layer 5 3× observer, 3× redstone dust

Want a variant? Ask your AI.

Show me the Sugar cane farm from Contraptify and make a variant of it. How to connect your AI

Related machines