{{About||information on farming pumpkins and melons|Tutorials/Pumpkin and melon farming|information on the systematic production of other resources|Renewable resource|information on other types of farming|Farming}}
[[File:Growing Wheat Farm.png|240px|thumb|right|Crops currently growing.]]
[[File:Grown Wheat Farm.png|240px|thumb|right|Crops ready to be harvested.]]
[[File:Wheat Growing.gif|thumb|240x240px|Sped-up GIF of wheat growing.]]
'''Crop farming''' allows players to [[Controls|plant]] any of several [[vegetable]]s and other [[crops]] on [[farmland]], which then grow over time and can be harvested for [[food]]. This page covers four separate crops, all of which share essentially the same growth mechanics, though they produce different crops. All four seeds need to grow to maturity to produce more crops.
== Starting out ==
Each crop requires a [[seed]] for planting, and getting the first few can be non-trivial. After the first few seeds, or the first carrot or potato are planted, they eventually produce more seeds or vegetables than you started with. These can be used to replant, and plant more empty spots, until you've filled your farm. All four crops provide food for the player, and also to breed various farm animals. In addition to the sources listed below, all four crops can be found in [[village]] farms, and sometimes in village chests.
Players may want to set up a [[wheat]] farm early on, to provide [[bread]] as their first food supply; however, as the game progresses, better foods become available, and the wheat farm can be re-purposed for breeding animals. Carrots, potatoes, and beetroot are usually not found until somewhat later in the game.
* '''[[Wheat]]''' is grown from [[Wheat Seeds|seeds]], which can be collected by destroying [[grass]]. Each grass plant has only a {{frac|1|8}} chance of dropping seeds. However, grass is common in most biomes, so gathering seeds is fairly easy. Harvesting a mature wheat plant yields 1 piece of wheat and 1-4 seeds. If harvested early, they drop a single seed, but no wheat. The wheat items can be crafted into bread, or combined with other items to make [[cake]], or [[cookie]]s. The wheat itself can't be planted.
* [[Beetroot|'''Beetroots''']] are similarly grown from [[beetroot seeds]], each plant yielding one beetroot and 1-4 seeds. The seeds can be found as [[chest loot]]. With a [[Crafting Table|crafting table]] and a [[bowl]], beetroots can be crafted into [[Beetroot Soup|beetroot soup]], a more filling (but non-stackable) food item. Beetroots can also be crafted into [[Red Dye|red dye]]. As with wheat, beetroot items cannot be planted.
* [[Carrot|'''Carrots''']] and [[Potato|'''potatoes''']] are their own seed, which is planted directly to grow more of the same. Killed [[zombie]]s occasionally drop a single carrot or potato (which you can cultivate and multiply into a farm's worth). Each mature plant can be harvested to get 1-4 potatoes or carrots respectively. (A potato plant also has an additional 2% chance of dropping a useless [[poisonous potato]].) Both carrots and potatoes can be eaten directly, but can also be improved:
** Potatoes can also be [[cook]]ed into [[baked potato]]es for more nutrition.
** Given some gold, carrots can be crafted into [[golden carrot]]s, one of the best foods in the game.
Crops can also be used to lure and [[Breeding|breed]] various farm animals: Wheat for [[Cow|cows]] and [[sheep]] (or the rare [[Mooshroom|mooshrooms]]), seeds (''any'' kind) for [[Chicken|chickens]], and any of carrots, (raw) potatoes or beetroots for [[Pig|pigs]]. Carrots (or [[Flower|dandelions]]) can also be used for [[Rabbit|rabbits]].
== Sowing ==
These crops can only be planted on [[farmland]], which is produced by using a [[hoe]] on [[dirt]] or [[grass block]]s. If there is no [[water]] nearby, farmland dries out and reverts to dirt, but only if there is no crop yet planted on it. The water can be a "still" source block, or flowing, but either needs to be within four blocks of the farmland horizontally, on the same vertical level or one level above. If farmland becomes completely dry ''and'' a crop is planted on it, the farmland does not revert to dirt. Thus, it is possible to grow crops without water (say, in [[the Nether]]) by hoeing the dirt and immediately planting a crop. The farmland does not revert until after the crop is harvested, and even so that can generally be avoided by immediately replanting. Note, however, that this "dry farming" makes crops grow slowly.
At the beginning of the game when [[bucket]]s are not available, you can till the dirt at the edge of a pond or [[lake]] or [[river]], perhaps digging a trench to extend the water supply inland or straightening the shoreline by adding or removing dirt blocks at the top layer of the water's edge. However, once the player has a comfortable amount of resources, setting up some [[fence]]d farm plots prevents mobs from trampling the crops and attacking the farmer.
A basic repeatable farm plot consists of a 9×9 square of farmland with the center square dug out and filled with a water source block. This gives 80 blocks of farmland which can be fenced with 40 pieces of fence including [[gate]]s and is the most efficient arrangement for simple farms. For larger farms, this plot can be repeated in both the X and Z [[direction]]s.
Leaving the water source uncovered poses a risk of falling into it and then trampling some of the farmland when jumping out of it. The water can be covered with any block, but using a [[slab]], [[carpet]], [[lily pad]], or other block that can be walked onto without jumping is better to prevent trampling. In modern versions of the game, you can also place a slab ''in'' the water block, providing a walkable surface with the farmland. In cold [[biome]]s, covering the water with a solid block also guards it against [[Ice|freezing]]. An alternative that also provides [[light]] so some crops can continue to grow at low [[Light level|light levels]] is to suspend a block above the water with one space of [[air]] between them—so you can neither fall into the water nor jump on and off the block—and place torches on that block (or use a [[jack o'lantern]] or [[glowstone]] as the block).
Placing [[torch]]es or other light sources near the crops allows them to continue growing underground, and it prevents [[hostile]] mobs from spawning near them. Planting crops in alternate rows (that is, rows separated by bare farmland or a different crop) speeds up growth as well.
== Growth and harvesting ==
[[File:ReadyWheatCrop.jpg|thumb|300px|In-game wheat at several stages.]]
=== Growing conditions ===
[[File:Alternating Crops Growth.gif|thumb|300px|Alternating rows of different crops (right) vs one type of crop (left).]]
Any of [[wheat]], [[carrot]]s, [[beetroot]]s and/or [[potato]]es grow only under the following conditions:
* It is directly above a block of [[farmland]]. If the farmland is removed or reverts to [[dirt]], the crop breaks.
* A [[light level]] of 9 or higher at the plant block, not in the block above it. This doesn't have to be sunlight, so [[torch]]es let crops grow underground. {{IN|java}}, crops continue to grow at night if the plant block is exposed to the sky and one player is not sleeping. See [[Effects of light|Light § Effects of light]] and [[Night]] for details.
* The chunk the crop is in is receiving [[tick#Chunk tick|chunk ticks]]. {{IN|bedrock}} this only requires that the chunk is loaded, while {{in|java}} the chunk also has to be within 128 blocks of the nearest player.
In single-player or in [[multiplayer]] with only one player nearby, crops do not grow faster while the [[player]] is [[sleeping]].
Wheat, carrots and potatoes have a total of 8 growth stages. Beetroot has 4 growth stages. For wheat, each stage is a little taller and darker than the last, and the crop is mature when the wheat turns brown. Carrots and potatoes have only 4 distinct appearances—each pair of stages appears identical except that stage 7 shares the appearance of stages 5-6 (so the player can tell if it's fully mature or not, otherwise the fully mature and its previous stage can confuse the player). When mature (stage 8 for carrots and potatoes, stage 4 for beetroots), carrots and beetroots show bright crops protruding from the ground, while on a potato plant, the leaves appear significantly taller than in previous stages.
Growth happens at random intervals and is affected by growing conditions. The average duration of each stage ranges from 5 [[Daylight cycle|minutes]] (in ideal conditions) to 35 minutes (in worst-case conditions). Aside from being placed on [[hydrated]] farmland, "ideal conditions" include having light sources (for underground growth) and planting crops in alternate rows: each row of plants should be next to either a different crop or empty farmland. For the plants on the edges of the plot, it's ''also'' ideal to have more farmland beyond the row ends and the outer rows; however, this is rarely done since it amounts to leaving the edges of the available field empty. Full details of the growth mechanics are given below.
=== Accelerating growth ===
Using [[Bone Meal|bone meal]] on any crop plant has a chance to advance it a random number of growing stages, allowing you to harvest it faster.
[[Bee]]s can also be used to accelerate the growth of crops by pollinating them. After collecting pollen from flowers, bees visually drop pollen particles as they make their way back to their [[Beehive|hive or nest]]. If these particles land on a crop, the crop advances one growth stage. Each bee can pollinate up to 10 crops per trip. Players can utilize this behavior by placing their crops between beehives and [[Flower|flowers]] to maximize crop pollen exposure. For more details, see [[Bee#Pollinating|Bee § Pollinating]].
=== Harvesting ===
{{FakeImage|{{animate|Wheat Age 0.png;Wheat Age 1.png;Wheat Age 2.png;Wheat Age 3.png;Wheat Age 4.png;Wheat Age 5.png; Wheat Age 6.png;Wheat Age 7.png|120px}}|Crop stages.}}
Crops can be harvested at any time by [[Controls|left-clicking]] on them with or without a [[tool]], but when immature, they yield only one of the corresponding seed item. When mature, wheat yields 1-4 [[seeds]] and one item of wheat. Carrots and potatoes yield 1-4 of the crop when mature. Mature potato plants have a 2% chance of dropping a [[poisonous potato]] in addition to the normal potatoes. Beetroots drop 0-3 seeds and 1 beetroot.
Because harvesting one block at a time can become very tedious, [[Tutorials/Crop farming#Farm designs|methods]] for automatically harvesting fields have been developed. The most common tactic is to flood the field with water (which harvests all the plants it touches), but other methods are possible as discussed below.
== Growth rate ==
[[File:OptimalGrowth.png|right|thumb|Probability of a crop plant being in each of the eight growth stages, as a function of time.]]
The progression of crops over time is shown in the plot to the right. Each line represents the probability of finding a given crop in that particular growth stage, assuming ideal conditions. The plots for non-ideal conditions look similar with only the scale of the x-axis (time passed) being longer.
Early in the game it may be helpful to maximize the growth rate of a crop in order to quickly multiply the [[seeds]] and/or get some [[wheat]] quickly. Doing so requires some understanding of the growth mechanics which are discussed here.
Crop growth is prompted by random [[tick]]s—the same random events that, for example, causes [[Zombified Piglin| zombified piglins]] to appear in nether portals. For a given block, a random update occurs an average of once every 68.27 seconds in Java Edition, or once every 204.8 seconds in Bedrock Edition. However, the delay can vary widely, and it is rare, but possible for plants to gain a stage the moment after planting or grow two stages a moment apart.
{| class="wikitable"
|+ Crop growth rate probabilities
|-
! Surrounding farmland
! Probability of crop per random tick
(hydrated farmland)
! Probability of crop per random tick
(dehydrated farmland)
|-
| 0
| 14.29%
| 7.69%
|-
| 1
| 16.67%
| 8.33%
|-
| 2
| 20.00%
| 9.09%
|-
| 3
| 20.00%
| 10.00%
|-
| 4
| 25.00%
| 11.11%
|-
| 5
| 25.00%
| 12.50%
|-
| 6
| 33.33%
| 12.50%
|-
| 7
| 33.33%
| 14.29%
|-
| 8
| 33.33%
| 14.29%
|}
During every update, a crop plant gets a chance to grow to the next stage with the exact chance depending on conditions:
* As noted above, growth requires a [[light]] level of at least 9 at the plant block, not in the block above it.
* The growth probability is 1/([[wikipedia:Floor and ceiling functions|floor]](25/points) + 1)
, where "points" is as follows:
** The [[farmland]] block the crop is planted on gives 2 points if dry or 4 if [[hydrated]].
** For each of the 8 blocks around the block on which the crop is planted, dry farmland gives 0.25 points, and hydrated farmland gives 0.75. If a field is bordered with anything besides more farmland, the plants at the edge grow more slowly.
* Having a crop of the same type diagonally from another of the same type halves the growth rates of both crops. This does not stack.
If any plants of the same type are growing in the eight surrounding blocks, the point total is cut in half, unless the crops are arranged in rows. That is, having the same sort of plant either on a diagonal or in both north-south and east-west [[direction]]s cuts the growth chance, but having the same type of plant only north-south or east-west does not. The growth chance is only halved once no matter how many plants surround the central one.
{{-}}
[[File:OptimalHarvestTime.png|right|thumb|Expected number of successful harvests per hour as a function of the time elapsed at harvest. Applies to crops planted in rows surrounded by hydrated farmland.]]
From this we can figure the growth periods for the common cases:
{| style="float:right" data-description="Crop schematic"
|-
|{{BlockGrid|f=farmland+wet|w=wheat+6|fff|fwf|fff}}
|{{BlockGrid|f=farmland+wet|w=wheat+6|fwf|fwf|fwf}}
|{{BlockGrid|f=farmland+wet|w=wheat+6|fff|www|fff}}
|}
* For the fastest growth per seed, a full layer of hydrated farmland with crops in rows is ideal. Under these conditions, the probability of growth during each update is {{frac|1|3}}, or approximately 33%. Most ({{frac|4|5}}) planted crops reach maturity within 31 [[Daylight cycle|minutes]] (about 1.5 Minecraft days). In fact, 31 minutes is very close to the ideal time at which to harvest if an auto-farming system is set to a timer, precisely 31 minutes and 3.14 seconds. For all plants to have this probability, crop rows must be separated by empty farmland or by a different crop, and the edges and corners of the field must be empty farmland. However, this probability also applies to crops adjacent to one or two non-farmland blocks (e.g. blocks of [[water]] in the middle of a field for hydration and/or a torch) due to the floor
function.
{{-}}
{| style="float:right" data-description="Crop schematic"
|-
|{{BlockGrid|f=farmland+wet|g=Grass Block+top|w=wheat+6|fwg|fwg|fwg}}
|{{BlockGrid|f=farmland+wet|g=Grass Block+top|w=wheat+6|fff|www|ggg}}
|}
* For hydrated crops in rows at the edge of a field (having 3 blocks of non-farmland along one side), the growth probability is {{frac|1|4}} (25%). Most planted crops in this case reach maturity within 41 minutes (about 2 Minecraft days). {{verify}}
{{-}}
{| style="float:right" data-description="Crop schematic"
|-
|{{BlockGrid|f=farmland+wet|g=Grass Block+top|w=wheat+6|
ggg|fwg|ffg
}}
|}
* For hydrated crops in rows at the corner of a field (having 5 blocks of non-farmland adjacent), the growth probability is {{frac|1|5}} (20%). Most crops reach maturity within 52 minutes (about 2.5 Minecraft days). {{verify}}
{{-}}
{| style="float:right" data-description="Crop schematic"
|-
|{{BlockGrid|f=farmland+wet|w=wheat+6|www|www|www}}
|{{BlockGrid|f=farmland+wet|w=wheat+6|wff|fwf|ffw}}
|{{BlockGrid|f=farmland+wet|w=wheat+6|fwf|fww|fff}}
|}
* Hydrated crops not in rows have approximately half the growth probabilities: {{frac|1|6}} (16.7%) for mid-field plants, {{frac|1|7}} (14%) for edges, and {{frac|1|9}} (11%) for corners.
{{-}}
{| style="float:right" data-description="Crop schematic"
|-
|{{BlockGrid|f=farmland|w=wheat+6|wff|fwf|ffw}}
|{{BlockGrid|f=farmland|w=wheat+6|fwf|fww|fff}}
|}
* The usual worst-case conditions for growing are crops placed out of rows on dry farmland. In this case, the growth probability is {{frac|1|13}} (approximately 8%) for the middle crops, {{frac|1|16}} (6%) for the edges, and {{frac|1|19}} (5%) for the corners.
{{-}}
{| style="float:right" data-description="Crop schematic"
|-
|{{BlockGrid|g=Grass Block+top|w=wheat+6|gggg|gwgg|ggwg|gggg}}
|}
* The worst case would be two crops diagonally adjacent on dry farmland (all other surrounding blocks being non-farmland) which has a growth probability of {{frac|1|23}}, about 4%.
* The average rate of production per wheat crop can be found by the expression (6.591 x Growth Probability) wheat per hour, assuming the crops are harvested as soon as they are fully mature.
{{-}}
Later in the game, the highest yield per area of a given field may be more important than the fastest growth per seed. Fields sown solidly to achieve this with a single crop do grow at half the speed, but they also let you separate each type of crop into its own respective field and harvest one type all at once. However, one large field with alternating rows of different crops would still grow faster than smaller fields each sown solidly with a single crop.
For [[melon]]s and [[pumpkin]]s:
{| class="wikitable"
|+ Fruit grow rate, for melons and pumpkins
|-
! Sides to grow to
! Surrounding farmland
! Probability of fruit per random tick,
(hydrated farmland)
! Probability of fruit per random tick,
(dehydrated farmland)
|-
| rowspan="8" | 1
| 0
| 3.57%
| 1.92%
|-
| 1
| 4.17%
| 2.08%
|-
| 2
| 5.00%
| 2.27%
|-
| 3
| 5.00%
| 2.50%
|-
| 4
| 6.25%
| 2.78%
|-
| 5
| 6.25%
| 3.13%
|-
| 6
| 8.33%
| 3.13%
|-
| 7
| 8.33%
| 3.57%
|-
| rowspan="7" | 2
| 0
| 7.14%
| 3.85%
|-
| 1
| 8.33%
| 4.17%
|-
| 2
| 10.00%
| 4.55%
|-
| 3
| 10.00%
| 5.00%
|-
| 4
| 12.50%
| 5.56%
|-
| 5
| 12.50%
| 6.25%
|-
| 6
| 16.67%
| 6.25%
|-
| rowspan="6" | 3
| 0
| 10.71%
| 5.77%
|-
| 1
| 12.50%
| 6.25%
|-
| 2
| 15.00%
| 6.82%
|-
| 3
| 15.00%
| 7.50%
|-
| 4
| 18.75%
| 8.33%
|-
| 5
| 18.75%
| 9.38%
|-
| rowspan="5" | 4
| 0
| 14.29%
| 7.69%
|-
| 1
| 16.67%
| 8.33%
|-
| 2
| 20.00%
| 9.09%
|-
| 3
| 20.00%
| 10.00%
|-
| 4
| 25.00%
| 11.11%
|}
==Farm designs==
===Classic farm===
{{anchor|Large Fast farm}}
{{-}}
{| style="float:right" data-description="Compact farm schematic"
|-
|{{BlockGrid|w=farmland+wet|W=water|wwwwwwwww|wwwwwwwww|wwwwwwwww|wwwwwwwww|wwwwWwwww|wwwwwwwww|wwwwwwwww|wwwwwwwww|wwwwwwwww}}
|}
The basic farm plot is a 9×9 plot of farmland with the center block replaced by water (often surrounded by fences, making it 11×11). This basic plot can be used for wheat, beetroots, carrots, or potatoes, or even for [[Tutorials/Pumpkin and Melon Farming|pumpkins and/or melons]]. As described above, crops may be planted all together, or in alternating rows for fastest total yield per area. For underground growth, light may be suspended above the water block and placed around the edges. To avoid falling in the central water hole, it can be covered with a bottom-slab or replaced with a [[Waterlogging|waterlogged]] block.
The field can be harvested quickly by simply dumping a bucket of water over the center, washing all the crops up against the fence.
This design may be easily extended in both the X and Z directions. If lighting the field for underground growth, additional lights is needed (again they may be suspended in the air) where the corners of the basic plots meet.
To farm multiple crops in a single field's footprint, you can stack the fields making a vertical farm. One complication here is that a block is needed to support the water on each level. A [[Jack o'Lantern|jack o’lantern]] can be used to both hold up the water and provide central lighting, or any block can have torches placed on it. The fields can be stacked with two-block or three-block spacing. Harvesting can be easily done by using a [[Water Bucket|water bucket]] on the bottom of the lighting block (three block spacing) or the top of a central waterlogged slab (two-block spacing, but must manually break the corner plants). Alternatively, you can irrigate all levels with a waterfall through the (empty) center block spaces, and place lights elsewhere.
====Semi-automatic harvesting====
The next extension of that idea is to provide a touch of automation. Expanding the field to 9×10 (with two water blocks in the middle) and stacking the fields with two-block spacing allows automating the harvest, with a double central column between the water blocks: Two jack-o-lanterns on the bottom, and two outward-facing [[dispensers]] on top , each loaded with a water bucket. The dispensers also support the water above; note that with just one central column and a 9 by 9 block farm, a single water dispenser wouldn't be able to reach all the crops. The dispensers can be triggered with buttons or tripwires; either way, they need to be on top to avoid displacing some crops with the button or hook. Adding plot borders with fences, a stairway along one edge, and four layers expands the whole system to 12×12×12. Some notes on this scheme:
*Alternating rows of different crops still speeds growth, but as noted above, speed may not be a priority at this point. Planting the crops solidly on separate levels is more convenient for harvesting what you need at a given moment, and they can grow while you do other stuff.
*The water dispensers do not harvest melons or pumpkins, but may instead destroy their stems. Accordingly, the dispensers on the melon/pumpkin level(s) can be unloaded, replaced with other blocks, or (on the top level) skipped entirely.
Instead of going for a 9×10 expansion, it is also possible to stay in the 9×9 field (11×11 fenced) footprint by adding four water dispensers on the four corners of the fence. This variation takes more dispensers to make, but all products fall into the water hole for easy collection. When you make the farm vertical, a [[sign]] can be used to contain the water while allowing the items to fall through to the bottom layer, where a hopper may lie.
===Micro farms===
[[File:Crop nano-farm.png|thumb|Simple nano-farm. To use it, place bone meal in the chest, stand in front of the farmland block and place the crop right when the water disappears. The dispenser attached to the slow redstone clock must contain a water bucket.]]
Micro / Nano farms are useful when space is limited. They grow the crops by firing bonemeal at them from a dispenser. There are 2 basic designs, a semi-automatic one that requires the player to stand and plant the crops and a fully automatic one that uses villagers to do the work for you.
The farm shown in impulseSV's Farm Design video does not work anymore as of 1.13, but with a workaround it still gets the job done.
''See the images to the right.''
[[File:ImpulseSV's Farm Design work around.png|thumb|Modified design, not shown fully closed so that the inside can be seen clearly]]
[[File:ImpulseSV's Farm Design work around boxed in.png|thumb|The design requires the player to be boxed in so the light level is below the value required for seeds to pop out]]
====ImpulseSV's farm design ====
{{yt|YGDQ_mPhC2c}}
This is a semi-automatic design suitable for all types of crops.
====Frilioth's 1.14.4 potato, carrot, and wheat farm design ====
{{yt|9oSmeAomUZ4}}
This design uses a farmer villager to plant and harvest carrots, potatoes, or wheat
====Mikecraft's farm design====
{{yt|Q_TyNK2g4r4}}
This design is slower than others, but it doesn't require the player to manually plant seeds.
==Semi-automatic farming==
[[File:Semi-automatic wheat farm.png|right|thumb|An semi-automatic wheat harvester using sticky pistons.]]
There are ways to harvest crops semi-automatically.
*Most common is water: Flowing water breaks crops, and produces their usual drops. This can be used to harvest crops semi-automatically, and carry the resulting items to some central location such as a [[hopper]]. A water flood does not revert farmland back into dirt.
*[[Sticky piston]]s can be used to move the farmland block itself, breaking the crop without reverting the farmland to dirt. Water currents for collecting the items can be placed under the farmland rather than beside it, making this method more compact than harvesting directly with pistons. A pair of pistons, appropriately clocked, could be used to shift an entire row of farmland.
*Crops are also broken when directly pushed by [[piston]]s, with the usual drops. Unfortunately, this reverts the farmland back into dirt, so that it needs to be re-tilled after every harvest, rather defeating the point of automation.
Automatic harvesting is generally an all-or-nothing business: harvesting every plant regardless of whether it is mature. In this situation, it is best not to wait for every last plant to finish growing, as there are always a few that take much longer than normal. The optimal time to harvest wheat in particular turns out to be when 80% ({{frac|4|5}}) of the plants have matured, and this is at least acceptable for carrots and potatoes. Assuming that the field is immediately replanted, harvesting at this time results in the greatest overall rate of production, along with a surplus of seeds for wheat. The section on growth rates gives the optimum harvesting time in minutes for some common planting arrangements.
Because bonemeal can force crops to grow more quickly—ignoring normal concerns like growth rate or ambient light—it can be used to create large amounts of wheat or other crops quickly. A number of farm designs focus on using bonemeal exclusively, sacrificing volume and growth efficiency for speed/ease of planting and harvesting. An example which takes advantage of the inventory mechanics to minimize the time required to plant and harvest can be seen here:
{{yt|fCmfr9qamG4}}
[[File:PistonFarmingResized.jpg|250px|right|thumb|A basic automated wheat harvester using pistons.]]
===Flooded-cell farm===
[[File:Blueprints.jpg|thumb|Layer by layer map of one cell.]]
This farm is divided into cells of 29 plants, where each cell is flooded individually by a single piston and water block (or bucket-bearing dispenser). The drops are washed into a stream, gathering them to a single point.
There’s a stream of water in the center of the farm, which needs to go down 1 block every 8 blocks toward a collection point. This can be mirrored on the other side of the collection point, to cut the total depth needed.
On one or both sides of the stream are farming cells. The cells are separated from each other with two block high walls. If a 1-block high wall or fencing is used, some of the drops may fall onto the barrier and out of the flow. Under every wall separating the cells from each other is a source block of water, to hydrate the farmland on both sides of the wall.
The design as shown uses a piston to control the flow of water. The piston is normally extended. Above the extended piston shaft is a water source block, surrounded by 8 (or even 4) glass blocks or panes. Glass is needed so that light goes through the plants. When the switch is turned off, the piston retracts and the water flows through.
The piston setup can be replaced with a [[dispenser]] containing a bucket of water and using a button instead of a lever for the switch. Either way, the pistons or dispensers should be wired together behind the cells with [[repeater]]s as needed, to allow triggering them from some central point.
When released, the water harvests the crops and washes them into the stream. At the end of the stream, you can collect your drops, or place a [[hopper]] to do it for you.
File:AG Harverter- OFF.png|A cell when the piston is extended.
File:AG Harverter- ON 1.png|Harvesting.
File:AG Harverter- ON 3.png|All products successfully moved to the main stream.
===Simple flooding farm without dispensers or pistons===
{{yt|J-VVT5u2YWA}}
== Fully automatic farming using villagers==
Fully-automatic farms can be constructed using a [[Professions|farmer villager]] that plants and harvests crops and a second non-farmer villager with whom the farmer exchanges harvests, allowing the farm to capture the items. Such a farm can produce [[bread]] (currently doesn't work due to [[bugtracker:MC-204073|MC-204073]]), [[Beetroot|beetroots]], [[Carrot|carrots]], and [[Potato|potatoes]]. This was originally designed in {{YouTube link|U189TQWbWFs|Carrot and Potato Crop Farm Tutorial {{!}} Minecraft 1.14/1.15 (Java Edition)|@LogicalGeekBoy}} and a tiled layout is presented in {{YouTube link|_1umDm4dpIk|1.14.3 Efficient Automatic Carrot/Potato Farm|@ilmango}}.
The farm must be entirely within the bounds of a village or must be more than 32 blocks away from the outer boundary of any village. Otherwise the villager attempts to make his way to the nearby village instead of tending the crops.{{verify}}
===Building the layout===
{{layered blueprint|name=Automatic villager crop farm
|f=farmland-wet|b=smooth-stone|w=water-top|c=composter|l=lights|h=hopper|t=oak-trapdoor
|M=EntitySprite:minecart hopper|F=EntitySprite:farmer|V=EntitySprite:villager
|----Farmland (Layer 1)|
bbb
bfffb
bfffffb
wfffffffw
bfffffffffb
bfffffffffffb
wfffffffffffffw
bfffffffffffffffb
bfffffffffffffffffb
bbbfffffffffffffffffffb
blhfffffffffwfffffffffb
bbbfffffffffffffffffffb
bfffffffffffffffffb
bfffffffffffffffb
wfffffffffffffw
bfffffffffffb
bfffffffffb
wfffffffw
bfffffb
bfffb
bbb
|----Wall 1|
bbb
b b
b b
l l
b b
b b
l l
b b
b F b
bbb b
bVM c b
bbb b
b b
b b
l l
b b
b b
l l
b b
b b
bbb
|----Wall 2|
bbb
b b
b b
b b
b b
b b
b b
b b
b b
bbb b
b t l b
bbb b
b b
b b
b b
b b
b b
b b
b b
b b
bbb
}}
Follow the layout, which is the maximum area for a single villager with a composter[{{YouTube|U189TQWbWFs}}]. You can use [[Waterlogging|waterlogged leaves]] (since 1.19) to prevent water from flowing out the outside walls{{Only|Java}}. Or use a stair and a trapdoor. Build a roof on top of the farm to prevent [[lightning]] strikes from converting villagers into [[Witch|witches]].
The next layer can be built such that there are 2 air blocks between the farmland on each layer. The walls can be any (even solid) block. The layout can be tiled by placing 4 farms in a diamond shape around the collection area.
=== Adding a collection system and villagers ===
[[File:Villager crop farm collection system stacked layout.png|alt=A collection system in the flat corner of the farm. Has hoppers on the farmland layer, 2 minecarts with hoppers on top and a trapdoor near the cell to prevent the villagers from moving the minecarts|thumb|Hopper collection system for the farm]]
The collection system is made with a [[hopper]] and 2 [[minecart with hopper]]s stacked on top, as well as a top trapdoor to prevent the villagers from walking through the minecarts.
Build a collection chamber either in the center of the tiled layout, or at any flat edge of the farm. To place the minecarts with hoppers on top of each other, simply place a block with a rail and minecart with hopper above the bottom minecart and break the block. The minecarts stack. Don't forget to place a trapdoor on top of the minecarts to prevent villagers from walking through them.
Add one villager to the farmland part of the farm and lock their profession to farmer by [[trading]] once with them. And another villager to the collection area of the farm. It is helpful to lock the collection-villager to a non-farmer profession to prevent it from taking the farmer's composter as it's job block.
The easiest way to add villagers to the farm is to add workstations inside the areas where they should be (the composter is already in the farmland part, so place any job block in the walls of the collection chamber) and then letting the villagers to pathfind to the job blocks. Once the villagers are inside close off their areas and optionally remove the extra job block.
==See also==
*[[Bone Meal]]
== Navigation ==
{{Navbox tutorials|farming}}
[[de:Anleitungen/Ackerbau]]
[[es:Tutoriales/Cultivo de plantas]]
[[fr:Tutoriels/Agriculture]]
[[ja:チュートリアル/耕種農業]]
[[nl:Lessen/Gewas verbouwen]]
[[ru:Ферма пшеницы, свёклы, моркови и картофеля]]
[[th:คู่มือสอนเล่น/การทำฟาร์มพืชผล]]
[[uk:Керівництва/Ферма врожаю]]
[[zh:Tutorial:农作物种植]]