Melons and pumpkins share the same growth mechanic, so one farm design handles both. A planted stem grows through 8 stages, and once mature it grows a fruit onto an adjacent block rather than in place. That "fruit appears next to the stem, not on it" behavior is what makes automation possible: the stem itself is never destroyed by harvesting, only the fruit block beside it is. Point an observer at that spot, wire it to a piston, and the farm harvests itself forever.
Rate~1 fruit/272 sec per stem
XP levelAny stage
Build time20-30 min
DifficultyBeginner
This guide targets Minecraft 26.3 Java Edition. It is a spoke of the farm guides hub, and its emerald output pairs with the emerald farm village trading setup and the general best way to get emeralds guide.
What a melon and pumpkin farm produces
- Melon slices, cheap food that also craft into glistering melons for brewing Healing potions.
- Pumpkins, for jack o'lanterns, snow and iron golems, and carved pumpkin headgear.
- Emeralds, indirectly: farmer villagers buy both melons and pumpkins, at different rates.
How the stem mechanic actually works
Understanding this mechanic is the difference between a farm that produces nothing and one that runs itself.
- Plant melon or pumpkin seeds on farmland. The seed becomes a stem, a small plant that climbs through 8 growth stages (age 0 to age 7).
- Each stage advance is decided by a random tick, the same mechanic that ages wheat and carrots. There is no fixed timer, so growth speed varies stem to stem and cannot be forced beyond keeping conditions optimal.
- At age 7 the stem is mature. Its next random tick no longer advances the stage; instead it tries to grow a fruit onto a valid adjacent block.
- The wiki's community trials put the average time from planted seed to first fruit at around 272 seconds (about 4 minutes 32 seconds), under default random tick conditions. That is an average over many stems, not a guarantee for any single one, since random ticks are probabilistic.
- Melon and pumpkin stems use the identical growth-rate algorithm. Minecraft.wiki does not publish a separate speed multiplier for one over the other, so the throughput difference between the two crops comes entirely from drop count and trade value, not from the stem growing faster.
- A mature stem will not grow another fruit until the current one is removed. Break it, and the stem produces a replacement on its next successful growth attempt.
Light requirement: stems need a light level of 9 or above at the stem's own block to grow at all, in Java Edition. Below that, the stem simply stalls at whatever stage it reached. This means an underground or fully enclosed farm works fine as long as you light it, torches or glowstone above the stems are enough.
The adjacent-block rule (the most common reason a farm produces nothing)
A mature stem does not grow a fruit onto itself, it grows one onto a neighboring block, and that neighbor has to qualify. Per minecraft.wiki, a stem can grow a fruit onto any adjacent:
- Dirt, coarse dirt, rooted dirt
- Grass block
- Farmland
- Podzol, mycelium
- Moss block, pale moss block
- Mud, muddy mangrove roots
If every block next to a mature stem is something else (stone, a fence, another stem, open air with nothing solid beneath it), the stem simply never produces fruit and sits at age 7 indefinitely. This is the single most common reason a new player's farm "does nothing": stems planted in a tight grid with no qualifying block open beside them.
Give every stem exactly one valid neighboring block, and put your harvesting block (observer or piston target) there. If a stem has two or more open valid neighbors, the fruit spawns on a random one of them, and a single-position observer will miss every fruit that lands on the other side. One clean neighbor per stem is what makes the automation reliable.
Melon drops: why the numbers matter for trading
Breaking a mature melon block (by hand, any tool, or a piston pushing into it) drops 3 to 7 melon slices, chosen randomly per break. Fortune increases this: Fortune III raises the average to roughly 6.43 slices per block, capped at 9 slices, which is exactly the crafting cost of one melon block. Even at the cap a break only breaks even, and on average it does not.
Note what that range means against the crafting recipe: 9 slices make one melon block, and an unenchanted break yields 3 to 7. A melon block does not pay for itself when broken, so slices are worth stockpiling for food and potions rather than for rebuilding blocks. Fortune III shifts the average to about 6.43, still short of 9. The stem, not the block, is what makes the farm renewable. Silk Touch drops the intact block instead of slices, useful for moving or displaying melons, useless for a trading farm.
Pumpkins have no equivalent "slices" mechanic: a broken pumpkin block drops as a single item, one pumpkin per block, no multiplier to chase. Shearing an uncarved pumpkin instead yields 4 pumpkin seeds (Java Edition) and leaves the block in place as a carved pumpkin, which does not help a fruit farm since you want the block itself, not seeds.
Melon vs pumpkin: the trading comparison
Both fruits sell to a farmer villager, but at different tiers and different rates, and the automation story differs too.
|
Melon |
Pumpkin |
| Farmer villager trade |
4 melons -> 1 emerald |
6 pumpkins -> 1 emerald |
| Trade tier |
Journeyman |
Apprentice (unlocks earlier) |
| Drop per block broken |
3-7 slices (avg ~5), one block eaten per break event |
1 pumpkin per block, 1:1 |
| Emeralds per block harvested |
The trade takes melon blocks, not slices. One break yields ~5 slices, a block costs 9 slices to craft back, and a trade costs 4 blocks: about 36 slices, or ~7 harvests, per emerald |
1 pumpkin per block, 6 per emerald: 6 harvests per emerald |
| Shearable |
No, melon blocks are not affected by shears |
Yes, but only while uncarved and only for seeds, doesn't harvest the block |
| Piston-safe harvesting |
Piston push breaks the block and drops slices, same as hitting it |
Piston push also breaks it and drops the single pumpkin |
| Other uses |
Food, glistering melon for Healing potions |
Jack o'lanterns, iron golem and snow golem crafting, carved pumpkin headgear |
This is the detail most guides get backwards, so it is worth being blunt about: the farmer trade takes melon blocks, not melon slices. A harvested melon block drops 3 to 7 slices, but crafting one back costs 9, so melons do not reconstitute themselves. Working it through: ~5 slices per harvest, 9 slices per block, 4 blocks per emerald means roughly 36 slices, about 7 harvested blocks, for one emerald. Pumpkins need 6 harvests for the same emerald, and each harvest is one whole tradeable item with no crafting step.
So pumpkins are the better emerald crop, not melons, and they unlock a tier earlier (Apprentice versus Journeyman) besides. Melons win on everything else: they are food, they craft into glistering melons for Healing potions, and Fortune raises slice output while doing nothing for pumpkins. Grow melons for potions and food, pumpkins for emeralds and golems.
Neither crop can be pushed intact by a piston, the push itself breaks the block and drops its items, exactly like hitting it. This is exactly what an observer-piston harvester relies on: the piston does not need to retract and carry a block anywhere, it just has to touch the fruit once.
Carved pumpkins, jack o'lanterns, and golems
This is why many players want a pumpkin farm at all, beyond the trade value:
- Shears on an uncarved pumpkin turn it into a carved pumpkin (a jack o'lantern face, no light of its own) and drop 4 pumpkin seeds, without breaking the block.
- A carved pumpkin placed as a light fixture functions as the jack o'lantern look, since the carved face is already there once placed.
- Iron golems are crafted from 4 iron blocks in a T-shape topped with a carved pumpkin or jack o'lantern, useful for spawning a golem exactly where you want one instead of waiting on a village to spawn one naturally.
- Snow golems use the same principle: 2 snow blocks topped with a carved pumpkin.
None of this needs an automatic farm, a single pumpkin sheared by hand covers most builds, but a farm that keeps a chest of pumpkins on hand removes the friction of running out mid-build.
Building the observer-piston automatic farm
This is the standard, reliable layout for both crops (mix them freely, the mechanic is identical):
- Planting row. Plant seeds on farmland so each stem has exactly one open neighboring block that qualifies (see the adjacent-block rule above). A common layout alternates farmland-with-stem, harvest-block, repeating, so each stem's only valid neighbor is the harvest block beside it.
- Observer. Face an observer directly at the harvest block, the spot the fruit will appear on. It fires a one-tick redstone pulse the moment a block update happens there, including a fruit appearing.
- Piston. Wire the observer's output to a piston aimed at the same block. It extends, touches the fruit, and the fruit breaks and drops (3-7 slices for melon, 1 item for pumpkin).
- Water channel. Run a shallow water stream past the harvest blocks so drops wash toward a collection point.
- Hopper and chest. End the channel at a hopper feeding a chest so drops collect automatically.
- Repeat per stem. Each stem-and-harvest-block pair is independent, so throughput scales linearly with stem count.
Water is not required for the stems to grow, only light level 9+ matters for that, but it is still worth running for the collection channel.
Stackable versions of this design compress many stem rows into a small footprint, relaying the piston pulse between layers with slime blocks instead of running redstone dust between floors. Once the single-layer version works, look up a stackable variant; the underlying mechanic is identical.
Do stems get destroyed by walking on them
No. Stems behave like any other planted crop: walking or falling onto a stem's block does not destroy it, because trampling only affects farmland, not the plant growing on it. What can go wrong is indirect: if the farmland underneath a stem gets trampled and reverts to dirt, the stem loses its valid base and pops off as a dropped item. Fence the farm off, or keep mobs from wandering onto the farmland rows, and this is a non-issue.
Common mistakes
If yours is already built and doing nothing, the farm troubleshooter walks the causes in the order worth checking, starting with the ones that take ten seconds to rule out.
- Multiple open neighbors per stem. Fruit spawns on a random valid neighbor; a single observer only catches whichever side it lands on. Leave exactly one.
- Piston aimed at the stem instead of the fruit block. This destroys the stem (dropping 0-3 seeds, forcing a replant) rather than harvesting the fruit next to it.
- Light level under 9 at the stem. Growth stalls indefinitely, a common miss on underground or enclosed farms.
- Expecting melons and pumpkins to grow at different speeds. They share one growth algorithm; if one side of a mixed farm looks slower, check light and adjacent blocks before assuming a mechanic difference.
Frequently asked questions
How do melon and pumpkin farms work?
A planted stem climbs 8 growth stages on random ticks, then a mature stem grows a fruit onto one specific kind of adjacent block (farmland, dirt, grass block, and several others). An observer watches that block and, when a fruit appears, fires a piston that breaks it; a water channel and hopper collect the drop, and the stem regrows another fruit once the spot is clear again.
Are melon or pumpkin farms better for emeralds?
Pumpkins, and the reason is a detail that trips up a lot of guides. The farmer trade takes melon blocks, not slices. Breaking a melon block gives 3 to 7 slices while crafting one back costs 9, so a melon block does not pay for itself: about 7 harvests go into one emerald. A pumpkin harvest is one whole tradeable pumpkin, and 6 of those make an emerald. Pumpkins also unlock at Apprentice rather than Journeyman. Melons are still the better crop for food and for glistering melons, so most players grow both, but for emeralds specifically the answer is pumpkins.
Why is my melon or pumpkin stem not growing fruit?
Three causes, in order of likelihood: no valid empty block of the right type next to the mature stem, light level below 9 at the stem, or a fruit already sitting there unharvested from a previous cycle. Check the adjacent-block list, add light, confirm the harvest spot is clear.
Can pistons push melon or pumpkin blocks without breaking them?
No. Both fruit blocks break and drop their items the instant a piston touches them; they cannot be relocated intact the way most blocks can. This is exactly what the observer-piston farm relies on for harvesting.
Can I shear a melon like a pumpkin?
No. Shears only affect uncarved pumpkins, turning them into a carved pumpkin and dropping seeds without breaking the block. Melon blocks have no shearing interaction; the only way to get slices is to break the block.
Do melon and pumpkin stems need water to grow?
No. Only light level 9 or above at the stem matters for growth. Water is for the farmland under other crops and for washing drops toward a hopper.
What are melons used for besides food and trading?
Melon slices craft into glistering melons for Healing potions and can be traded to a Journeyman-tier farmer villager for emeralds. Nine slices also craft back into a melon block for compact storage or transport.
A melon and pumpkin farm covers food, potions, jack o'lanterns, and emeralds from one simple observer-and-piston build. Feed the emeralds into an emerald farm trading hall or read the general best way to get emeralds breakdown, and see the farm guides hub for every other automatic farm.