Automatic Pumpkin and Melon Farm
Beginner Java + Bedrock
Produces: Pumpkins and melons, fully automatically
Quick answer: Pumpkin and melon stems grow a fruit on a random adjacent dirt block. An observer watching that spot fires a piston the moment the fruit appears, breaking it into a hopper. Repeat the module in rows for infinite pumpkins and melons.
How it works
- A planted stem matures, then grows a pumpkin or melon on a random adjacent farmland/dirt/grass block with air above - the same stem fruits again and again.
- An observer facing the fruit spot detects the fruit appearing and outputs a one-tick pulse: perfect for firing a piston.
- The piston breaks the fruit (melons drop 3-7 slices), and a hopper minecart or hopper line collects it.
- Bone meal speeds up stem growth but not fruiting - the fruiting itself is random-tick based.
Materials
- Pumpkin or melon seeds (chest loot, or craft from found fruit)
- Farmland, water to hydrate it, and light (torches or glowstone)
- 1 observer + 1 piston per fruit spot
- Hoppers or a hopper minecart rail below, plus chests
- Building blocks for rows
Build steps
- Till a hydrated farmland row and plant stems with one empty dirt block beside each stem (the fruit spot).
- Place an observer facing each fruit spot (its face toward the spot, red dot toward the piston).
- Put a piston beside each spot so it pushes across and breaks the fruit the instant it grows.
- Run hoppers or a hopper minecart track under the row into chests.
- Light the whole build 24/7 so stems keep working, and stack floors vertically for volume.
Rates
A single module fruits every few minutes; a 20-module double row produces several stacks per hour of each crop with zero player input.
Tips
- Melon slices are the backbone of glistening melons for healing potions; pumpkins trade to farmer villagers for emeralds (6 pumpkins = 1 emerald at apprentice level).
- Keep the fruit spot as the ONLY valid growth spot per stem by slab-proofing other adjacent blocks - the observer then never misses.
- Jack o'lanterns from pumpkin + torch make great underwater lighting.