{{about|the block|the ''Minecraft Dungeons'' consumable|MCD:Melon|the edible item|Melon Slice|other types of melon|Melon (disambiguation)}}
{{Block
|title=Melon
|image=Melon.png
|invimage=Melon
|transparent=Partial <small>(blocks light)</small>
|light=No
|tool=axe
|tool2=sword
|renewable=Yes
|stackable=Yes (64)
|flammable=No
|lavasusceptible=No
}}
A '''melon''' is a fruit block that grows from a fully-grown melon stem, which in turn is grown from [[melon seeds]].

== Obtaining ==
=== Breaking ===
{{See also|Fortune#Discrete random}}
A melon drops 3–7 [[melon slice]]s when broken by hand, using tools, or pushing with a [[piston]]. [[Silk Touch]] causes the block itself to drop. [[Fortune]] increases the maximum number of melon slices dropped, increasing the average yield to 6.4314 with Fortune III. The actual amount is capped at 9, so Fortune III simply increases the chance of getting 9 slices, which is sufficient to craft the melon again from the slices.

{{breaking row|horizontal=1|Melon|link=|Axe|sword=1}}

=== Crafting ===
{{Crafting
|A1= Melon Slice |B1= Melon Slice |C1= Melon Slice
|A2= Melon Slice |B2= Melon Slice |C2= Melon Slice
|A3= Melon Slice |B3= Melon Slice |C3= Melon Slice
|Output= Melon
|type= Building block
}}

=== Natural generation ===
Melons are naturally generated in [[jungle]] biomes, as [[pile]] (and in some farms) in savanna [[village]]s and inside tillage rooms of [[woodland mansion]]s.

== Usage ==
=== Farming ===
{{see also|Tutorials/Pumpkin and melon farming}}

[[Melon seeds]] can be planted, placing a small stem that grows over time. Once the stem reaches maturity, it attempts to generate a melon block in one of the four immediately adjacent blocks; however, this attempt may fail if the chosen adjacent block is not empty or the block beneath is not an appropriate block ([[dirt]], [[Coarse Dirt|coarse dirt]], [[Rooted Dirt|rooted dirt]], [[Grass Block|grass block]], [[farmland]], [[podzol]], [[mycelium]], [[Moss Block|moss block]], [[mud]] or [[Muddy Mangrove Roots|muddy mangrove roots]]). Melons take 10 to 30 minutes to grow, which is equal to 0.5 to 1.5 times the length of a [[daylight cycle]]. Once a stem has produced a melon, that stem does not produce any further melons until the existing melon is harvested. Melon stems connect only to the melons they produce. For example, if stem A generates a melon adjacent to stem B, stem B does not connect and can still produce another melon. Similarly, if a melon is placed adjacent to stem B, stem B would still be able to produce another melon. The same principle applies for [[pumpkin]]s. Melons require a light level of 9 or higher to grow.

=== Trades ===
[[Villager]]s who are journeymen (level 3) farmers buy 4 melons for an [[emerald]].

=== Composting ===
Placing a melon into a [[composter]] has a 65% chance of raising the compost level by 1. Composting a crafted melon block instead of 9 melon slices is very inefficient. For example, 100 melons could yield 9.29 bone meals on average. Meanwhile, if not crafted, 900 melon slices could yield 64.29 bone meals on average.

== Sounds ==
{{Sound table/Block/Wood}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Melon
|spritetype=block
|nameid=melon
|blocktags=enderman_holdable
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Melon
|spritetype=block
|nameid=melon_block
|id=103
|foot=1}}

== History ==
{{History|java beta}}
{{History||July 13, 2011|link=http://www.ign.com/articles/2011/07/13/the-future-of-minecraft?page=2|Melons were first revealed in an [[Wikipedia:IGN|IGN]] interview with [[Notch]].}}
{{History||August 2011 |link=https://web.archive.org/web/20110814040136/http://getsatisfaction.com/mojang/topics/square_watermelons_http_bit_ly_cxfop4|On the  community ideas section of Mojang Studios' GetSatisfaction.com page, it was signaled that watermelons were to be implemented.}}
{{History||1.8|snap=Pre-release|[[File:Melon JE1 BE1.png|32px]] Added melons.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 4|Melon blocks had a bug that made them yield only 1 [[melon slice|melon]] item.<ref>{{tweet|jeb_|124519169122254849}}</ref>}}
{{History||1.1|snap=11w49a|Melons can now grow onto [[dirt]] and [[grass block|grass]] instead of just [[farmland]].}}
{{History||1.7.2|snap=13w36a|Melons now generate in [[jungle]] biomes.}}
{{History||1.8|snap=14w02a|Melons can now be [[trading|sold]] to farmer [[villager]]s, at 7–12 melons for 1 [[emerald]].}}
{{History|||snap=14w31a|Melons now break faster when mined with an [[axe]].}}
{{History||1.11|snap=16w39a|Melons now generate in [[woodland mansion]]s.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 103.}}
{{History|||snap=18w20b|The ID of melons has been changed from <code>melon_block</code> to <code>melon</code>.}}
{{History||1.14|snap=18w43a|[[File:Melon JE2 BE2.png|32px]] The texture of melons has been changed.}}
{{History|||snap=18w49a|Melon now generate in the updated [[savanna]] [[village]]s.}}
{{History|||snap=19w03a|Placing a melon into the new [[composter]] has a 50% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Melons now have a 65% chance of increasing the compost level in a composter by 1.}}
{{History|||snap=19w11a|Melons can now be [[trading|sold]] to farmer [[villager]]s, at 4 melons for 1 [[emerald]], instead of 7–12.}}
{{History||1.18|snap=1.18-pre5|Melons generated in jungle biomes are about 10 times more common than in previous snapshots.}}
{{History|||snap=1.18-pre6|Melons are now less common in [[sparse jungle]] biome.}}

{{History|pocket alpha}}
{{History||v0.5.0|[[File:Melon JE1 BE1.png|32px]] Added melons.}}
{{History||v0.9.0|snap=build 1|Melons now generate naturally in [[jungle]] biomes.}}
{{History|||snap=build 10|Melons now generate a lot less in jungle biomes.}}
{{History||v0.12.1|snap=build 1|Melon can now be obtained using a [[tools|tool]] with the [[Silk Touch]] enchantment.}}
{{History||v0.15.0|snap=build 1|[[File:Melon BE1 (facing NWU).png|32px]] Melons now use the side texture on the underside.<ref>{{bug|MCPE-31035}}</ref>{{check version|can we confirm this is the version where this behaviour started, or is it based on the ticket's creation date?}}}}
{{History|pocket}}
{{History||1.0.4|snap=alpha 1.0.4.0|Melons can now be [[trading|sold]] to farmer [[villager]]s, at 7–12 melons for 1 [[emerald]].}} 
{{History||1.1.0|snap=alpha 1.1.0.0|Melons now generate in [[woodland mansion]]s.}}
{{History|||snap=alpha 1.1.0.3|[[Breaking]] a melon block with [[shears]] now always yield 9 [[melon slice|melon]]s.}}
{{History|bedrock}}
{{History||?|Melons no longer [[drops|drop]] a constant nine melons with [[shears]].}}
{{History||1.10.0|snap=beta 1.10.0.3|Melons now generate in new [[savanna]] [[village]]s.
|[[File:Melon JE2 BE2.png|32px]] [[File:Melon BE2 (facing NWU).png|32px]] The textures of melons have been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Melons can now be used to fill up [[composter]]s.}}
{{History|||snap=beta 1.11.0.4|[[Trading]] has been changed, melons can no longer be used to [[trading|trade]] with farmer [[villager]]s.}}
{{History||1.16.0|snap=beta 1.16.0.57|Trading has been changed, melon can be sold to farmer villager again.}}
{{History||1.19.30|snap=beta 1.19.30.20|[[File:Melon JE2 BE3 (facing NWU).png|32px]] Melons no longer use the side texture on the underside, and instead use the top texture again.}}

{{History|console}}
{{History||xbox=TU5|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Melon JE1 BE1.png|32px]] Added melons.}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|Melons now generate naturally in [[jungle]] biomes.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Melon JE2 BE2.png|32px]] The texture of melons has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Melon JE1 BE1.png|32px]] Added melons.
|Melons can be crafted back into 9 [[melon slice]]s.}}

{{History|foot}}

== Trivia ==
* {{IN|bedrock}} any stem adjacent to a melon block appears connected to it, even if the melon was not grown from that stem.<ref>[https://web.archive.org/web/20230427122938/https://i.imgur.com/Pdp69.png In-game screenshot]</ref> Therefore, if a melon block generates between two stems, it connects to both of them. [[Pumpkin]]s also do this, although they do not connect to plants of different species.
* Unlike other versions, the [[New Nintendo 3DS Edition]] is the only version that has a reversible crafting recipe for the melon.
*Minecraft melons greatly resemble square watermelons in real life.

== Gallery ==
<gallery>
File:Melon vine.png|A melon.
File:MelonFarm.png| A view of two equally efficient melon farms.
File:Baabenchier melon farm.png| A picture of 49% efficient melon farm (2nd version).
File:Melonfarm.png|A simple way to farm melons with [[sticky piston]]s.
File:Fully Auto Melon Farm.png|A completely automatic melon farm.
File:Naturallymelons.png|Naturally generated melons in a jungle biome.
</gallery>

== See also ==
* {{BlockLink|Pumpkin}}

== References ==
{{Reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/block-week-melon Block of the Week: Melon] – Minecraft.net on February 24, 2017

{{Blocks|vegetation}}

[[Category:Plants]]
[[Category:Food]]
[[Category:Natural blocks]]
[[Category:Generated structure blocks]]
[[Category:Manufactured blocks]]

[[cs:Meloun]]
[[de:Melone]]
[[es:Sandía (bloque)]]
[[fr:Pastèque]]
[[hu:Dinnye]]
[[it:Anguria]]
[[ja:スイカ]]
[[ko:수박]]
[[nl:Meloen]]
[[pl:Arbuz]]
[[pt:Melancia]]
[[ru:Арбуз]]
[[uk:Кавун]]
[[zh:西瓜]]
