Melon

Melons were first introduced in Minecraft 1.8 Pre-Release, the Adventure Update.

Behavior
If destroyed, melons will drop (3-7 in 1.9 Pre release 3) (1 in 1.9 Pre release 4) melon slices. Melons will also be destroyed when a Piston of any kind pushes a melon block. If you put seeds and sticky pistons in the correct places you can auto harvest your melons. Each will heal one food point.

A melon slice can be crafted into a melon seed to be planted as a new stem.

See also other plants.

Crafting
Melon blocks can be crafted out of 9 melon slices.

Farming
Melons will have a central stem that slowly grows until it reaches its maximum size at which point a melon will spawn on one of the adjacent farmland blocks. The stem requires an Air block or a transparent block above it to produce melons, the resulting melon does not. Melon stems take around 10 to 30 minutes (0.5 to 1.5 Minecraft days) to fully develop. Melons will revert the farmland below them to dirt when they grow. Melon stems require at least one block of water within 4 blocks of it to grow. Melon stems will only grow a single melon at a time, but once their melon is harvested, another one will grow in its place. Any stem adjacent to a melon block will appear to connect to it. Bonemeal will cause a melon stem to become fully-grown, but will not produce a melon immediately.

Melons also take up 2 blocks of space, 1 for the stalk and 1 for the melon. Destroying the stalk does not destroy the melon, but destroying the melon allows the stalk to produce a melon again

Farming can be made faster and easier by placing an up-facing sticky piston under each farmland block reserved for melons. When the sticky pistons are powered, they destroy all of the melons.

For maximum melon per block yield, the following methods can be used:

o o o o o o o o o           o o o o o o o o o                o o o o o o o o o            o o o o o o o o o             o o o o W o o o o     OR     x x x x W x x x x    o o o o o o o o o            # # # # # # # # # o o o o o o o o o              9x8 @48.61%                   9x9 @44.44%
 * 1) # # # x # # # #            o o o o o o o o o

# = Melon Seeds; o = Farmland; W = Water; x = Any Block

With all these, both farm blocks and seed blocks will be hydrated.

The left method has an efficiency of 48.61%, the middle is efficient at 44.44%. The efficiency of the far right design varies (see below about designs that use the 'X' spaces).

Depending on circumstance (i.e. if you plan on making only 1 farm with no adjacent other melon farms) the latter 2 setups will be more efficient.

Wheat could be grown in the spaces marked 'X' to avoid wasting potential hydrated farmland blocks.

Designs that, instead, use these 'X' spaces for more melons introduce ambiguity. There would be seeds with two spaces to grow into. Such a design would sometimes be more efficient than the others, and sometimes only equally as efficient.

The above layouts are optimized for infrequent harvests, with plenty of time for the field to regrow in between. For frequent harvests, the following layout may be better suited; if harvested once per day-and-night cycle, it yields about 17 melons per harvest (as opposed to about 13 melons for the above designs):

o o o o o o o o o o o o o W o o o o o o o o o o o o o
 * 1) # # # x # # # #
 * 1) # # # x # # # #
 * 1) # # # x # # # #

History
Melons were first revealed in an IGN interview with Notch.

On the Getsatisfaction.com complete ideas for the Ideas section, it was stated that Watermelons were to be implemented.

Trivia

 * The 1.8 Changelog says that melons were added twice.