Melon

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

Behavior
If destroyed, melons will drop 3-7 (average of 5) 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 it might be possible to 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 above it to produce melons, the resulting melon does not. Melon stems take around 10 to 30 minutes to fully develop. Melons will revert the farmland below them to dirt when they 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 are found rarely in worlds generated after the 1.8 update.

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.

Melons will grow approx 50% slower if not exposed to sunlight. Underground farms will be less efficient for farming time wise. If you have no choice but to make a melon farm underground, it is suggested to make a sun roof (if possible).

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 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     OR     # o # o W 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               9x8 @ 97.22%                  9x9 @ 88.88%              9x9 @ 88.88-98.76%
 * 1) # # # x # # # #            o o o o o o o o o            o o o o o o o o o

# = no don't edit my stuff moron

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

While the left method leaves one line of hydrated farmland unused, it has the highest efficiency if you’re planning on making multiple farms next to each other because it uses 9 blocks less space (meaning 9 blocks more space for the next farm and thus 9 extra melons per 2 farms) while only losing 1 melon in comparison to the middle and right methods.

The left method has an efficiency of 97.22% and the middle is efficient at 88.88%. 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. 100% efficiency could be met by eliminating the row with the water, but the melons would grow much more slowly.

Designs that use the '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.

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.