Melon

Melons are blocks that grow from planted melon seeds, which grow over time until they reach maturity, randomly spawning melon blocks on adjacent farmland (or dirt/grass as of Minecraft 1.1). Destroying a melon yields 3-7 melon slices. A melon slice can be consumed for, or be crafted into a melon seed to be planted as a new stem.

Crafting
Melon blocks can be crafted out of 9 melon slices. You cannot reverse this to craft melon slices from a melon block. You must place the melon block and then destroy it to get melon slices back again. Melon slices are wasted in this process.

Farming
To start a Melon farm, one must first find Melon Seeds, which only spawn in an Abandoned Mine Shaft Chest. Planting a Melon Seed places a small stem that will grow over time. Like regular seeds, Melon stems grow faster if there is one block of water within 4 blocks of it. Once the stem reaches maturity (which can be instantly forced by the use of Bone Meal), the stem will spawn a Melon Block in one of the adjacent Dirt or Grass blocks (only Farmland in 1.0 and below) every 10–30 minutes real-life time (0.5-1.5 Minecraft days) and visually connect to it. Once a Melon has grown, the stem will not produce any further Melons until the existing Melon is destroyed. Melons will revert farmland below them to dirt when they grow, so before 1.1, the soil would have to be re-tilled after harvesting Melons. Once a connected Melon is harvested, the stem will be able to generate a new Melon block. A melon will not grow if the block directly above the stem is occupied by a solid block. Additionally, a melon will not spawn on a space adjacent to the stem if that space has a solid block directly above it. Melons will however grow if there is a transparent block above the stem or the adjacent space.

For maximum melon per block yield, the following methods can be used: . . . . . . . . .           . . . . . . . . .            % % % % % % % % % % % % % % % % % %            % % % % % % % % %            . . . . . . . . . % % % % % % % % %            % % % % % % % % %            . . . . . . . . . . . . . . . . . .            . . . . . . . . .            % % % % % % % % % . . . . = . . . .     OR     ? ? ? ? = ? ? ? ?    OR     ? ? ? ? = ? ? ? ? % % % % ? % % % %           . . . . . . . . .            % % % % % % % % % % % % % % % % % %            % % % % % % % % %            . . . . . . . . . . . . . . . . . .            % % % % % % % % %            . . . . . . . . .                              . . . . . . . . .            % % % % % % % % %    9x8 @ 48.61%                 9x9 @ 44.44%                 9x9 @ 44.44% . % . . % . . % .           % . % . % . % . %            % . . % % % . . % % ? % % ? % % ? %            . . . . . . . . .            . % % . . . % % . . % . . % . . % .            . % . % . % . % .            . % % . . . % % . . % . . % . . % .            . . . . ? . . . .            % . . % % % . . % % ? % % = % % ? %     OR     %. % . = . % . %    OR     %. . % = % . . % . % . . % . . % .           . . . . ? . . . .            % . . % % % . . % . % . . % . . % .            . % . % . % . % .            . % % . . . % % . % ? % % ? % % ? %            . . . . . . . . .            . % % . . . % % . . % . . % . . % .            % . % . % . % . %            % . . % % % . . %    9x9 @ 44.44%                 9x9 @ 27.16%                 9x9 @ 49.38% % melon seeds. farmland, dirt or grass   = water    ? any block

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

The top-left method has an efficiency of 48.61%, the top-middle, top-right and bottom-left are efficient at 44.44%. The efficiency of the last two designs varies (see below about designs that use the '?' 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 '?' to avoid wasting potential hydrated farmland blocks.

Designs that, instead, use these '?' 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.

While all above designs use one layer, the most efficient, 49.38% farm can be created by using two layers. Design is based on the third design:

x x x x % x x x x             % % % % ? % % % %         x x x x. x x x x. . . . ? . . . .         x x x x. x x x x. . . . ? . . . .         x x x x % x x x x              % % % % ? % % % % top:    %. . % = % . . %   bottom:   ? ? ? ? = ? ? ? ?         x x x x % x x x x              % % % % ? % % % %         x x x x. x x x x. . . . ? . . . .         x x x x. x x x x. . . . ? . . . .         x x x x % x x x x              % % % % ? % % % % x air (empty)

While this design has spots where you need to jump when made in larger scale, there is even cleaner design with same efficiency. In this design the water source must be isolated, so it would stay in 1x1 area and won't spread into '+' sign. It should be placed at least 2 blocks above the first farm layer, so it won't block the light: x x x x x x x x x             x x x x x x x x x           x x x x x x x x x              x x x x x x x x x           x x x x x x x x x              x x x x x x x x x           x x x x ? x x x x             x x x x x x x x x   top:    x x x ? S ? x x x   2nd:      x x x x = x x x x  (1st)    x x x x ? x x x x             x x x x x x x x x           x x x x x x x x x              x x x x x x x x x           x x x x x x x x x              x x x x x x x x x           x x x x x x x x x              x x x x x x x x x           x x x x x x x x x              % % % % % % % % % x x x x x x x x x. . . . . . . . .          x x x x x x x x x. . . . . . . . .          x x x x x x x x x              % % % % % % % % % 3rd:   %. . % = % . . %   bottom:   ? ? ? ? = ? ? ? ?          x x x x x x x x x     (4th)    % % % % % % % % % x x x x x x x x x. . . . . . . . .          x x x x x x x x x. . . . . . . . .          x x x x x x x x x              % % % % % % % % % S water source block     = falling water

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):

. . . . . . . . . % % % % % % % % % . . . . . . . . . . . . . ? . . . . % % % % = % % % % . . . . ? . . . . . . . . . . . . . % % % % % % % % % . . . . . . . ..

Melons are destroyed and drop Melon Slices when a Piston of any kind pushes it, leading the possibility for auto-harvesting Melon farms. A simple Auto-Harvester would be 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 pickup by the player. Using this technique, one can make a fully automatic farm, but it uses up some space, shown here.

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

Melons were introduced in Minecraft Beta 1.8, the Adventure Update.

In Beta 1.9 pre4, Melons had a bug that made them only yield 1 Melon Slice.

Trivia

 * The Beta 1.8 Changelog had stated "Added Melons" twice.
 * Any stem adjacent to a melon block will appear to connect to it, even if the melon was not grown from that stem.
 * On the Getsatisfaction.com complete ideas for the Ideas section, it was stated that Watermelons were to be implemented.
 * Despite the fact that the block and the items are called "Melon", "Melon Slice" and "Glistering Melon", they have the appearance of Watermelons and Watermelon Slices, like they were originally supposed to be named.
 * When a melon block is pushed by a piston, it will break into melon slices.
 * The block form is square, yet the slices are round.