Automatic sugar cane farm in Minecraft
Sugar cane is one of the most valuable resources in Minecraft. It gives you paper for books, maps, firework rockets and villager trading, and sugar for cakes and Potions of Swiftness. Harvesting it by hand is tedious, and sugar cane grows slowly. An automatic farm with an observer and a piston solves both problems: it harvests the cane the moment it grows, without you lifting a finger. This guide shows you three versions, from a basic one (10 minutes to build) to a multi-level mega farm. If you don't know how observers and pistons work yet, read the redstone guide first.
1. How sugar cane grows
Before you start building, you need to understand how sugar cane grows. These rules decide whether your farm will be efficient or hopeless.
Growth conditions
- Ground: Sugar cane grows on sand, dirt, grass blocks, podzol, mycelium and mud. Sand is the most popular choice because it's cheap and easy to find.
- Water: The block the cane is planted on MUST be next to water (directly adjacent, not diagonal). Every block of the farm needs water within 1 block.
- Light: Sugar cane doesn't need light to grow (it grows even in complete darkness). Light doesn't speed up its growth either.
- Maximum height: Sugar cane grows up to 3 blocks tall. The farm harvests the top (3rd) block and leaves the bottom 2 (or just the bottom 1).
- Growth speed: On average it takes 18 minutes for the cane to grow 1 block (in Java Edition). Bone meal does NOT speed up sugar cane growth in Java Edition (it only works in Bedrock).
Sugar cane growth depends on randomTickSpeed (3 by default). At higher values (for example /gamerule randomTickSpeed 100) the cane grows faster, but that's cheating. On a normal survival server the only way to get more sugar cane is to build a bigger farm (more rows = more harvest per minute).
Optimal layout
The most efficient layout is rows of sugar cane separated by water channels. One water channel can serve two rows of cane (one on each side). The width of the farm is a multiple of the pattern: 1 block of cane + 1 block of water + 1 block of cane. There's no limit to how long the rows can be, but keep your render distance in mind: sugar cane doesn't grow outside loaded chunks.
2. Simple farm: observer + piston
The simplest automatic sugar cane farm uses an observer that detects the moment the third block of cane grows, and a piston that knocks it off right away. One module takes 5 minutes to build.
Materials (per module: 1 sugar cane)
- 1x Observer: detects when a new block of sugar cane appears
- 1x Piston (a regular one, not sticky): knocks off the top block of cane
- 1x Redstone Dust: connects the observer to the piston
- 1x sand or dirt: the block the cane grows on
- 1x sugar cane: to plant
- Water: next to the sand or dirt
- ~4x building blocks: for the casing
Step-by-step build:
- Place a block of sand. Put a water source right next to it (directly adjacent, not diagonal). Plant sugar cane on the sand.
- At the height of the 3rd block of cane (2 blocks above the sand), place an Observer. The observer's face (the side with the "eyes") must look at the spot where the 3rd block of cane will appear.
- Behind the observer (the side with the red dot, the signal output), place Redstone Dust on a building block.
- Next to the 3rd level of the cane (at the same height as the observer, but on the other side of the cane), place a Piston facing the cane.
- Connect the redstone dust to the piston: the signal from the observer has to reach the piston.
- Done. When the cane grows to its 3rd block, the observer detects the change and sends a pulse to the piston, and the piston knocks off the top block. The sugar cane drops as an item.
How it works
The observer watches the space in front of it. When the cane grows and a new block appears, the observer sees this as a block state change (from air to sugar cane). It sends a single redstone pulse out of its back. That pulse activates the piston, which extends and pushes the top block of cane sideways. The cane breaks and drops as an item. The piston retracts (the pulse was short) and the observer goes back to watching. The bottom 1-2 blocks of cane stay untouched, so the cane grows back without replanting.
3. Expanding to a full system
One module gives you about 3-4 sugar cane per hour (at the default tick speed). For decent production you need rows. A good starter farm has 16-32 modules, and a mega farm has 128 or more.
Materials (16-module system)
- 16x Observer
- 16x Piston
- 16x Redstone Dust
- 16x sand
- 16x sugar cane
- Water (sources): 8 sources for 16 modules (1 source serves 2 sugar cane)
- ~40x building blocks
- Collection system (see section 4)
Step-by-step build:
- Mark out a rectangle 16 blocks long and 5 blocks wide. The middle row (the 3rd block across) is the water channel.
- Place sand on both sides of the water channel, left and right. That gives you 2 rows of 16 sand blocks = 32 spots for sugar cane. (We're building 16 modules, though, so use one row to start with.)
- Fill the channel with water sources. Every block of the channel must be a source (use a bucket or an infinite water source).
- Plant sugar cane on every sand block.
- At the height of the 3rd block of cane (2 blocks above the sand), build a line of observers, each one facing its own cane.
- Behind the observers, lay a line of building blocks with redstone dust on top. The dust connects each observer to its piston.
- On the other side of the cane (opposite the observers), place a row of pistons facing the cane. Each piston belongs to one observer.
- Test it: place a block of sugar cane by hand at the 3rd level of any module. The observer should detect it and the piston should knock it off.
A 16-module farm produces about 50-60 sugar cane per hour on average (at randomTickSpeed 3). A 64-module farm gives about 200-240 per hour, and a 128-module farm about 400-480. A 64-module farm produces enough paper for trading with a librarian (about 1 emerald for 24 paper) after an hour of AFK.
4. Hopper collection system
The piston knocks off the cane, but the cane drops on the ground as an item. Without a collection system, those items despawn after 5 minutes. You have two options: hoppers in the floor or a minecart with hopper on rails.
Option A: Water stream + hoppers
The easiest method. Under the pistons (at floor level, where the knocked-off cane lands), build a water channel with a gentle slope that carries the items to a line of hoppers at the end of the channel. The hoppers lead into a double chest.
Building the collection system (water):
- At floor level (below the cane), build a channel 1 block wide along the whole row of the farm.
- Put a water source at one end of the channel. The water flows to the other end (8 blocks max). If the row is longer, add more sources every 8 blocks with a gentle slope.
- At the end of the channel (where the water stops), place 2-3 hoppers leading into a double chest.
- The knocked-off cane falls into the channel, the water carries it to the hoppers, and the hoppers move it into the chest. Done.
Option B: Minecart with Hopper
The better option for large farms. Lay rails under the whole row of the farm. Put a Minecart with Hopper on the rails; it rides back and forth and picks up the items above it. At the ends of the track, place Powered Rails with redstone torches so the minecart turns back.
Building the collection system (minecart):
- Under every block of sand (one level below the farm floor), lay rails. Use regular Rails with a Powered Rail at each end and every 8 blocks.
- Connect the Powered Rails to a Redstone Torch or a Lever so they're active (lit up).
- Place a Minecart with Hopper on the rails. The minecart picks up items as it passes under them (the hopper in the minecart collects items from 1 block above the rail).
- At one end of the track, place a Hopper under the rail, leading into a double chest. When the minecart passes over this hopper, the hopper automatically empties the minecart's contents into the chest.
- The minecart runs back and forth: the Powered Rail at the end pushes it back, it collects items along the way, and at the other end it empties into the chest.
5. Advanced variants
Double-sided farm
Instead of a single row of cane on one side of the channel, build two rows, one on each side of the water. You double your output while using only slightly more materials. The observer and piston for each row work independently, so if one module breaks, the other keeps working.
Multi-level farm
You can stack farms vertically, one above the other, with 5 blocks of space between floors. A 4-floor farm with 64 modules (16 per floor) takes up relatively little space and produces as much as a single-level 64-module farm spread out flat. Water from the upper floors flows down into a central collection channel at the bottom.
Combining it with a flying machine
Instead of an observer and piston at every cane, you can use a flying machine with a piston arm that flies over the whole field and knocks off the cane. This approach is simpler to build (one machine instead of 64 modules), but less efficient: the machine harvests the cane once per pass, whether or not it has grown.
Bamboo farm
The same design (observer + piston) works exactly the same way with bamboo. Bamboo grows faster than sugar cane (about 4 minutes per block on average vs 18 minutes for sugar cane), but it's less useful (mainly as fuel and for scaffolding). If you need a lot of fuel, a bamboo farm with the same design is the fastest option in the game.
Sugar cane: paper (villager trading, maps, rockets) + sugar (Potions of Swiftness, cakes). Bamboo: scaffolding (the best block for building high up) + fuel (fast, but not very efficient) + bamboo wood (since 1.20, decorative). If you trade with villagers, a sugar cane farm comes first. If you build a lot, go for a bamboo farm for scaffolding. Ideally have both: they take up the same amount of space and use the exact same design.
Hooking it up to automatic trading
A mega sugar cane farm + automatic paper crafting + a village with librarians = unlimited emeralds. The setup: the farm produces sugar cane, the sorter separates the items, the cane goes into a chest, and you craft paper by hand and sell it to a villager. Full automation (crafting + trading) needs more advanced mechanisms, but the farm + sorter alone already makes life much easier. You'll find more about automatic farms in a separate guide.
Related guides
- Redstone basics: observers, pistons and hoppers, the building blocks of a sugar cane farm.
- Farms: a complete guide to automatic resource farms.
- Item sorter: automatically separate the harvested sugar cane from other items.
- Flying machines: an alternative way to harvest sugar cane with a flying harvester.
- Redstone in builds: other practical uses of redstone in your base.
- Crafting basics: recipes for paper, sugar and other sugar cane products.
- Building basics: building materials and techniques.