How to build an automatic sugar cane farm in Minecraft
An observer and piston farm for up to 8 canes that collects every drop, tested on a Java 26.3 server: build it layer by layer from the 3D plan.

On this page · 7
What you need
- Sugar Cane ×8
- Dirt ×8
- Piston ×8
- Observer ×8
- Redstone Dust ×8
- Rail ×8
- Minecart with Hopper ×8
- Hopper ×8
- Hopper ×2
- Water Bucket ×1
- Chest ×1
- Planks (any wood)= 45 logs, any wood ×177
- Iron Ingot2 stacks + 13 ×141
- Cobblestone1 stack + 16 ×80
- Redstone Dust ×32
- Sugar Cane ×8
- Dirt ×8
- Nether Quartz ×8
- Water Bucket ×1
Gathered 0 / 11Raw = everything broken down with our recipes
This farm harvests each plant when it reaches 3 blocks and keeps the base, so it replants itself forever. It loses no drops: we ran it on a Java Edition 26.3 server and every cane ended in the chest. The plan holds 8 plants, the most one water source can feed.
Automatic sugar cane farm
- Size (W × H × D)
- 5 × 7 × 10
- Blocks placed
- 193
- Block types
- 10
- Layers
- 7
- Difficulty
- Easy
- Main material
- Stone
- All blocks since
- 1.12.2
- Survival
- Yes
- ID
Layer by layer
Seen from above, north at the top. The layer below shows faded.

Stone Bricks× 17

Stone Bricks× 24
Hopper× 9
Chest× 1

Stone Bricks× 28
Rail× 8
Hopper× 1

Stone Bricks× 22
Dirt× 8
Water Bucket× 1

Stone Bricks× 22
Sugar Cane× 8

Stone Bricks× 14
Piston× 8

Observer× 8
Redstone Dust× 8
Stone Bricks× 6
- NNorth is up
- Stairs: the arrow points to the tall side
- Hollow arrow: upside-down stairs
- Corner mark: slab in the top half
- Faded: layer below
- Blue arrow: way the part faces (piston pushes, observer watches, hopper empties, repeater and comparator send the signal); dot: up, cross: down
Materials
193 items · 12 inventory slots · 1 Shulker box
360 items · 12 inventory slots · 1 Shulker box
// Estimated from the crafting recipes, rounded up. Glass, stone and smooth blocks are traced back to what you smelt.
Get it in your world
/place template blockaria:sugar_cane_farm ~ ~ ~Places the build with its north-west bottom corner at your position. Needs cheats (permission level 2).
/place template blockaria:sugar_cane_farm ~ ~ ~ clockwise_90Structure file (.nbt) for Java Edition. Put it in saves/<world>/generated/blockaria/structure/, then run the command above or load it with a Structure Block.
Orientation used below: the canes run in a straight line, the water is on their left, the pistons on their right. The chest sits one block past the last plant, at the level of the hoppers.
Lay the hopper line and the chest
Dig a trench 3 blocks deep under the future row of canes: hoppers at the bottom, rails above them, dirt on top. Place a Chest at the far end, then 8 Hoppers in a row, each pointing into the next one and the last into the chest (layer 2 of the plan). Sneak while placing each hopper against the previous one so it points the right way.
Put the rails and minecarts on the hoppers
- Place a Rail on every hopper (layer 3). Each hopper takes items out of the minecart above it.
- Put one Minecart with Hopper on each rail. Wall both ends of the rail so the minecarts cannot roll away.
- Beside the last rail, under where the end of the water will be, place one more Hopper pointing down into a Hopper that points into the last hopper of the line.
Place the dirt and start the water
- Cover the rails with a row of 8 Dirt blocks (layer 4). Grass Block, Sand, Mud and Moss Block work as well.
- Next to the dirt, dig a 1 block wide channel at the same height, with a solid floor except over the end hopper.
- Pour one Water Bucket at the first block of the channel. Water flows 7 blocks, so it reaches the hopper at the end and carries floating items into it.
- Build a wall 4 blocks high across both ends of the farm so no item flies out.
Add the pistons and observers
- On the side opposite the water, 2 blocks above the dirt, place a Piston in front of each future cane, head toward the cane (layer 6). A piston's head points toward you when you place it, so stand on the dirt row and look at the spot.
- Above each piston, place an Observer whose face looks at the spot of the third cane block (layer 7). Its face also points toward you when you place it, so do it from the dirt row too; the red dot ends up at the back.
- Behind the observers, put a row of solid blocks one level lower and a line of Redstone Dust on them. Each observer powers the dust behind it, the dust powers the block under it, and that block pushes the piston.
The dust links every observer, so when one cane reaches 3 blocks, all 8 pistons fire. Canes that are 2 blocks tall lose their second block too: nothing is wasted, the base always stays.
Plant the sugar cane
Plant last. Wait until the water reaches the end of the channel, then plant one Sugar Cane on each dirt block (layer 5). A cane only survives with water next to the block under it: if you plant before the water arrives, it breaks.
Let it run
The top block of a cane grows after 16 random ticks. With the default random tick speed of 3, a block of a chunk section gets one every 1,365 game ticks on average, so a new cane block appears about every 18 minutes: 3.3 canes per plant per hour, about 26 an hour for 8 plants. Crops only grow while you stay within simulation distance, so build the farm near your base.
Java and Bedrock
The build uses no quasi-connectivity or other Java-only redstone. We tested it on Java Edition 26.3 only, including the minecart collection. In Bedrock Edition sugar cane also grows from Bone Meal, which Java does not allow.
FAQ
How fast does sugar cane grow?
A new block every 18 minutes on average with the default random tick speed of 3: the top block needs 16 random ticks. That is about 3.3 canes per plant per hour, and only while you are within simulation distance.
Why do I need Minecarts with Hopper?
When the piston breaks a cane, about half the drops fall straight down onto the dirt, inside the base of the plant. A hopper cannot sit under the dirt, but a Minecart with Hopper on a rail under it picks those items up through the block.
Can I use Bone Meal on sugar cane?
Not in Java Edition: sugar cane does not accept Bone Meal. Bedrock Edition lets you use it.
Does sugar cane need still water?
No. Any water works, flowing water included, as long as it touches the block the cane stands on. Frosted Ice works too.
Blocks & items in this guide
17 · recipe, drops and data for each
Hopper
Dirt
Rail
Piston
Chest
Observer
Sugar Cane
Minecart with Hopper
Water Bucket
Redstone Dust
Water
Minecart
Grass Block
Sand
Mud
Moss Block
Bone Meal