{{about|the block|the ''Minecraft Dungeons'' consumable|MCD:Melon|the edible item|Melon Slice|other types of melon|Melon (disambiguation)}}
{{Infobox block
| title = Melon
| image = Melon.png
| invimage = Melon
| transparent = No
| 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}}

=== 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.

{{block distribution}}

=== Mob loot ===
An [[enderman]] holding a melon drops the block upon death.

=== 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
}}

== 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]], [[rooted dirt]], [[grass block]], [[farmland]], [[podzol]], [[mycelium]], [[moss block]], [[pale moss block]], [[mud]] or [[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.

=== Trading ===
{{Trade uses}}

=== 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 ==
{{HistoryTable
|{{HistoryLine|java beta}}
|{{HistoryLine||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]].}}
|{{HistoryLine||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.}}
|{{HistoryLine||1.8|dev=Pre-release|[[File:Melon JE1 BE1.png|32px]] Added melons.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 4|Melon blocks had a bug that made them yield only 1 [[melon slice|melon]] item.<ref>{{Tweet|jeb_|124519169122254849|Melons are not supposed to drop just one slice, it's a bug =)|October 13, 2011}}</ref>}}
|{{HistoryLine||1.1|dev=11w49a|Melons can now grow onto [[dirt]] and [[grass block|grass]] instead of just [[farmland]].}}
|{{HistoryLine||1.7.2|dev=13w36a|Melons now generate in [[jungle]] biomes.}}
|{{HistoryLine||1.8|dev=14w02a|Melons can now be [[trading|sold]] to farmer [[villager]]s, at 7–12 melons for 1 [[emerald]].}}
|{{HistoryLine|||dev=14w31a|Melons now break faster when mined with an [[axe]].}}
|{{HistoryLine||1.11|dev=16w39a|Melons now generate in [[woodland mansion]]s.}}
|{{HistoryLine||1.13|dev=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 103.}}
|{{HistoryLine|||dev=18w20b|The ID of melons has been changed from <code>melon_block</code> to <code>melon</code>.}}
|{{HistoryLine||1.14|dev=18w43a|[[File:Melon JE2 BE2.png|32px]] The texture of melons has been changed.}}
|{{HistoryLine|||dev=18w49a|Melon now generate in the updated [[savanna]] [[village]]s.}}
|{{HistoryLine|||dev=19w03a|Placing a melon into the new [[composter]] has a 50% chance of raising the compost level by 1.}}
|{{HistoryLine|||dev=19w05a|Melons now have a 65% chance of increasing the compost level in a composter by 1.}}
|{{HistoryLine|||dev=19w11a|Melons can now be [[trading|sold]] to farmer [[villager]]s, at 4 melons for 1 [[emerald]], instead of 7–12.}}
|{{HistoryLine||1.18|dev=1.18-pre5|Melons generated in jungle biomes are about 10 times more common than in previous snapshots.}}
|{{HistoryLine|||dev=1.18-pre6|Melons are now less common in [[sparse jungle]] biome.}}

|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.5.0|[[File:Melon JE1 BE1.png|32px]] Added melons.}}
|{{HistoryLine||v0.9.0|dev=build 1|Melons now generate naturally in [[jungle]] biomes.}}
|{{HistoryLine|||dev=build 10|Melons now generate a lot less in jungle biomes.}}
|{{HistoryLine||v0.12.1|dev=build 1|Melon can now be obtained using a [[tool]] with the [[Silk Touch]] enchantment.}}
|{{HistoryLine||v0.15.0|dev=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?}}}}
|{{HistoryLine|pocket}}
|{{HistoryLine||1.0.4|dev=alpha 1.0.4.0|Melons can now be [[trading|sold]] to farmer [[villager]]s, at 7–12 melons for 1 [[emerald]].}} 
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|Melons now generate in [[woodland mansion]]s.}}
|{{HistoryLine|||dev=alpha 1.1.0.3|[[Breaking]] a melon block with [[shears]] now always yield 9 [[melon slice|melon]]s.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||?|Melons no longer [[drop]] a constant nine melons with [[shears]].}}
|{{HistoryLine||1.10.0|dev=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.}}
|{{HistoryLine||1.11.0|dev=beta 1.11.0.1|Melons can now be used to fill up [[composter]]s.}}
|{{HistoryLine|||dev=beta 1.11.0.4|[[Trading]] has been changed, melons can no longer be used to [[trade]] with farmer [[villager]]s.}}
|{{HistoryLine||1.16.0|dev=beta 1.16.0.57|Trading has been changed, melon can be sold to farmer villager again.}}
|{{HistoryLine||1.19.30|dev=Preview 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.}}

|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU5|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Melon JE1 BE1.png|32px]] Added melons.}}
|{{HistoryLine||xbox=TU31|xbone=CU19|ps3=1.22|psvita=1.22|ps4=1.22|wiiu=Patch 3|Melons now generate naturally in [[jungle]] biomes.|Melons can now be [[trading|sold]] to farmer [[villager]]s, at 7–12 melons for 1 [[emerald]].}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Melon JE2 BE2.png|32px]] The texture of melons has been changed.}}

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

}}

== Trivia ==
* 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 ==
=== Screenshots ===
<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.
File:TexturesNeedingRecreation (1).png|unused Texture update
</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

== Navigation ==
{{Navbox blocks|vegetation}}

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

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