Minecraft Wiki
(→‎Third-Party: webNBT also no longer works and was last updated 2015.)
(Changed two Wikipedia links to avoid redirects)
(27 intermediate revisions by 13 users not shown)
Line 1: Line 1:
 
{{about|the NBT file format|using NBT in commands|Tutorials/Command NBT tags}}
 
{{about|the NBT file format|using NBT in commands|Tutorials/Command NBT tags}}
The '''Named Binary Tag''' format is used by Minecraft for the various files in which it saves data. The format is described by Notch in a very brief [http://web.archive.org/web/20110723210920/http://www.minecraft.net/docs/NBT.txt specification]. The format is designed to store data in a tree structure made up of various ''tags''. All tags have an ID and a name. The original known version was 19132 as introduced in [[Beta]] 1.3, and since then has been updated to 19133 with [[Anvil file format|Anvil]], with the addition of the Int Array tag. The NBT format dates all the way back to [[Indev]] with tags 0 to 10 in use.
+
The '''Named Binary Tag''' ('''NBT''') format is used by ''Minecraft'' for the various files in which it saves data. The format is described by [[Notch]] in a brief specification.<ref>http://web.archive.org/web/20110723210920/http://www.minecraft.net/docs/NBT.txt specification</ref> The format is designed to store data in a tree structure made up of various ''tags''. All tags have an ID and a name. The original known version was 19132 as introduced in [[Beta 1.3]], and since then has been updated to 19133 with the [[Anvil file format]], which adds the {{cd|Int Array}} tag. The NBT format dates all the way back to [[Indev]] with tags 0 to 10 in use.
   
Another more user-friendly format of NBT is in plain string, as used in [[command]]s. This format is referred to as '''SNBT''', short for '''stringified NBT'''. It is different from the [[JSON]] format; hence, any JSON used in NBT, such as [[Commands#Raw_JSON_text|raw json text]], must be enclosed within a {{nbt|string}} string tag.
+
Another more user-friendly format of NBT is in plain string, as used in [[command]]s. This format is referred to as '''SNBT''', short for '''stringified NBT'''. It is different from the [[JSON]] format; hence, any JSON used in NBT, such as [[Commands#Raw JSON text|raw JSON text]], must be enclosed within a {{nbt|string}} string tag.
   
 
== TAG definition ==
 
== TAG definition ==
A tag is an individual part of the data tree. The first byte in a tag is the tag type (ID), followed by a two byte big-endian unsigned integer for the length of the name, then the name as a string in UTF-8 format (Note TAG_'''End''' is not named and does not contain the extra 2 bytes; the name is assumed to be empty). The name of tags ''may'' contain spaces, although Minecraft itself never saves tags with spaces in the names. Finally, depending on the type of the tag, the bytes that follow are part of that tag's ''payload''. This table describes each of the 13 known tags in version 19133 of the Named Binary Tag format:
+
A tag is an individual part of the data tree. The first byte in a tag is the tag type (ID), followed by a two byte big-endian unsigned integer for the length of the name, then the name as a string in UTF-8 format (Note TAG_'''End''' is not named and does not contain the extra 2 bytes; the name is assumed to be empty). The name of tags ''may'' contain spaces, although Minecraft itself never saves tags with spaces in the names. Finally, depending on the type of the tag, the bytes that follow are part of that tag's ''payload''. This table describes each of the 13 known tags in version 19133 of the NBT format:
 
{| class="wikitable" data-description="NBT tags"
 
{| class="wikitable" data-description="NBT tags"
 
|-
 
|-
Line 62: Line 62:
 
| <code><number>f</code> or <code><number>F</code>
 
| <code><number>f</code> or <code><number>F</code>
 
| A signed floating point type.
 
| A signed floating point type.
| Precision varies throughout number line;<br>See [[wikipedia:Single precision floating-point format|Single-precision floating-point format]]. Maximum value about 3.4*10<sup>38</sup>
+
| Precision varies throughout number line;<br>See [[wikipedia:Single-precision floating-point format|Single-precision floating-point format]]. Maximum value about 3.4*10<sup>38</sup>
 
|-
 
|-
 
| style="text-align:center" | '''6'''
 
| style="text-align:center" | '''6'''
Line 70: Line 70:
 
| <code><decimal number></code>, <code><number>d</code> or <code><number>D</code>
 
| <code><decimal number></code>, <code><number>d</code> or <code><number>D</code>
 
| A signed floating point type.
 
| A signed floating point type.
| Precision varies throughout number line;<br>See [[wikipedia:Double precision floating-point format|Double-precision floating-point format]]. Maximum value about 1.8*10<sup>308</sup>
+
| Precision varies throughout number line;<br>See [[wikipedia:Double-precision floating-point format|Double-precision floating-point format]]. Maximum value about 1.8*10<sup>308</sup>
 
|-
 
|-
 
| style="text-align:center" | '''7'''
 
| style="text-align:center" | '''7'''
Line 83: Line 83:
 
| style="text-align:center" | {{nbt|string}}
 
| style="text-align:center" | {{nbt|string}}
 
| TAG_'''String'''
 
| TAG_'''String'''
| TAG_Short's payload ''length'', then a UTF-8 string with size ''length''.
+
| A TAG_Short-like, but instead unsigned<ref>https://docs.oracle.com/javase/8/docs/api/java/io/DataOutput.html#writeUTF-java.lang.String-</ref> payload ''length'', then a UTF-8 string resembled by ''length'' bytes.
 
| <code><a-zA-Z0-9 text></code>, <code>"<text>"</code> ({{cd|"}} within needs to be escaped to {{cd|\"}}), or <code>'<text>'</code> ({{cd|'}} within needs to be escaped to {{cd|\'}})
 
| <code><a-zA-Z0-9 text></code>, <code>"<text>"</code> ({{cd|"}} within needs to be escaped to {{cd|\"}}), or <code>'<text>'</code> ({{cd|'}} within needs to be escaped to {{cd|\'}})
 
| A UTF-8 string. It has a size, rather than being null terminated.
 
| A UTF-8 string. It has a size, rather than being null terminated.
| 32,767 bytes interpretable as UTF-8 (see [[wikipedia:UTF-8|UTF-8 format]]; most commonly-used characters are a single byte).
+
| 65,535 bytes interpretable as UTF-8 (see [[wikipedia:UTF-8#Modified_UTF-8|modified UTF-8 format]]; most commonly-used characters are a single byte).
 
|-
 
|-
 
| style="text-align:center" | '''9'''
 
| style="text-align:center" | '''9'''
Line 122: Line 122:
 
The List and Compound tags can be and often are recursively nested. It should also be noted that, in a list of lists, each of the sub-lists can list a different kind of tag.
 
The List and Compound tags can be and often are recursively nested. It should also be noted that, in a list of lists, each of the sub-lists can list a different kind of tag.
   
== File Format ==
+
== File format ==
An NBT file is a GZip'd Compound tag, name and tag ID included. Some of the files utilized by Minecraft may be uncompressed, but in most cases the files follow Notch's original specification and are compressed with GZip. In the [[Legacy Console Edition]], [[chunks]] are compressed with XMemCompress, a variation of an LZX compression algorithm. There is no header to specify the version or any other information - only the [[level.dat]] file specifies the version.
+
An NBT file is a zipped Compound tag, with the name and tag ID included. The file in the zip must contain the Compound tag that it is as the first bytes. Some of the files utilized by ''Minecraft'' may be uncompressed, but in most cases, the files follow Notch's original specification and are compressed with GZip.
   
== As used in Minecraft ==
+
== Usage ==
Minecraft's use of the NBT format is odd at times. In some instances, empty lists may be represented as a list of Byte tags rather than a list of the correct type, or as a list of End tags in newer versions of Minecraft, which can break some older NBT tools. Additionally, almost every root tag has an empty name string and encapsulates only one Compound tag with the actual data and a name. For instance:
+
''Minecraft'' sometimes uses the NBT format inconsistently; in some instances, empty lists may be represented as a list of Byte tags rather than a list of the correct type, or as a list of End tags in newer versions of Minecraft, which can break some older NBT tools. Additionally, almost every root tag has an empty name string and encapsulates only one Compound tag with the actual data and a name. For instance:
 
<div class="treeview">
 
<div class="treeview">
 
* {{nbt|compound}} The root tag for most Minecraft NBT structures.
 
* {{nbt|compound}} The root tag for most Minecraft NBT structures.
 
** {{nbt|compound|SomeName}}: The only tag contained within the root tag - it has a name and contains all the actual data.
 
** {{nbt|compound|SomeName}}: The only tag contained within the root tag - it has a name and contains all the actual data.
 
</div>
 
</div>
Another noticeable oddity is that, although the original specification by Notch allows for spaces in tag names, and even the example uses spaces in the tag names, Minecraft has no known files where any tags have spaces in their names. There is also inconsistent use of letter case, mostly either camelCase or PascalCase, but sometimes even in all lowercase.
+
Additionally, although the original specification by Notch allows for spaces in tag names, and even the example uses spaces in the tag names, ''Minecraft'' has no known files where any tags have spaces in their names. There is also inconsistent use of letter case, mostly either camelCase or PascalCase, but sometimes even in all lowercase.
   
 
=== Uses ===
 
=== Uses ===
{{stub|4|Doesn't describe Bedrock Edition.}}
+
{{missing information|section|Bedrock Edition NBTs|type=code}}
* [[level.dat]] is stored in compressed NBT format.
+
* <samp>[[level.dat]]</samp> is stored in compressed NBT format.
* [[Player.dat format|<player>.dat]] files are stored in compressed NBT format.
+
* <samp>[[Player.dat format|<''player''>.dat]]</samp> files are stored in compressed NBT format.
* [[idcounts.dat]] is stored in uncompressed NBT format.
+
* <samp>[[idcounts.dat]]</samp> is stored in compressed NBT format.
* [[villages.dat]] is stored in compressed NBT format.
+
* <samp>[[villages.dat]]</samp> is stored in compressed NBT format.
* [[Map item format|map_<#>.dat]] files are stored in compressed NBT format.
+
* <samp>[[Map item format|map_<#>.dat]]</samp> files are stored in compressed NBT format.
* [[Servers.dat Format|servers.dat]], which is used to store the list of saved multiplayer servers as uncompressed NBT.
+
* <samp>[[Servers.dat format|servers.dat]]</samp>, which is used to store the list of saved multiplayer servers as uncompressed NBT.
 
* [[Chunk format|Chunk]]s are stored in compressed NBT format within [[Region file format|Region]] files.
 
* [[Chunk format|Chunk]]s are stored in compressed NBT format within [[Region file format|Region]] files.
* [[Scoreboard#NBT format|scoreboard.dat]] is stored in compressed NBT format.
+
* <samp>[[Scoreboard#NBT format|scoreboard.dat]]</samp> is stored in compressed NBT format.
 
* [[Generated structures data file format|Generated structures]] are stored in compressed NBT format.
 
* [[Generated structures data file format|Generated structures]] are stored in compressed NBT format.
 
* [[Structure block file format|Saved structures]] are stored in compressed NBT format.
 
* [[Structure block file format|Saved structures]] are stored in compressed NBT format.
   
== Software ==
+
== Official software ==
Mojang has provided sample Java NBT classes for developers to use and reference as part of the source code for the [http://www.mojang.com/2012/02/new-minecraft-map-format-anvil/ McRegion -> Anvil converter]. Since [[Java Edition 1.13|1.13]], ''Minecraft'' includes a builtin converter between SNBT format and compressed NBT format. It comes with the [[client.jar|client]] and the [https://minecraft.net/download/server official server].<ref>https://wiki.vg/Data_Generators#NBT_converters</ref>
 
=== Official ===
 
 
{{see also|Tutorials/Running the Data Generator}}
 
{{see also|Tutorials/Running the Data Generator}}
 
Mojang has provided sample Java NBT classes for developers to use and reference as part of the source code for the [[MCRegion]] to [[Anvil file format]] converter.<ref>http://www.mojang.com/2012/02/new-minecraft-map-format-anvil/</ref> Since [[Java Edition 1.13]], ''Minecraft'' includes a built-in converter between the SNBT format and compressed NBT format, which comes with both the [[client.jar|client]] and official server.<ref>https://wiki.vg/Data_Generators#NBT_converters</ref>
  +
 
The data generator from ''Minecraft'' is able to convert uncompressed Stringified NBT files with <samp>.snbt</samp> extension in an input folder to GZip compressed NBT format files with <samp>.nbt</samp> extension in an output folder, and vice versa.
 
The data generator from ''Minecraft'' is able to convert uncompressed Stringified NBT files with <samp>.snbt</samp> extension in an input folder to GZip compressed NBT format files with <samp>.nbt</samp> extension in an output folder, and vice versa.
   
The vanilla data generator can convert any GZip compressed NBT format to SNBT format. You can simply change the file extension of a file, such as [[Level_format#level.dat_format|<samp>level.dat</samp>]] to <samp>level.nbt</samp> and put it in the input folder, and the generator will decode the GZip compressed NBT data.
+
The vanilla data generator can convert any GZip compressed NBT format to SNBT format. The file extension of a file can simply be changed, such as <samp>[[level.dat]]</samp> to <samp>level.nbt</samp> and put in the input folder, and the generator then decodes the GZip compressed NBT data.
=== Third-Party ===
 
The community has developed programs to view and modify compressed and uncompressed NBT files:
 
{| class="wikitable" style="width: 100%" data-description="NBT editing software"
 
|-
 
! Name
 
! NBT Version
 
! Description
 
! Screenshot
 
|-
 
| [https://github.com/terminal625/cl-nbt CL-NBT]
 
| {{tc|no|19132|style=text-align:center}}
 
| CL-NBT is an NBT implementation in Common Lisp that can read and write NBT files and load and save McRegion files. Anvil format works with slight modification.
 
|-
 
| [http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-tools/1261629-mineback-minecraft-automated-backup-single-player/ MineBack Ultimate]
 
| {{tc|yes|19133|style=text-align:center}}
 
| MineBack Ultimate provides a full NBT editor supporting all available types of NBT format file (Map, Level, World etc.). It comes with a modern GUI and many helper functions.
 
|[[File:MineBackNBTEditor.png|128px]]
 
|-
 
| [https://github.com/twoolie/nbt NBT for Python]
 
| {{tc|yes|19133|style=text-align:center}}
 
| Library to parse & write NBT files, both standalone or in region files, in the Python scripting language. Provided with application examples for inspecting & editing the Minecraft data files (block / chest / mobs statistics and simple world mapping). Supports old McRegion, pre-flattened and latest Anvil formats.
 
|-
 
| [http://www.minecraftforum.net/topic/6661-nbtedit/ NBTEdit]
 
| {{tc|no|19132|style=text-align:center}}
 
| Allows for viewing and modifying NBT files via a Windows tree control. It is outdated not only from being an NBT version behind, but because it does not support multiple tags with the same name and it forces incorrect ranges on some types, and it lacks support for uncompressed NBT files.
 
| [[File:NBTEdit Level.Dat.png|128px]]
 
|-
 
| [[Programs and editors/NBTExplorer|NBTExplorer]] - [http://www.minecraftforum.net/topic/840677-nbtexplorer/ Forum Post]
 
| {{tc|yes|19133|style=text-align:center}}
 
| Inspired by and based on NBTEdit, this program allows viewing and editing of NBT files via a Windows tree control. It supports compressed and uncompressed NBT files, and allows for direct editing of the NBT structures in [[MCRegion]] and [[Anvil file format|Anvil]] files, [[level.dat]], etc.
 
| [[File:NBTExplorer.png|128px]]
 
|-
 
| [http://www.minecraftforum.net/topic/2078055-nbt-decoding-grammar-for-synalyze-it-mac-os-x/ NBT grammar for Synalyze It!]
 
| {{tc|no|19132|style=text-align:center}}
 
| Using this grammar Synalyze It! displays a color-coded hex dump along with the parsed tag tree. Currently only uncompressed files are supported.
 
| [[File:Synalyze-It-NBT-decoded.png|128px]]
 
|-
 
| [http://www.minecraftforum.net/topic/63854-neinedit-nbt-editor-for-mac-os-x/ NEINedit]
 
| {{tc|no|19132|style=text-align:center}}
 
| NBT editor for mac with a text-based tree structure.
 
| [[File:NEINedit.png|128px]]
 
|
 
|}
 
   
 
== History ==
 
== History ==
Line 203: Line 160:
 
{{h||1.12|snap=?|Added {{nbt|long array}} long array tags.}}
 
{{h||1.12|snap=?|Added {{nbt|long array}} long array tags.}}
 
{{h||1.13|snap=18w01a|Added a data generator to both the ''Minecraft'' [[client.jar|client]] and the default multiplayer software.}}
 
{{h||1.13|snap=18w01a|Added a data generator to both the ''Minecraft'' [[client.jar|client]] and the default multiplayer software.}}
{{h||1.14|snap=19w08a|{{nbt|string}} String tags can now be within single quotes {{cd|'}} besides double quotes {{cd|"}}.<ref>{{Link|url=https://github.com/Mojang/brigadier/pull/52|title=Allow single quote in strings by boq · Pull Request #52 |website=Mojang/brigadier – GitHub}}</ref>}}
+
{{h||1.14|snap=19w08a|{{nbt|string}} String tags in SNBT can now be within single quotes {{cd|'}} in addition to double quotes {{cd|"}}.<ref>{{Link|url=https://github.com/Mojang/brigadier/pull/52|title=Allow single quote in strings by boq · Pull Request #52 |website=Mojang/brigadier – GitHub}}</ref>}}
 
{{History|foot}}
 
{{History|foot}}
   
 
== References ==
 
== References ==
 
{{reflist}}
 
{{reflist}}
  +
  +
== External links ==
  +
* [https://wiki.vg/NBT NBT] on wiki.vg
  +
* [http://www.minecraftforum.net/topic/840677-nbtexplorer/ NBTExplorer], a tool for viewing and editing NBT files.
  +
* [http://irath96.github.io/webNBT/ webNBT], an online tool for viewing and editing NBT files.
   
 
{{Java Edition}}
 
{{Java Edition}}

Revision as of 14:33, 8 February 2021

This article is about the NBT file format. For using NBT in commands, see Tutorials/Command NBT tags.

The Named Binary Tag (NBT) format is used by Minecraft for the various files in which it saves data. The format is described by Notch in a brief specification.[1] The format is designed to store data in a tree structure made up of various tags. All tags have an ID and a name. The original known version was 19132 as introduced in Beta 1.3, and since then has been updated to 19133 with the Anvil file format, which adds the Int Array tag. The NBT format dates all the way back to Indev with tags 0 to 10 in use.

Another more user-friendly format of NBT is in plain string, as used in commands. This format is referred to as SNBT, short for stringified NBT. It is different from the JSON format; hence, any JSON used in NBT, such as raw JSON text, must be enclosed within a string tag.

TAG definition

A tag is an individual part of the data tree. The first byte in a tag is the tag type (ID), followed by a two byte big-endian unsigned integer for the length of the name, then the name as a string in UTF-8 format (Note TAG_End is not named and does not contain the extra 2 bytes; the name is assumed to be empty). The name of tags may contain spaces, although Minecraft itself never saves tags with spaces in the names. Finally, depending on the type of the tag, the bytes that follow are part of that tag's payload. This table describes each of the 13 known tags in version 19133 of the NBT format:

ID Icon Tag Type Payload SNBT Format‌[JE only] Description Storage Capacity
0 TAG_End None. - Used to mark the end of compound tags. This tag does not have a name, so it is only ever a single byte 0. It may also be the type of empty List tags. N/A
1 TAG_Byte 1 byte / 8 bits, signed <number>b or <number>B A signed integral type. Sometimes used for booleans. Full range of -(27) to (27 - 1)
(-128 to 127)
2 TAG_Short 2 bytes / 16 bits, signed, big endian <number>s or <number>S A signed integral type. Full range of -(215) to (215 - 1)
(-32,768 to 32,767)
3 TAG_Int 4 bytes / 32 bits, signed, big endian <number> A signed integral type. Full range of -(231) to (231 - 1)
(-2,147,483,648 to 2,147,483,647)
4 TAG_Long 8 bytes / 64 bits, signed, big endian <number>l or <number>L A signed integral type. Full range of -(263) to (263 - 1)
(-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807)
5 TAG_Float 4 bytes / 32 bits, signed, big endian, IEEE 754-2008, binary32 <number>f or <number>F A signed floating point type. Precision varies throughout number line;
See Single-precision floating-point format. Maximum value about 3.4*1038
6 TAG_Double 8 bytes / 64 bits, signed, big endian, IEEE 754-2008, binary64 <decimal number>, <number>d or <number>D A signed floating point type. Precision varies throughout number line;
See Double-precision floating-point format. Maximum value about 1.8*10308
7 TAG_Byte_Array TAG_Int's payload size, then size TAG_Byte's payloads. [B;<byte>,<byte>,...] An array of bytes. Maximum number of elements ranges between (231 - 9) and (231 - 1) (2,147,483,639 and 2,147,483,647), depending on the specific JVM.
8 TAG_String A TAG_Short-like, but instead unsigned[2] payload length, then a UTF-8 string resembled by length bytes. <a-zA-Z0-9 text>, "<text>" (" within needs to be escaped to \"), or '<text>' (' within needs to be escaped to \') A UTF-8 string. It has a size, rather than being null terminated. 65,535 bytes interpretable as UTF-8 (see modified UTF-8 format; most commonly-used characters are a single byte).
9 TAG_List TAG_Byte's payload tagId, then TAG_Int's payload size, then size tags' payloads, all of type tagId. [<value>,<value>,...] A list of tag payloads, without repeated tag IDs or any tag names. Due to JVM limitations and the implementation of ArrayList, the maximum number of list elements is (231 - 9), or 2,147,483,639. Also note that List and Compound tags may not be nested beyond a depth of 512.
10 TAG_Compound Fully formed tags, followed by a TAG_End. {<tag name>:<value>,<tag name>:<value>,...} A list of fully formed tags, including their IDs, names, and payloads. No two tags may have the same name. Unlike lists, there is no hard limit to the number of tags within a Compound (of course, there is always the implicit limit of virtual memory). Note, however, that Compound and List tags may not be nested beyond a depth of 512.
11 TAG_Int_Array TAG_Int's payload size, then size TAG_Int's payloads. [I;<integer>,<integer>,...] An array of TAG_Int's payloads. Maximum number of elements ranges between (231 - 9) and (231 - 1) (2,147,483,639 and 2,147,483,647), depending on the specific JVM.
12 TAG_Long_Array TAG_Int's payload size, then size TAG_Long's payloads. [L;<long>,<long>,...] An array of TAG_Long's payloads. Maximum number of elements ranges between (231 - 9) and (231 - 1) (2,147,483,639 and 2,147,483,647), depending on the specific JVM.

The List and Compound tags can be and often are recursively nested. It should also be noted that, in a list of lists, each of the sub-lists can list a different kind of tag.

File format

An NBT file is a zipped Compound tag, with the name and tag ID included. The file in the zip must contain the Compound tag that it is as the first bytes. Some of the files utilized by Minecraft may be uncompressed, but in most cases, the files follow Notch's original specification and are compressed with GZip.

Usage

Minecraft sometimes uses the NBT format inconsistently; in some instances, empty lists may be represented as a list of Byte tags rather than a list of the correct type, or as a list of End tags in newer versions of Minecraft, which can break some older NBT tools. Additionally, almost every root tag has an empty name string and encapsulates only one Compound tag with the actual data and a name. For instance:

  • The root tag for most Minecraft NBT structures.
    •  SomeName: The only tag contained within the root tag - it has a name and contains all the actual data.

Additionally, although the original specification by Notch allows for spaces in tag names, and even the example uses spaces in the tag names, Minecraft has no known files where any tags have spaces in their names. There is also inconsistent use of letter case, mostly either camelCase or PascalCase, but sometimes even in all lowercase.

Uses

This section is missing information about Bedrock Edition NBTs. 
Please expand the section to include this information. Further details may exist on the talk page.

Official software

Mojang has provided sample Java NBT classes for developers to use and reference as part of the source code for the MCRegion to Anvil file format converter.[3] Since Java Edition 1.13, Minecraft includes a built-in converter between the SNBT format and compressed NBT format, which comes with both the client and official server.[4]

The data generator from Minecraft is able to convert uncompressed Stringified NBT files with .snbt extension in an input folder to GZip compressed NBT format files with .nbt extension in an output folder, and vice versa.

The vanilla data generator can convert any GZip compressed NBT format to SNBT format. The file extension of a file can simply be changed, such as level.dat to level.nbt and put in the input folder, and the generator then decodes the GZip compressed NBT data.

History

Java Edition
1.0.0
{{Extension DPL}}<ul><li>[[Amethyst Shard|Amethyst Shard]]<br/>{{Item
| title = Amethyst Shard
| image = Amethyst Shard.png
| renewable = Yes
| stackable = Yes (64)
}}

An '''amethyst shard''' is a crystal ore obtained from mining a fully grown [[amethyst cluster]] or can be obtained from chests in [[Ancient City|ancient cities]].

== Obtaining ==

=== Mining ===
An [[amethyst cluster]] mined using a non-[[Silk Touch]], non-[[Fortune]] [[pickaxe]] drops 4 amethyst shards. When mined using any other tool, [[item]] or mechanism (such as [[explosion]]s or [[piston]]s) it drops 2 shards. The maximum amount of amethyst shards dropped can be increased with Fortune. Fortune I gives a {{frac|1|3}} chance for eight shards, averaging 5.33 shards; Fortune II gives a 25% chance (each) to give eight or 12 shards, averaging 7 shards, and Fortune III gives a 20% chance (each) to give 8, 12, or 16 shards, averaging 8.8 shards.

If the amethyst cluster in any of its growth stages is mined using a pickaxe enchanted with [[Silk Touch]], it drops itself rather than amethyst shards.

=== Chest loot ===
{{LootChestItem|amethyst-shard}} 

== Usage ==
=== Crafting ingredient ===
{{Crafting usage}}
=== Smithing ingredient ===
{{Smithing
|head=1
|ingredients=Any Armor Trim +<br/>Any Armor Piece + <br/>Amethyst Shard
|Any Armor Trim Smithing Template
|Netherite Chestplate
|Amethyst Shard
|Amethyst Trim Netherite Chestplate
|showdescription=1
|description = All armor types can be used in this recipe;<br/>a netherite chestplate is shown as an example.<br/>
|tail=1
}}

;Trim color palette
The following color palette is shown on the designs on trimmed armor:
*{{TrimPalette|amethyst shard}}

=== Allay duplication ===
If an amethyst shard is given to an [[allay]] that is currently dancing to an active [[jukebox]], the allay emits heart particles, consumes the amethyst shard and duplicates into another allay. After this, there is a 5 minute cool down until both allays can be duplicated like this again.



== Sounds ==
{{Edition|Java}}:
{{Sound table
|sound=Amethyst shimmer.ogg
|subtitle=Amethyst chimes
|source=neutral
|description=When an amethyst shard duplicates an allay
|id=block.amethyst_block.chime
|translationkey=subtitles.block.amethyst_block.chime
|volume=0.4
|pitch=1.0
|distance=16
|foot=1}}

{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|sound=Amethyst shimmer.ogg
|source=block
|description=When an amethyst shard duplicates an allay
|id=chime.amethyst_block
|volume=1.0
|pitch=0.5-1.7
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Amethyst Shard
|spritetype=item
|nameid=amethyst_shard
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Amethyst Shard
|spritetype=item
|nameid=amethyst_shard
|form=item
|id=625
|foot=1}}

==History==
{{History||October 3, 2020|link={{ytl|DBvZ2Iqmm3M|t=23m14s}}|Amethyst shards are mentioned, but not shown at [[Minecraft Live 2020]].}}
{{History|java}}
{{History||1.17|snap=20w45a|[[File:Amethyst Shard JE1.png|32px]] Added amethyst shards.}}
{{History|||snap=20w46a|[[File:Amethyst Shard JE2 BE1.png|32px]] The texture for amethyst shards has changed.}}
{{History||1.19|snap=22w13a|Amethyst shards can now be found in [[ancient city]] [[chest]]s.}}
{{History||1.19.1|snap=22w24a|Amethyst shards can now be used to duplicate [[allay]]s.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w04a|Amethyst shards can now be used as an armor trim material.}}
{{History||1.20|snap=23w12a|Amethyst shards can now be used to craft [[calibrated sculk sensor]]s.}}

{{History|bedrock}}
{{History||1.17.0|snap=beta 1.17.0.50|[[File:Amethyst Shard JE2 BE1.png|32px]] Added amethyst shards.}}
{{History|||snap=beta 1.17.0.52|Amethyst shards are now available without enabling [[Experimental Gameplay]].}}
{{History||1.19.0|snap=beta 1.19.0.26|Amethyst shards can now be found in [[ancient city]] [[chest]]s.}}
{{History||1.19.10|snap=beta 1.19.10.22|Amethyst shards can now be used to duplicate allays.}}
{{History||1.20.0<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.21|Amethyst shards can now be used as an armor trim material.}}
{{History|||snap=beta 1.19.80.22|Amethyst shards can now be used to craft calibrated sculk sensors.}}
{{History|foot}}

==Issues==
{{issue list}}

==Trivia==
* Although in real life {{w|amethyst}} is a variety of {{w|quartz}} like [[Nether Quartz|nether quartz]], the two resources are not interchangeable.
* besides netherite, amethyst is the only or to be attempted not from an ore in caves

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--amethyst-shard Taking Inventory: Amethyst Shard] – Minecraft.net on May 20, 2021

{{Items}}

[[Category:Renewable resources]]

[[de:Amethystscherbe]]
[[es:Fragmento de amatista]]
[[fr:Éclat d'améthyste]]
[[it:Scheggia di ametista]]
[[ja:アメジストの欠片]]
[[lzh:紫水玉片]]
[[pl:Odłamek ametystu]]
[[pt:Fragmento de ametista]]
[[ru:Осколок аметиста]]
[[uk:Уламок аметисту]]
[[zh:紫水晶碎片]]
[[Category:Ore]]</li><li>[[Arrow|Arrow]]<br/>{{ItemEntity
|title=Arrow
|image=Arrow.png
|image2=Spectral Arrow.png
|renewable='''Uncraftable and Luck{{only|java|short=1}}''': No <br/>
'''All others''': Yes
|stackable='''Normal / Spectral:''' Yes (64)<br/>
'''Tipped:''' Yes (64, only if same effect)
|size=Height: 0.5 Blocks<br>Width: 0.5 Blocks
|networkid='''Normal / Tipped:'''<br>'''[[JE]]''': 60<br>
'''Spectral:'''<br>'''[[JE]]''': 91
}}
An '''arrow''' serves as ammunition for [[bow]]s, [[crossbow]]s, and [[dispenser]]s. Arrows can be modified to give [[status effects]] to [[player]]s and [[mob]]s.

== Obtaining ==

=== Picking up arrows ===

Arrows shot by players can always be [[#Retrieving|picked up]] in Creative mode.

An arrow ''cannot'' be picked up by a player in [[Survival]] or [[Adventure]] mode if:
* It is shot by a player in [[Creative]] mode.
* It is shot by any [[mob]] able to shoot arrows, such as [[skeleton]]s, [[stray]]s, [[pillager]]s, or [[piglin]]s. This includes mobs that do not shoot arrows in normal gameplay, such as [[illusioner]]s and bow-wielding [[wither skeleton]]s.
** This is the case even in Creative mode.<ref>{{bug|MC-128845|||WAI}}</ref>
* It is shot with an [[Infinity]]-enchanted [[bow]].
* It is one of the two extra arrows shot with a [[Multishot]]-enchanted [[crossbow]].

=== Mob loot ===

[[Skeleton]]s and [[stray]]s drop 0-2 arrows upon death. The maximum drop is increased by 1 per level of [[Looting]], for a maximum of 0–5 arrows with Looting III.

Strays have a 50% chance of dropping 1 arrow of [[Slowness]] when killed by a player. Each level of Looting increases the chance of this drop by 50% of the previous chance. This results in a maximum of 93.75% with Looting III.

{{IN|bedrock}}, [[pillager]]s also drop 0–2 arrows upon death. The maximum drop is increased by 1 per level of Looting, for a maximum of 0-5 arrows with Looting III.

=== Trading ===

Novice-level fletcher [[villager]]s have a 50% chance {{in|bedrock}}, or a {{frac|2|3}} chance {{in|java}}, to sell 16 arrows for one [[emerald]] as part of their trades.

{{IN|bedrock}}, master-level fletcher villagers have a {{frac|1|2}} chance to sell 5 tipped arrows for 2 emeralds and 5 arrows. {{IN|java}}, they have a {{frac|2|3}} chance to sell 5 tipped arrows for 2 emeralds and 5 arrows.  Trades {{in|java}} can be the base effect, level II, or extended; {{in|bedrock}}, only the arrow of decay is level II.<!-- A check should be made if it chooses randomly from the whole of the list of possible arrows variants, or it it chooses a base arrow potion effect, then randomly choose from that arrow's options. The first one would make arrow's without a level II, like Fire Resistance for example, slightly less likely than ones with all three options like Swiftness.  -->

<!-- None are extended duration, but villagers can trade level 2 arrows. -->
* Arrow of [[Fire Resistance]]
* Arrow of [[Harming]]
* Arrow of [[Healing]]
* Arrow of [[Invisibility]]
* Arrow of [[Leaping]]
* Arrow of [[Night Vision]]
* Arrow of [[Poison]]
* Arrow of [[Regeneration]]
* Arrow of [[Slowness]]
* Arrow of [[Strength]]
* Arrow of [[Swiftness]]
* Arrow of the [[Potion of the Turtle Master|Turtle Master]]
* Arrow of [[Water Breathing]]
* Arrow of [[Weakness]]
* Arrow of [[Slow Falling]]{{only|java}}<!-- bedrock fletchers never sell arrows of slow falling -->
* Arrow of [[Decay]]{{only|bedrock}}

These are all potion effects except Slow Falling {{in|bedrock}} and [[Luck]] {{in|java}}. Trading is the only legitimate way to obtain arrows of Decay in [[Survival]] mode.

=== Bartering ===

Spectral arrows{{only|java}}/normal arrows{{only|bedrock}} can be obtained through [[bartering]] with [[piglin]]s, and have a ~8.71% chance to give the [[player]] 6-12 arrows.

=== Villager gifts ===
{{IN|java}}, any regular or tipped arrow (except for [[luck]] and [[Bad Luck]] arrows) can be obtained as a reward item from [[fletcher]] [[villager]]s when the player has the [[Hero of the Village]] status effect.

=== Crafting ===

{{Crafting
|head=1
|B1= Flint
|B2= Stick
|B3= Feather
|Output = Arrow,4
|type = Combat
|showdescription=1
}}
{{Crafting
|A2= Glowstone Dust
|B1= Glowstone Dust
|B2= Arrow
|B3= Glowstone Dust
|C2= Glowstone Dust
|Output = Spectral Arrow,2
|type = Combat
|description = {{only|java}}
}}
{{Crafting
|foot=1
|description=Arrows of Decay are exclusive to {{el|be}} unless obtained via [[creative]] or [[commands]]. Arrows of luck are exclusive to {{el|je}}. A custom potion obtained via [[commands]] cannot craft arrows with the potion's custom name, lore, or the <code>CustomPotionColor</code>.
|A1= Arrow
|A2= Arrow
|A3= Arrow
|B1= Arrow
|B2= Matching Lingering Potion
|B3= Arrow
|C1= Arrow
|C2= Arrow
|C3= Arrow
|Output = Matching Tipped Arrow,8
|type = Combat
}}

=== Chest loot ===
{{LootChestItem|arrow}}
{{LootChestItem|spectral-arrow}}

=== Retrieving ===

Arrows stuck in a block that were originally shot by dispensers or by players in [[Survival]] without the [[Infinity]] enchantment may be collected. Arrows originally shot by [[skeleton]]s, [[stray]]s, [[illusioner]]s, [[pillager]]s, [[piglin]]s, players in [[Creative]], players using the [[Infinity]] enchantment, or duplicate arrows created by [[Crossbow]]s with the [[Multishot]] enchantment cannot be collected. Arrows cannot be retrieved when they are stuck in a player or mob, and players or mobs do not drop them when killed. Retrievable arrows have a despawn timer of 60 seconds.

=== Cauldrons ===
{{main|Cauldron#Potions}}

{{IN|bedrock}}, tipped arrows can also be obtained by using arrows on [[Cauldron#Potions|cauldrons]] that contain [[potion]]s. The number of tipped arrows created depends on the potion inside the cauldron. When the cauldron is {{frac|1|3}} full, 16 arrows can be tipped. When the cauldron is {{frac|2|3}} full, up to 32 arrows can be tipped and when the cauldron is full, an entire stack of 64 arrows can be tipped. This is more efficient than using lingering potions as up to 21.33 arrows can be tipped per potion.

== Usage ==
{{see also|Bow}}

When fired, arrows fly in a [[wikipedia:Trajectory of a projectile|ballistic trajectory]] affected by gravity and drag in [[air]], [[water]], and [[lava]]. The arrow's velocity is multiplied by 0.99 every game tick, and it also experiences 20 block/s<sup>2</sup> of downward acceleration induced by gravity.

Arrows travel approximately 3 [[block]]s when fired parallel to a flat plane with no charge, 15 blocks average with medium charge, and 24 blocks average with maximum charge. When fired from a fully charged bow, arrows can travel 120 blocks if fired from an optimal angle. The maximum height an arrow fired by a bow can reach is around 66 blocks.

An arrow fired in water experiences much more drag than in air: it moves less than 8 blocks before completely losing horizontal speed and falling straight down, although the knockback of the arrow remains unaffected. It also leaves a trail of bubbles in its wake.

There is a random variable to the trajectory of an arrow, given by <code>this.rand.nextGaussian() * 0.0075 * (double)inaccuracy</code> for the x, y and z coordinate. The inaccuracy is relatively small, becoming noticeable over larger distances. The inaccuracy of different arrow delivery devices may differ. Dispensers fire with an inaccuracy of 6, while bows fire with an inaccuracy of 1.

An arrow's speed determine the damage it inflicts. The damage inflicted is calculated by multiplying the arrow's [[#Entity data|damage value]] with its velocity in blocks per [[Tick#Game tick|game tick]]. When fired from a fully-charged unenchanted bow, arrows do {{hp|6}} of damage, with a smaller chance to damage for up to {{hp|11}} via critical hits. They inflict up to {{hp|5}} damage from a medium-charged bow, and {{hp|1}} from a bow with no charge. Arrows fired from dispensers always do {{hp|3}} of damage unless their velocity is modified by an external source. Arrows fired from [[crossbow]]s do {{hp|6}} to {{hp|11}} of damage.

Arrows trigger [[Damage#Immunity|damage immunity]] on hit. However, unlike other methods of damage that may bypass invulnerability under certain conditions, arrows hitting the mob while it is invulnerable lose all speed and drop to the ground, dealing no damage unless they contact another mob.

[[File:ArrowShotInTree.png|thumb|An arrow shot into a [[tree]].]]
Arrows also stick into objects they come in contact with and remain there for one minute before disappearing; the distance from the object and the angle determine how far into the target the arrow penetrates. Such arrows may be [[#Retrieving|retrieved]].

If the arrow has any custom potion effects (NBT tag <code>CustomPotionEffects</code>), all potion effects, including vanilla potion effects (NBT tag <code>Potion</code>) are removed 30 seconds after the arrow stops moving.

If an arrow is stuck in a block, and that block is broken or disappears (e.g., [[leaves]] upon decay), then the arrow falls straight down and damages entities below, but never deals a critical hit. The 1-minute despawn timer is then refreshed, meaning it will take another minute for the arrow to despawn.

Arrows bounce off players and mobs immune to damage, like a player in Creative mode, a [[wither]] under the "wither armor" effect, and a perching [[ender dragon]].

Arrows shot through [[lava]] or (if there's at least a 2 block gap) [[fire]] catch on fire and show an appropriate animation until they pass through water. Like arrows shot from a bow with the Flame enchantment, they can set other entities they hit on fire for 5 seconds as well as ignite TNT and campfires.

An arrow shot at any kind of boat{{only|java|short=1}} or minecart causes the vehicle to break, dropping any components (including container contents).

Arrows can get visually stuck in players {{in|java}}, although not any mobs. They appear as regular arrows regardless of type.<ref>{{bug|MC-83933|||WAI}}</ref>
<gallery>
Steve got shot.png|Steve got shot.
Alex got shot.png|Alex got shot.
</gallery>

=== Redstone circuits ===

An arrow can activate a wooden [[button]], wooden [[pressure plate]], a [[tripwire]], or a [[target]]. An arrow will continue to power these blocks until it is removed, either due to despawning, or being picked up. Target blocks emit a redstone pulse for one second, as opposed to the static depressed state of the other switches. Non-wooden switches are not affected by arrows.

When arrows are fired into the sides of blocks, they change their orientation to point more downward than their original flight path might indicate. This can cause them to intersect and thus trigger switches above them that they didn't actually hit, or block rails above them.

=== Explosions ===

Arrows are affected by explosions while they are in flight. Since explosions can increase the speed of an arrow, they can also increase the damage dealt by them. {{only|Java}}

== Variants ==

=== Tipped arrows ===
{{See also|#Crafting}}

Tipped arrows are arrows that imbue a potion effect when hitting a mob or player. The duration of the effect is {{frac|1|8}} that of the corresponding potion, if applicable, and is not affected by the power of the arrow. The status effect is the same as the regular power effect for the potion. If a bow is enchanted with [[Infinity]], tipped arrows are still consumed. 

The types of arrows are:

<div class="list-style-none" style="-moz-column-width:19em;-webkit-column-width:19em;column-width:19em">
* {{ItemLink|link=none|Arrow of Regeneration}}
* {{ItemLink|link=none|Arrow of Swiftness}}
* {{ItemLink|link=none|Arrow of Fire Resistance}}
* {{ItemLink|link=none|Arrow of Healing}}
* {{ItemLink|link=none|Arrow of Night Vision}}
* {{ItemLink|link=none|Arrow of Strength}}
* {{ItemLink|link=none|Arrow of Leaping}}
* {{ItemLink|link=none|Arrow of Invisibility}}
* {{ItemLink|link=none|Arrow of Poison}}
* {{ItemLink|link=none|Arrow of Weakness}}
* {{ItemLink|link=none|Arrow of Slowness}}
* {{ItemLink|link=none|Arrow of Harming}}
* {{ItemLink|link=none|Arrow of Water Breathing}}
* {{ItemLink|link=none|Arrow of Luck}}{{only|java|short=1}}
* {{ItemLink|link=none|Arrow of Decay}}{{only|bedrock|short=1}}
* {{ItemLink|link=none|Arrow of the Turtle Master}}
* {{ItemLink|link=none|Arrow of Slow Falling}}
</div>

Arrows of Harming (and arrows of Healing when used against undead mobs) do not add a static amount of damage to the arrow.<ref>{{bug|MC-107856||Arrows of harming/healing do not stack with bow damage}}</ref> Instead, the arrow's damage is first calculated, then checked to see if it is below {{Health|12}}. If the arrow's damage is less than 12, the Harming effect of the arrow makes up the difference, to ensure the arrow does exactly {{Health|12}}. Therefore, an unenchanted bow cannot deal more than 12 damage using Harming (or Healing) arrows, as it can deal a maximum of {{Health|11}} damage on level ground. However, if the arrow would deal more than 12 damage, the harming effect is entirely neutralized. This means that bows enchanted with Power I through Power III has a chance to not utilize the arrow at full charge, and any Power level above III never utilizes Arrows of Harming effectively at full charge when against unarmored mobs/players. 

==== No-effect tipped arrows ====

It is possible to craft tipped arrows using [[Lingering Potion#Lingering water bottle|Lingering Water Bottles]] as well as Awkward, Thick, and Mundane [[Lingering Potion|Lingering potions]]. If crafted with a water bottle, the arrow is called an arrow of Splashing. If crafted with Mundane, Awkward, or Thick potions, it is called a tipped arrow.<ref>{{bug|MC-158539}}</ref> Tipped arrows crafted from different potions do not stack, as resultant tipped arrows all have different potion tags.

In Bedrock Edition, all four kinds as well as the long mundane tipped arrow aren't obtainable either in creative, by cauldrons, by crafting, or by commands.

All four kinds generate blue particles in flight and upon landing, but otherwise behave like regular arrows. In particular, arrow of Splashing has no effect on fire and campfires and when shot from a bow with the Flame enchantment, can light campfires and TNT just like regular arrows on fire. 

{| class="wikitable" style="text-align: center;" data-description="Unused potions"
! Icon
! Name
|-
| {{Slot|Arrow of Splashing|link=none}}
! Arrow of Splashing
|-
| {{Slot|Tipped Arrow|link=none}}
! Tipped Arrow
|}

==== Uncraftable tipped arrows ====

{{IN|java}}, the uncraftable tipped arrow is a tipped arrow with no effect that is unobtainable in regular gameplay. It is available in two variants that don't stack together:

* {{cmd|/give @s minecraft:tipped_arrow{Potion:"minecraft:empty"} }} - arrow assigned an effect placeholder "empty" 
* {{cmd|/give @s minecraft:tipped_arrow }} - arrow not assigned any effect.

The uncraftable arrow doesn't differ from regular arrows in behavior when used as a projectile.

{| class="wikitable" style="text-align: center;" data-description="Unused potions"
! Icon
! Name
|-
| {{Slot|Uncraftable Tipped Arrow|link=none}}
! Uncraftable Tipped Arrow
|}

=== Spectral arrows ===
{{exclusive|java}}
A spectral arrow confers the [[Glowing]] status effect for 10 seconds. The Glowing effect creates an outline of the target, which is visible through blocks, and colored based on the target's [[team]] (white by default). Even if a bow is enchanted with [[Infinity]], spectral arrows are still consumed. Spectral arrows can be acquired through [[bartering]] or crafted by combining 4 [[Glowstone Dust#Crafting ingredient|glowstone dust]] with one arrow, yielding 2 spectral arrows.

{| class="wikitable" style="text-align: center;" 
! Icon
! Name
|-
| {{Slot|Spectral Arrow|link=none}}
! Spectral Arrow
|}

== Sounds ==
{{edition|java}}:<br>
Arrows and spectral arrows use the Friendly Creatures sound category for entity-dependent sound events.
{{Sound table
|sound=Arrow hit1.ogg
|sound2=Arrow hit2.ogg
|sound3=Arrow hit3.ogg
|sound4=Arrow hit4.ogg
|subtitle=Arrow hits
|source=Friendly Creatures
|description=When an arrow impacts something
|id=entity.arrow.hit
|translationkey=subtitles.entity.arrow.hit
|volume=1.0
|pitch={{frac|12|11}} - {{frac|4|3}}
|distance=16}}
{{Sound table
|sound=Succesfull Hit.ogg
|subtitle=Player hit
|source=Players
|description=When an arrow shot by a player hits another player
|id=entity.arrow.hit_player
|translationkey=subtitles.entity.arrow.hit_player
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|rowspan=3
|sound=Bow shoot.ogg
|subtitle=Arrow fired
|source=Players
|description=When an arrow is fired by a player
|id=entity.arrow.shoot
|translationkey=subtitles.entity.arrow.shoot
|volume=1.0
|pitch=Around 1.2<ref group=sound>Depends on how long the bow is charged for, around 1.2 with a fully charged bow. The exact formula is <math>\frac{1}{\operatorname{randomFloat()}\times 4+1.2}+\frac{\text{progress}}{2}</math> </ref>
|distance=16}}
{{Sound table
|subtitle=Skeleton shoots
|source=Hostile Creatures
|description=When a skeleton shoots an arrow
|id=entity.skeleton.shoot
|translationkey=subtitles.entity.skeleton.shoot
|volume=1.0
|pitch={{frac|5|6}} - 1.25
|distance=16}}
{{Sound table
|subtitle=Dispensed item
|source=Blocks
|description=When a dispenser shoots an arrow
|id=block.dispenser.launch
|translationkey=subtitles.block.dispenser.dispense
|volume=1.0
|pitch=1.2
|distance=16}}
{{Sound table
|sound=Crossbow shoot1.ogg
|sound2=Crossbow shoot2.ogg
|sound3=Crossbow shoot3.ogg
|subtitle=Crossbow fires
|source=Players
|description=When a crossbow shoots an arrow
|id=item.crossbow.shoot
|translationkey=subtitles.item.crossbow.shoot
|volume=0.8 / 0.9
|pitch=0.9 / 1.0
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Arrow hit1.ogg
|sound2=Arrow hit2.ogg
|sound3=Arrow hit3.ogg
|sound4=Arrow hit4.ogg
|source=player
|description=When an arrow impacts something
|id=random.bowhit
|volume=1.0
|pitch=1.09-1.3}}
{{Sound table
|sound=Bow shoot.ogg
|source=player
|description=When something shoots an arrow
|id=random.bow
|volume=1.0
|pitch=0.83-1.25}}
{{Sound table
|sound=Crossbow shoot1.ogg
|sound2=Crossbow shoot2.ogg
|sound3=Crossbow shoot3.ogg
|source=player
|description=When a crossbow shoots an arrow
|id=crossbow.shoot
|volume=1.0
|pitch=1.0
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Arrow
|spritetype=item
|nameid=arrow
|itemtags=arrows
|form=item}}
{{ID table
|displayname=Spectral Arrow
|spritetype=item
|nameid=spectral_arrow
|itemtags=arrows
|form=item}}
{{ID table
|displayname=Tipped Arrow
|spritetype=item
|nameid=tipped_arrow
|itemtags=arrows
|form=item
|translationkey=item.minecraft.tipped_arrow, item.minecraft.tipped_arrow.effect.empty, item.minecraft.tipped_arrow.effect.water, item.minecraft.tipped_arrow.effect.mundane, item.minecraft.tipped_arrow.effect.thick, item.minecraft.tipped_arrow.effect.awkward, item.minecraft.tipped_arrow.effect.night_vision, item.minecraft.tipped_arrow.effect.invisibility, item.minecraft.tipped_arrow.effect.leaping, item.minecraft.tipped_arrow.effect.fire_resistance, item.minecraft.tipped_arrow.effect.swiftness, item.minecraft.tipped_arrow.effect.slowness, item.minecraft.tipped_arrow.effect.water_breathing, item.minecraft.tipped_arrow.effect.healing, item.minecraft.tipped_arrow.effect.harming, item.minecraft.tipped_arrow.effect.poison, item.minecraft.tipped_arrow.effect.regeneration, item.minecraft.tipped_arrow.effect.strength, item.minecraft.tipped_arrow.effect.weakness, item.minecraft.tipped_arrow.effect.levitation, item.minecraft.tipped_arrow.effect.luck, item.minecraft.tipped_arrow.effect.turtle_master, item.minecraft.tipped_arrow.effect.slow_falling
|foot=1}}
{{ID table
|edition=java
|showentitytags=y
|generatetranslationkeys=y
|displayname=Arrow
|spritetype=entity
|nameid=arrow
|entitytags=arrows, impact_projectiles}}
{{ID table
|displayname=Spectral Arrow
|spritetype=entity
|nameid=spectral_arrow
|entitytags=arrows, impact_projectiles
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showitemtags=y
|notshowbeitemforms=y
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Arrow
|spritetype=item
|nameid=arrow
|id=301
|itemtags=minecraft:arrow
|form=item
|translationkey=item.arrow.name, item.tipped_arrow.name, tipped_arrow.effect.water, tipped_arrow.effect.mundane, tipped_arrow.effect.thick, tipped_arrow.effect.awkward, tipped_arrow.effect.nightVision, tipped_arrow.effect.invisibility, tipped_arrow.effect.jump, tipped_arrow.effect.fireResistance, tipped_arrow.effect.moveSpeed, tipped_arrow.effect.moveSlowdown, tipped_arrow.effect.waterBreathing, tipped_arrow.effect.heal, tipped_arrow.effect.harm, tipped_arrow.effect.poison, tipped_arrow.effect.regeneration, tipped_arrow.effect.damageBoost, tipped_arrow.effect.weakness, tipped_arrow.effect.wither, tipped_arrow.effect.turtleMaster, tipped_arrow.effect.slowFalling
|foot=1}}
{{ID table
|edition=bedrock
|shownumericids=y
|generatetranslationkeys=y
|displayname=Arrow
|spritetype=entity
|nameid=arrow
|id=80
|foot=1}}

=== Metadata ===

{{IN|bedrock}}, arrows use the following item data values:

{{/DV}}

=== Entity data ===
==== Normal and tipped arrows ====
Arrows have entity data that define various properties of the entity.

{{el|java}}:
{{main|Entity format}}
{{/ED}}

{{el|bedrock}}:
: See [[Bedrock Edition level format/Entity format]].


==== Spectral arrows ====
Spectral arrows also have entity data that define various properties of the entity.

{{el|java}}:
{{main|Entity format}}
{{/ED1}}

{{el|bedrock}}
: See [[Bedrock Edition level format/Entity format]].

== Achievements ==

{{load achievements|Sniper Duel;Archer;Bullseye}}

== Advancements ==
{{load advancements|Take Aim;Sniper Duel;Not Today;Bullseye;Ol' Betsy;Two Birds;Who's the Pillager Now;Arbalistic;How Did We Get Here}}

== Video ==

<div style="text-align:center">{{yt|STQkD1Oa65s}}</div>

== History ==
{{History|java classic}}
{{History||0.24_SURVIVAL_TEST|[[File:Arrow JE1.png|42px]] Arrows have been added as an object and are fired by pressing {{Key|Tab}}.}}
{{History||0.25 SURVIVAL TEST|[[File:Arrow JE2 BE1.png|42px]] The texture of arrows has been changed.
|Arrows now deal more [[damage]], and can damage the player.
|The [[player]] now spawns with 20 arrows; the remaining amount is shown above the hotbar labeled as "Arrows".
|[[File:Purple Arrow JE1.png|42px]] [[Skeleton]]s now fire purple arrows, instead of hitting the [[player]] directly. These arrows can't be collected by the [[player]]. 
|When a skeleton is killed, it now drops 6-9 normal arrows for the player to gather.}}
{{History||0.29|Arrows can no longer be shot by the player in Creative Mode.}}
{{History|java indev}}
{{History||0.31|snap=20100122|[[File:Arrow (item) JE1 BE1.png|32px]] Arrows have been added as [[item]]s alongside with [[bow]]s.
|The "Arrows" display above the hotbar has been removed.}}
{{History|||snap=20100124|Arrows now have a [[sound]] effect. What this sound effect is is completely unknown; it could be for hitting a block, for being fired or for something else entirely.}}
{{History|||snap=20100128|Arrows can now be [[craft]]ed using [[apple]]s.}}
{{History|||snap=20100129|Arrows can no longer be crafted.}}
{{History|||snap=20100130|Arrows are once again now craftable. Iron is used instead of steel.}}
{{History||20100219|Arrows are now dropped by [[skeleton]]s.}}
{{History|java infdev}}
{{History||20100316|Arrows now have a high chance of spawning either a [[sheep]], a [[pig]], a [[skeleton]], a [[creeper]], a [[spider]], or a [[zombie]] upon hitting a [[block]].
|The player now spawns with 999 arrows.}}
{{History||20100320|The player now spawns with 64 arrows.}}
{{History||20100327|The player no longer spawns with any arrows in new worlds.}}
{{History||20100413|Arrows no longer spawn [[mob]]s.}}
{{History|java alpha}}
{{History||v1.0.14|The tip of an arrow in crafting is now made from [[flint]] rather than an [[iron ingot]].}}
{{History|java beta}}
{{History||1.2|Arrows can now be fired by [[dispenser]]s.}}
{{History||1.6|snap=Test Build 3|Arrows could be used to stick in any [[block]] before this update, even some non-solid ones. For example, they could stick in [[torch]]es, [[sugar cane]] and [[nether portal]]s.}}
{{History||1.8|snap=Pre-release|Arrows can no longer be rapid-fired from [[bow]]s; they must be charged first.
|Arrows (with a bow at full strength) can now travel 120 blocks when fired from the optimal angle, and stick to [[mob]]s.}}
{{History||Sound Update|Arrow firing [[sound]]s have been changed - see sounds section}}
{{History|java}}
{{History||November 21, 2011|link={{ytl|BES9EKK4Aw4}}|Exploding arrows are mentioned.}}
{{History||1.0.0|snap=Beta 1.9 Prerelease|Arrows no longer stick to [[mob]]s.
|Arrows remain visible in players.{{verify|then when were they removed? bug fix in 1.4.3 implies it was removed for players as well in this version}}}}
{{History|||snap=RC1|Arrow landing [[sound]]s have been changed.}}
{{History||1.1|snap=release|Arrows on [[fire]] now set the [[entity|entities]] they hit on fire. Before, arrows could be on fire (like other [[entities]]), but they did not set what they hit on fire, and there was no [[enchanting|enchantment]] to fire flaming arrows.}}
{{History||1.3.1|snap=12w21a|Farmer [[villager]]s now [[trading|sell]] 9–12 arrows for 1 [[emerald]].}}
{{History|||snap=12w22a|Arrows can now be found inside [[dispenser]]s in the newly added [[jungle temple]]s.}}
{{History|||snap=12w23a|Arrows can now activate [[tripwire]] switches and wooden [[pressure plate]]s.}}
{{History||1.4.2|snap=12w34a|Arrows can now activate wooden [[button]]s.}}
{{History|||snap=12w34b|Arrows on [[fire]] can now ignite [[TNT]].}}
{{History||1.4.4|snap=1.4.3|Arrows now stick to [[player]]s again, but not [[mob]]s.}}
{{History||1.4.6|snap=pre|Arrows now make a "ding" sound when they hit a player.}}
{{History||1.8|snap=14w02a|Farmer [[villager]]s no longer [[trading|sell]] arrows.
|Fletcher villagers now sell 8–12 arrows for 1 [[emerald]].}}
{{History|||snap=14w25a|An underwater arrow now loses all velocity after a few blocks and slowly falls.
|A flaming arrow underwater now gets extinguished.}}
{{History|||snap=14w26a|Fire arrows can now be used to detonate [[minecarts with TNT]].}}
{{History||1.9|snap=15w31a|[[File:Tipped Arrow Revision 1.png|32px]] [[File:Tipped Arrow MC-84253.png|32px]] Added 14 new tipped arrows. Due to a bug<ref>{{bug|MC-84253}}</ref>, all tipped arrows except arrow of Splashing are black.
|[[File:Spectral Arrow JE1.png|42px]] [[File:Spectral Arrow (item) JE1.png|32px]] Added spectral arrows. They show [[mob]] and [[player]] outlines in their team color when hit. They have no texture when shot.}}
{{History|||snap=15w31b|[[File:Spectral Arrow JE2.png|42px]] Spectral arrows now use their intended texture.<ref>{{bug|MC-82809}}</ref>}}
{{History|||snap=15w32a|[[File:Arrow of Night Vision JE1 BE1.png|32px]] [[File:Arrow of Invisibility JE1 BE1.png|32px]] [[File:Arrow of Leaping JE1 BE1.png|32px]] [[File:Arrow of Fire Resistance JE1 BE1.png|32px]] [[File:Arrow of Swiftness JE1 BE1.png|32px]] [[File:Arrow of Slowness JE1 BE1.png|32px]] [[File:Arrow of Water Breathing JE1 BE1.png|32px]] [[File:Arrow of Healing JE1 BE1.png|32px]] [[File:Arrow of Harming JE1 BE1.png|32px]] [[File:Arrow of Poison JE1 BE1.png|32px]] [[File:Arrow of Regeneration JE1 BE1.png|32px]] [[File:Arrow of Strength JE1 BE1.png|32px]] [[File:Arrow of Weakness JE1 BE1.png|32px]] 13 tipped arrows now have the correct textures.}}
{{History|||snap=15w33c|Added [[shield]]s; though they fully block [[damage]] from arrows, arrows still visually stick into the [[player]].}}
{{History|||snap=15w37a|Arrows now ricochet off of [[shield]]s.}}
{{History|||snap=15w44b|Added the initial method for obtaining tipped arrows, which lasted until snapshot [[16w06a]] – firing arrows into a [[lingering potion]] cloud.
|[[File:Arrow of Luck JE1 BE1.png|32px]] Added the Arrow of [[Luck]].
|[[File:Tipped Arrow Revision 1.png|32px]] [[File:Tipped Arrow Revision 1.png|32px]] [[File:Tipped Arrow Revision 1.png|32px]] [[File:Tipped Arrow Revision 1.png|32px]] Add tipped arrows for uncraftable potions, mundane potions, thick potions, and awkward potions. These are all available in the creative inventory.
|Add tipped arrows for all enhanced and extended potions
|[[File:Tipped Arrow Revision 1.png|32px]] Arrow of Splashing has been added to the creative inventory.}}
{{History|||snap=15w47b|Arrows now ricochet off of [[creative]] mode [[player]]s, whereas before they would pass straight through.}}
{{History|||snap=15w49a|Arrows now take the archer's motion into account. For example, if the player is falling, an arrow fired upward travels slower than if the player was standing still, and an arrow fired downward flies faster.
|Tipped and spectral arrows are no longer affected by the [[Infinity]] [[enchanting|enchantment]].}}
{{History|||snap=16w06a|Tipped arrows have been given a crafting recipe, and are no longer obtained by shooting them into a [[lingering potion]] cloud.}}
{{History||1.10|snap=16w20a|Arrows of [[slowness]] may now drop from [[stray]]s when they are killed by a [[player]].}}
{{History||1.11|snap=16w32a|The [[entity]] IDs have been changed from {{cd|Arrow}} and {{cd|SpectralArrow}} to {{cd|arrow}} and {{cd|spectral_arrow}}.|Tipped arrows of instant healing and instant damage now function. Previously, the fact that tipped arrows have 1/8th the duration was reducing 1 game tick to zero game ticks.}}{{History|||snap=16w42a|Arrows now have a {{cd|crit}} tag that determines whether it deals [[critical hit|critical damage]].}}
{{History||1.11|snap=16w39a|Tipped arrows without effects and the uncraftable tipped arrow have been removed from the creative inventory.<ref name="removed tipped arrow">https://bugs.mojang.com/browse/MC-92139</ref>}}
{{History||1.11.1|snap=16w50a|The arrow [[entity]] now has a {{cd|Color}} integer tag, for displaying the custom [[potion]] color of a fired arrow item that has a {{cd|CustomPotionColor}} tag.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], these [[item]]s' numeral IDs were 262, 439 and 440.}}
{{History|||snap=18w07a|[[File:Arrow of the Turtle Master JE1 BE1.png|32px]] Added the Arrow of the Turtle Master.}}
{{History|||snap=18w14a|[[File:Arrow of Slow Falling JE1 BE1.png|32px]] Added the Arrow of [[Slow Falling]].}}
{{History||1.14|snap=18w43a|Arrows are now used as ammo for [[crossbow]]s.
|Arrows can now break [[chorus flower]]s.
|[[File:Uncraftable Tipped Arrow JE2.png|32px]] [[File:Arrow of Splashing JE2.png|32px]] [[File:Arrow of Night Vision JE2 BE2.png|32px]] [[File:Arrow of Invisibility JE2 BE2.png|32px]] [[File:Arrow of Leaping JE2 BE2.png|32px]] [[File:Arrow of Fire Resistance JE2 BE2.png|32px]] [[File:Arrow of Swiftness JE2 BE2.png|32px]] [[File:Arrow of Slowness JE2 BE2.png|32px]] [[File:Arrow of the Turtle Master JE2 BE2.png|32px]] [[File:Arrow of Water Breathing JE2 BE2.png|32px]] [[File:Arrow of Healing JE2 BE2.png|32px]] [[File:Arrow of Harming JE2 BE2.png|32px]] [[File:Arrow of Poison JE2 BE2.png|32px]] [[File:Arrow of Regeneration JE2 BE2.png|32px]] [[File:Arrow of Strength JE2 BE2.png|32px]] [[File:Arrow of Weakness JE2 BE2.png|32px]] [[File:Arrow of Luck JE2 BE2.png|32px]] [[File:Arrow of Slow Falling JE2 BE2.png|32px]] The [[item]] sprite textures of tipped arrows has been changed.
|[[File:Spectral Arrow (item) JE2.png|32px]] The [[item]] sprite texture for spectral arrows has been changed.}}
{{History|||snap=18w47a|Arrows can now be generated inside of [[pillager outpost]] chests.}}
{{History|||snap=18w50a|Arrows can now be found in chests in fletcher houses.}}
{{History|||snap=19w11a|Fletcher [[villager]]s now [[trading|sell]] tipped arrows.}}
{{History|||snap=19w13a|Any regular or tipped arrow can be obtained as a reward [[item]] from fletcher villagers when the [[player]] has the [[Hero of the Village]] status effect.‌}}
{{History||1.14.1|snap=Pre-Release 2|Flaming arrows can now light [[campfire]]s.}}
{{History||1.16|snap=20w16a|Arrows and spectral arrows now generate in [[bastion remnant]] chests.}}
{{History||1.16.2|snap=20w28a|Spectral arrows can now be obtained through [[bartering]] with [[piglin]]s.}}
{{History|||snap=20w30a|The average yield of spectral arrows from bastion remnant chests have been substantially increased.}}
{{History||1.17|snap=21w11a|[[File:Spectral Arrow JE3.png|42px]] The texture of the spectral arrow is now have been changed.}}
{{History|||snap=21w13a|The unused original texture of the arrow<ref>[[File:Arrow (texture) JE2.png|48px]] <code>/asset/minecraft/textures/entity/arrow.png</code></ref> have been removed.}}
{{History||1.19.3|snap=22w43a|Tipped arrows for mundane, thick, and awkward potions, and the no-effect tipped arrow, are now available again in the Creative inventory.}}
{{History||1.19.4|snap=Pre-release 3|[[File:Arrow of Night Vision JE3.png|32px]] [[File:Arrow of Invisibility JE3.png|32px]] [[File:Arrow of Leaping JE3.png|32px]] [[File:Arrow of Fire Resistance JE3.png|32px]] [[File:Arrow of Swiftness JE3.png|32px]] [[File:Arrow of Slowness JE3.png|32px]] [[File:Arrow of the Turtle Master JE3.png|32px]] [[File:Arrow of Water Breathing JE3.png|32px]] [[File:Arrow of Harming JE3.png|32px]] [[File:Arrow of Poison JE3.png|32px]] [[File:Arrow of Strength JE3.png|32px]] Changed colors of the following tipped arrows: Night Vision, Invisibility, Leaping, Fire Resistance, Swiftness, Slowness, Turtle Master, Water Breathing, Harming, Poison, Strength, Resistance.}}
{{History||1.20|snap=23w12a|Wither [[effect]] particle colors have been adjusted to make them more distinguishable.
|The arrow of [[Slow Falling]] has had its color tweaked to make it more distinguishable from the arrow of [[Invisibility]].}}

{{History|pocket alpha}}
{{History||v0.2.0|[[File:Arrow (item) JE1 BE1.png|32px]] Added arrows. They are currently unobtainable and serve no purpose.}}
{{History||v0.3.3|[[File:Arrow JE2 BE1.png|42px]] Arrows now serve as ammunition for bows.
|Added skeletons, which drop arrows when they die.
|Arrows are now craftable.}}
{{History||v0.5.0|Arrows can now be obtained after activating the [[nether reactor]].}}
{{History||v0.12.1|snap=build 1|Arrows on [[fire]] now set the [[entity|entities]] they hit on fire. Before, arrows could be on fire (like other entities), but they would not set what they hit on fire, and there was no [[enchantment]] to fire flaming arrows.
|Arrows on fire can now ignite [[TNT]].
|An underwater arrow now loses all velocity after a few [[block]]s and slowly falls.
|Arrows are no longer available from the [[nether reactor]].}}
{{History||v0.13.0|snap=build 1|Arrows now update [[sand]] and [[gravel]].}}
{{History||v0.15.0|snap=build 1|[[File:Arrow of Night Vision JE1 BE1.png|32px]] [[File:Arrow of Invisibility JE1 BE1.png|32px]] [[File:Arrow of Leaping JE1 BE1.png|32px]] [[File:Arrow of Fire Resistance JE1 BE1.png|32px]] [[File:Arrow of Swiftness JE1 BE1.png|32px]] [[File:Arrow of Slowness JE1 BE1.png|32px]] [[File:Arrow of Water Breathing JE1 BE1.png|32px]] [[File:Arrow of Healing JE1 BE1.png|32px]] [[File:Arrow of Harming JE1 BE1.png|32px]] [[File:Arrow of Poison JE1 BE1.png|32px]] [[File:Arrow of Regeneration JE1 BE1.png|32px]] [[File:Arrow of Strength JE1 BE1.png|32px]] [[File:Arrow of Weakness JE1 BE1.png|32px]] Added tipped arrows.
|Tipped arrows are made by using [[cauldron]]s filled with [[potion]]s.
|Arrows can now be found inside [[dispenser]]s in [[jungle temple]]s.}}
{{History||v0.16.0|snap=build 4|[[File:Arrow of Decay BE1.png|32px]] Added the Arrow of [[Wither (status effect)|Decay]].
|Arrows of Decay currently have a white pixelated texture.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Tipped arrows are now [[crafting|craftable]], but they can still be obtained by using [[cauldron]]s filled with [[potion]]s.}}
{{History||1.0.4|snap=alpha 1.0.4.0|Arrows are now [[trading|sold]] by fletcher [[villager]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.0|The [[entity]] ID has been changed from {{cd|arrow.skeleton}} to {{cd|arrow}}.}}
{{History|||snap=alpha 1.1.0.9|[[File:Arrow of Decay BE2.png|32px]] The texture of arrows of [[Wither (status effect)|Decay]] has been changed.}}
{{History|bedrock}}
{{History||1.5.0|snap=beta 1.5.0.4|[[File:Arrow of the Turtle Master JE1 BE1.png|32px]] Added the Arrow of the Turtle Master.}}
{{History||1.6.0|snap=beta 1.6.0.5|[[File:Arrow of Slow Falling JE1 BE1.png|32px]] Added the Arrow of [[Slow Falling]].}}
{{History||1.8.0|snap=beta 1.8.0.10|Arrows can now be used as ammo for the new [[crossbow]]s.}}
{{History||1.9.0|snap=beta 1.9.0.0|Added [[pillager]]s, which [[drops|drop]] arrows upon [[death]].}}
{{History|||snap=beta 1.9.0.2|Arrows and tipped arrows can now be used to craft [[fletching table]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Arrow of Night Vision JE2 BE2.png|32px]] [[File:Arrow of Invisibility JE2 BE2.png|32px]] [[File:Arrow of Leaping JE2 BE2.png|32px]] [[File:Arrow of Fire Resistance JE2 BE2.png|32px]] [[File:Arrow of Swiftness JE2 BE2.png|32px]] [[File:Arrow of Slowness JE2 BE2.png|32px]] [[File:Arrow of Water Breathing JE2 BE2.png|32px]] [[File:Arrow of Healing JE2 BE2.png|32px]] [[File:Arrow of Harming JE2 BE2.png|32px]] [[File:Arrow of Poison JE2 BE2.png|32px]] [[File:Arrow of Regeneration JE2 BE2.png|32px]] [[File:Arrow of Strength JE2 BE2.png|32px]] [[File:Arrow of Weakness JE2 BE2.png|32px]] [[File:Arrow of Decay BE3.png|32px]] [[File:Arrow of the Turtle Master JE2 BE2.png|32px]] [[File:Arrow of Slow Falling JE2 BE2.png|32px]] The [[item]] sprite textures of tipped arrows have been changed.
|Arrows can now be found in [[pillager outpost]] chests.
|Arrows can now break [[chorus flower]]s.}}
{{History||1.11.0|snap=beta 1.11.0.1|Arrows can now be found in [[village]] fletcher [[chest]]s.
|Flaming arrows can now light [[campfire]]s.}}
{{History|||snap=beta 1.11.0.4|Fletcher [[villager]]s now [[trading|sell]] 5 arrows for one [[emerald]].
|Various regular tipped arrows can now be obtained via [[trading]] with fletcher villagers.}}
{{History|||snap=beta 1.11.0.7|Arrow no longer can be used to craft [[fletching table]].}}
{{History||1.12.0|snap=beta 1.12.0.3|Novice-level fletcher villagers now [[trading|sell]] 16 regular arrows instead of 5 arrows.}}
{{History||1.16.0|snap=beta 1.16.0.51|Added [[piglin]]s, which [[drops|drop]] arrows upon [[death]].}}
{{History|||snap=beta 1.16.0.57|Arrows now generate in [[bastion remnants]] chests.
|Master-level fletcher villager now always offer 1 of 15 tipped arrows.
|Piglins no longer drop arrows upon death.}}
{{History||1.16.100|snap=beta 1.16.100.54|Arrows can now be obtained through [[bartering]].}}
{{History||1.19.80|snap=beta 1.19.80.21|Changed potion colors for the following tipped arrows: Fire Resistance, Harming, Invisibility, Leaping, Night Vision, Poison, Slowness, Strength, Swiftness, Turtle Master, and Water Breathing.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Arrow JE2 BE1.png|42px]] [[File:Arrow (item) JE1 BE1.png|32px]] Added arrows.}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|An underwater arrow now loses all velocity after a few [[block]]s and slowly falls.
|A flaming arrow underwater now gets extinguished.}}
{{History||xbox=TU46|xbone=CU36|ps=1.38|wiiu=Patch 15|[[File:Arrow of Night Vision JE1 BE1.png|32px]] [[File:Arrow of Invisibility JE1 BE1.png|32px]] [[File:Arrow of Leaping JE1 BE1.png|32px]] [[File:Arrow of Fire Resistance JE1 BE1.png|32px]] [[File:Arrow of Swiftness JE1 BE1.png|32px]] [[File:Arrow of Slowness JE1 BE1.png|32px]] [[File:Arrow of Water Breathing JE1 BE1.png|32px]] [[File:Arrow of Healing JE1 BE1.png|32px]] [[File:Arrow of Harming JE1 BE1.png|32px]] [[File:Arrow of Poison JE1 BE1.png|32px]] [[File:Arrow of Regeneration JE1 BE1.png|32px]] [[File:Arrow of Strength JE1 BE1.png|32px]] [[File:Arrow of Weakness JE1 BE1.png|32px]] [[File:Arrow of Luck JE1 BE1.png|32px]] Added tipped arrows.
|[[File:Spectral Arrow (item) JE1.png|32px]] Added spectral arrows.
|Spectral arrows are currently unobtainable and do not any effects.}}
{{History||xbox=TU57|xbone=CU49|ps=1.56|wiiu=Patch 27|switch=1.0.7|Spectral arrows now have effects but are not craftable. They can be obtained only via inventory editing.}}
{{History||xbox=TU69|xbone=none|ps=1.76|wiiu=Patch 38|switch=none|[[File:Arrow of Decay BE2.png|32px]] [[File:Arrow of the Turtle Master JE1 BE1.png|32px]] [[File:Arrow of Slow Falling JE1 BE1.png|32px]] Added the Arrow of the [[Wither (status effect)|Decay]], Turtle Master, and [[Slow Falling]].}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Arrow of Night Vision JE2 BE2.png|32px]] [[File:Arrow of Invisibility JE2 BE2.png|32px]] [[File:Arrow of Leaping JE2 BE2.png|32px]] [[File:Arrow of Fire Resistance JE2 BE2.png|32px]] [[File:Arrow of Swiftness JE2 BE2.png|32px]] [[File:Arrow of Slowness JE2 BE2.png|32px]] [[File:Arrow of Water Breathing JE2 BE2.png|32px]] [[File:Arrow of Healing JE2 BE2.png|32px]] [[File:Arrow of Harming JE2 BE2.png|32px]] [[File:Arrow of Poison JE2 BE2.png|32px]] [[File:Arrow of Regeneration JE2 BE2.png|32px]] [[File:Arrow of Strength JE2 BE2.png|32px]] [[File:Arrow of Weakness JE2 BE2.png|32px]] [[File:Arrow of Luck JE2 BE2.png|32px]] [[File:Arrow of Decay BE3.png|32px]] [[File:Arrow of the Turtle Master JE2 BE2.png|32px]] [[File:Arrow of Slow Falling JE2 BE2.png|32px]] The [[item]] sprite textures of tipped arrows have been changed.
|[[File:Spectral Arrow (item) JE2.png|32px]] The [[item]] sprite texture for spectral arrow has been changed.}}

{{History|3ds}}
{{History||0.1.0|[[File:Arrow JE2 BE1.png|42px]] [[File:Arrow (item) JE1 BE1.png|32px]] Added arrows.
|[[File:Arrow of Night Vision JE1 BE1.png|32px]] [[File:Arrow of Invisibility JE1 BE1.png|32px]] [[File:Arrow of Leaping JE1 BE1.png|32px]] [[File:Arrow of Fire Resistance JE1 BE1.png|32px]] [[File:Arrow of Swiftness JE1 BE1.png|32px]] [[File:Arrow of Slowness JE1 BE1.png|32px]] [[File:Arrow of Water Breathing JE1 BE1.png|32px]] [[File:Arrow of Healing JE1 BE1.png|32px]] [[File:Arrow of Harming JE1 BE1.png|32px]] [[File:Arrow of Poison JE1 BE1.png|32px]] [[File:Arrow of Regeneration JE1 BE1.png|32px]] [[File:Arrow of Strength JE1 BE1.png|32px]] [[File:Arrow of Weakness JE1 BE1.png|32px]] Added tipped arrows.}}
{{History||1.3.12|[[File:Arrow of Decay BE2.png|32px]] Added arrows of [[Wither (effect)|Decay]].}}
{{History|foot}}

Historical sounds:

{| class="wikitable"
! Sound
! From
! to
! Pitch
|-
| {{sound||Arrow Old.ogg}}
| ?
| ?
| ?
|}

== Issues ==
{{issue list}}

== Trivia ==
* By default, arrows fly slightly offset to the right. If the player stands close to a wall and fires several arrows without moving the crosshair, the arrows cluster around a point slightly to the right of the crosshair. If the player switches their main hand to be the left hand in options, the arrows instead cluster to the left.
* Arrows fired at [[Nether Portal]]s often skip through the portal block completely and fail to collide, thus continuing through to the opposite side of the block.
* Arrows stuck in blocks vibrate upon a world reload.<ref>{{bug|MC-93992}} – "Arrow shakes when world loads" resolved as "Won't Fix"</ref>
* Although [[enderman|endermen]] teleport when hit by any tipped arrow, they are still given the said effects while avoiding arrow damage.
* {{IN|bedrock}}, even if a tipped arrow is blocked with a shield, while the direct damage from the arrows is negated, the player still gets the effect from the tipped arrow.<ref>{{bug|MCPE-52904}}</ref>

== Gallery ==
===Renders===
<gallery>
Arrow (item).png|Arrow
Spectral Arrow (item) JE2.png|Spectral Arrow
</gallery>
;Tipped Arrows
<gallery>
Arrow of Splashing JE2.png|Splashing
Arrow of Night Vision.png|Night Vision
Arrow of Invisibility.png|Invisibility
Arrow of Leaping.png|Leaping
Arrow of Fire Resistance.png|Fire Resistance
Arrow of Swiftness.png|Swiftness
Arrow of Slowness.png|Slowness
Arrow of the Turtle Master.png|Turtle Master
Arrow of Water Breathing.png|Water Breathing
Arrow of Healing.png|Healing
Arrow of Harming.png|Harming
Arrow of Poison.png|Poison
Arrow of Regeneration.png|Regeneration
Arrow of Strength.png|Strength
Arrow of Weakness.png|Weakness
Arrow of Slow Falling.png|Slow Falling
Arrow of Luck.png|Luck
Arrow of Decay.png|Decay
Uncraftable Tipped Arrow JE2.png|Uncraftable
</gallery>
===Other Media===
<gallery>
Tipped Arrow Ultra High Resolution Screenshot.png|Teaser image from [[Searge]] showing tipped arrows.
AllArrowTypes.png|All the arrow types present in [[Minecraft]].
Custom arrows.png|Examples of custom arrow types using {{cmd|/give}}.
Arrow in Sugar Cane.png|Some arrows stick into [[sugar cane]]s. This no longer works since Java Edition Beta 1.6.
Arrow Burning.gif|An arrow caught on [[fire]].
Flaming_stuck_spectral_arrow.png|A flaming spectral arrow stuck in a tree.
arrows_in_player.png|Many arrows stuck in the player, seen through the [[inventory]] screen.
Arrow Debugging.png|[[Searge]] with a bunch of arrows summoned above him.
Inventory Tipped Arrows 1.jpg|Tipped arrows in the inventory.
Inventory Tipped Arrows 2.jpg|Tipped arrows in the inventory.
Inventory Tipped Arrows 3.jpg|Tipped arrows in the inventory.
Inventory Tipped Arrows 4.jpg|Tipped arrows in the inventory.
Tipped Arrow (empty texture) BE1.png|Unused old texture file for an empty tipped arrow on ''Bedrock Edition''.
</gallery>

== References ==
{{reflist}}

{{Items}}
{{Entities}}

[[Category:Combat]]
[[Category:Renewable resources]]

[[de:Pfeil]]
[[es:Flecha]]
[[fr:Flèche]]
[[hu:Nyíl]]
[[it:Freccia]]
[[ja:矢]]
[[ko:화살]]
[[nl:Pijl]]
[[pl:Strzała]]
[[pt:Flecha]]
[[ru:Стрела]]
[[th:ลูกธนู]]
[[zh:箭]]</li></ul>
September 28, 2011Notch works on "saving arbitrary data with item instances."
1.12
{{Extension DPL}}<ul><li>[[Hopper|Hopper]]<br/>{{About|the block|the crash utility|Hopper (crash utility)}}
{{Block
|image=<gallery>
Hopper (D).png|Java
Hopper (D) BE.png|Bedrock
</gallery>
|extratext = View [[#Gallery|all renders]]
|transparent=Yes
|light=No
|tool=wooden pickaxe
|renewable=Yes
|stackable=Yes (64)
|flammable=No
|lavasusceptible=No
}}
A '''hopper''' is a low-capacity storage [[block]] that can be used to collect [[item (entity)|item entities]] directly above it, as well as to transfer [[item]]s into and out of other containers. A hopper can be locked with [[Redstone Dust|redstone power]] to stop it from moving items into or out of itself.

== Obtaining ==
=== Breaking ===
To obtain a hopper, {{control|mine}} it with a [[pickaxe]]. Using any other item to mine a hopper drops only its contents.
{{breaking row|horizontal=1|Hopper|Pickaxe|Wood|foot=1}}

===Crafting===
A hopper can be crafted from 5 iron ingots and a chest.
{{Crafting
|A1= Iron Ingot
|C1= Iron Ingot
|A2= Iron Ingot
|B2= Chest
|C2= Iron Ingot
|B3= Iron Ingot
|Output= Hopper
|type= Redstone
}}

==Usage==
{{see also|Tutorials/Hopper}}
[[File:Hopper aligment.png|Hoppers can face down or sideways.|thumb]]

A hopper can be used as a container, as a crafting ingredient, and as a redstone component.

A hopper has an "output" tube at its bottom that can face down or sideways and provides a visual indication of which block the hopper is set up to drop its items into, if that block has an inventory. To place a hopper, use the {{control|Place Block}} control while aiming at the surface to which its output should face (Hoppers ''do not'' orient themselves automatically). To place a hopper directly on the face of an already interactable block, the player can {{control|sneak}} while placing the hopper. Attempting to place a hopper aimed on the bottom face of a block instead faces downward. With some blocks, such as the [[furnace]] and [[brewing stand]], the hopper has multiple uses. A hopper does not change direction after placement, and it is not attached to the container it faces; the container can be removed or replaced, and the hopper remains unchanged.

Hoppers cannot be moved by [[piston]]s.{{only|java}} Despite not being a solid block, attached blocks such as [[rail]]s, [[lever]]s, [[tripwire]] and [[redstone]] dust can be placed on top of hoppers, but not on their sides.

===Container===
[[File:Hopper GUI.png|thumb|176px|Hopper GUI showing the hopper's five slots of inventory at the top and the player's inventory below.]]

A hopper can be used as a container and has 5 slots of inventory space.

To open the hopper GUI, use the {{control|use item|text=Use Item/Place Block}} [[control]]. To move items between the hopper inventory and the player inventory or hotbar while the hopper GUI is open, drag or shift-click the items. To exit the hopper GUI, use the {{key|Esc}} key, B button or circle button, depending on the device.

By default, the GUI of a hopper is labeled "Item Hopper". A hopper's GUI label can be changed by naming the hopper in an [[anvil]] before placing it, or, {{in|java}}, by using the [[Commands#data|data]] command (for example, to label a hopper at (0,64,0) "Steve's Hopper", use <code>/data merge block 0 64 0 {CustomName:'"Steve's Hopper"'}</code>).

{{IN|java}}, a hopper's GUI can be "locked" (or subsequently unlocked) by setting the hopper's <code>Lock</code> tag with the [[Commands#data|data]] command. If a hopper's <code>Lock</code> tag is not blank, the hopper cannot be accessed except by players holding an item with the same name as the <code>Lock</code> tag's text. For example, to lock a hopper at (0,64,0) so that only players holding an item named "Steve's Key" can access the hopper, use <code>/data merge block 0 64 0 {Lock:"Steve's Key"}</code>.

===Crafting ingredient===
A hopper can be used to craft a [[minecart with hopper]].
{{crafting usage}}

===Redstone component===
{{see also|Redstone circuit|Redstone components#Hopper}}
[[File:Hopper logic flowchart.png|thumb|Flowchart of hopper logic]]

While a hopper is ''not'' powered by redstone signals, it operates with three functions:

*'''Collect''' [[Item (entity)|item entities]] (free-floating items in the world) into its inventory from the space above it
*'''Pull''' a single item into its inventory from a container above it
*'''Push''' a single item from its own inventory into a container it faces

A hopper first attempts to push any items inside it. Afterward, it checks if the block above it is a type of container. If so, it attempts to pull from it. Otherwise, the hopper attempts to collect item entities. Notably, hoppers can push to and pull from other hoppers, forming '''hopper pipes''' or '''hopper chains''', which allow transporting items across several blocks and are further discussed below.

====Redstone signals====
When a hopper receives a redstone signal (and is considered to be "activated"), all three functions stop. To avoid confusion over the terms "activated" and "deactivated", powered hoppers are often described as being '''locked''' and unpowered hoppers described as being '''unlocked'''. Hoppers can be powered by [[Redstone_mechanics#Power|soft powered]] blocks, meaning a [[redstone dust]] trail pointing into a block touching the hopper locks it just as effectively as a [[redstone block]] or any other [[Redstone components#Power components|power component]] touching the hopper. When the hopper is unlocked during a redstone tick, it does not push or pull/collect during the same tick, but has a delay of 1 redstone tick instead.

While a locked hopper does not push or pull/collect items, it may still receive items from [[dispenser]]s, [[dropper]]s and other hoppers, and may have its items pulled out by another hopper beneath it. Hence, the item flow in a horizontal hopper pipe may be stopped by locking just one of the hoppers, but stopping a vertical hopper pipe requires locking two adjacent hoppers at the same time, such that both the pushing of the top one and the pulling of the bottom one are stopped.  

A hopper does not output any redstone signals by itself, but its fullness can be read using a [[Redstone Comparator|redstone comparator]], which needs to be placed next to it and facing away from it. An empty hopper outputs a signal strength of 0 and a completely full hopper outputs a signal strength of 15. Notably, a single stackable item (16 or 64) outputs a signal strength of 1 and a single non-stackable item outputs a signal strength of 3.  

{{IN|Java}}, if the hopper being read is part of a horizontal hopper pipe, the comparator can individually read each item passing through the chain, because items are pushed through the hoppers one by one at a speed that is manageable by the comparator. If there is an uninterrupted stream of items, the comparator does not switch off in between items. On the other hand, in a vertical hopper pipe, some of the hoppers may never produce a reading above 0, even with a continuous stream of items, because pushes and pulls both occur in the same game tick: The hoppers' items get pulled out a single game tick after they're pushed in and this isn't measurable by a comparator, because comparators need measurements lasting at least 1.5 redstone ticks to produce a reading.  

====Collecting items====
A hopper collects items dropped on top of it if the space above the hopper not occupied by a storage block. Items are gathered from the entire 1 block space above the hopper, meaning that items sitting on partial blocks such as [[soul sand]] directly above a hopper can be collected.<ref>https://bugs.mojang.com/browse/MCPE-55824</ref> It is also possible for a hopper to collect items from inside a full, solid block, a situation that might come from items rising up through solid blocks or being [[commands/summon|summoned]]. Item entities are not collected when they are outside of the collection area however; for example, items on top of a stone block directly above a hopper are not collected. Collected items are placed in the leftmost empty slot of a hopper's inventory.

{{IN|java}}, if there is no container above the hopper, then the hopper collects dropped items in the order in which they landed on the hopper. This order is remembered even while a hopper is locked. For instance, if a hopper is locked under a carpet while a fully equipped [[armor stand]] is broken above it, then it always collects items in this order when it is unlocked: [[armor stand]], [[boots]], [[leggings]], [[chestplates]], [[helmets]]. This is due to the order in which these items land.{{Verify|Wouldn't this be due to the order in which the game creates the item entities that drop drop from the armor stand?}} {{IN|Bedrock}}, hoppers do not remember the order in which items land on the hopper. Instead, hoppers with multiple dropped items above them collect the items in the order in which they entered the chunk in which the hopper is located. Items that drop from a broken armor stand are collected in a random order.<ref>https://bugs.mojang.com/browse/MCPE-120586</ref>

Hoppers usually check for dropped items every [[game tick]] and they can collect items even before they are picked up by a [[player]]{{Verify|Does this happen always, or sometimes, and in Java only or also in Bedrock?}} or destroyed by [[lava]]. However, {{In|Bedrock}} hoppers have a "collection cooldown" time. After collecting an item (or stack of items), a hopper waits {{tooltip|4 redstone ticks|8 game ticks}} (0.4 seconds, barring lag) before attempting to collect again.

Hoppers collect groups of items all at once rather than collecting them as single items one at a time. As a result, hoppers can collect item entities much faster than they can pull items from a container. Pulling from a moving [[minecart with chest]] or [[minecart with hopper]] is even slower, since the minecart is not always above the hopper.

====Pushing and pulling items====
A hopper with a storage container above it (such as a [[furnace]], [[chest]], [[dropper]], [[composter]], or another hopper) attempts to pull from the container instead of checking for floating items above it, and hence can not collect items.  A hopper always tries to push or pull items using the leftmost available slot. When a hopper is removing items from a chest, the items disappear from left to right. Similarly, when filling up a chest, the chest fills up from left to right. Hoppers prioritize pulling from the first slot of a container over pulling into the first hopper slot. If a hopper has stone in its first slot and nothing in its second while the container it is pulling from has chicken in its first slot but stone in the second, the hopper pulls the chicken from the first slot of the container into its empty second slot. However, if the hopper is unable to pull the chicken, such as if all slots are filled with stone, the hopper pulls the stone from the second slot of the container instead. Similarly, hoppers prioritize pushing from their first slot over pushing into the first slot of a container. If a hopper has stone in its first slot and chicken in its second while the container it is pushing to has chicken it its first slot but stone in the second, the hopper pushes stone from its first slot into the second slot of the container.

In [[Java Edition]] the checks done by a hopper while pulling generally require less processing than the checks done by a hopper attempting collection. Therefore, a chain of hoppers topped with storage containers rather than air/solid blocks has better performance (measured as milliseconds of processing per tick) and lower potential for processing lag. <ref name=":0">https://www.youtube.com/watch?v=LC3ZOOI1Rf0</ref> The performance improvement achieved is correlated with the number of storage slots the container has. Placing composters (with no storage slots but still with custom output logic) on top of hoppers provide the greatest efficiency, while double chests actually degrade performance, even when sharing each double chest across two hoppers.<ref name=":0" /> In [[Bedrock Edition]] a chain of hoppers with air or non-container blocks on top has better performance than a chain of hoppers topped by container blocks.<ref>https://cdn.discordapp.com/attachments/715523208530362389/890030941282631741/Redstone_MSPT_measure.xlsx</ref> This may be because, even though hoppers with containers on top do not check for items, they do check for hopper-minecarts and chest-minecarts to pull from, and that involves scanning the chunk entity list.<ref>{{bug|MCPE-109449}}</ref>

{{Schematic|caption='''Push then Pull'''
Chest A is full of items while the hopper and Chest B are empty.
|ch-$+A||-
|ho-$e|ch-$+B
}}

Item pushes and pulls are processed in the same game tick, but pushes are processed before pulls. In the schematic, the empty hopper first pulls an item from chest A as it cannot push anything into chest B. After the cooldown, the hopper first pushes its item into chest B before pulling another item from chest A, both pushing and pulling in the same tick, and the process repeats. The hopper stops pulling when A is empty, and stops pushing when B becomes full.

Hoppers also have a "transfer cooldown" time. After pulling and/or pushing items, a hopper waits {{tooltip|4 redstone ticks|8 game ticks}} (0.4 seconds, barring lag) before pulling or pushing again (a transfer rate of 2.5 items per second, barring lag). A hopper that has an item pushed into it from another hopper also starts a 4 tick cooldown period, regardless of whether it pushed or pulled items itself. Item entities can be collected at any time without affecting the transfer cooldown time. The transfer cooldown and the Bedrock Edition collection cooldown are independent of each other.

====Container interactions====
Some [[container]]s interact with hoppers in specific ways:

:;{{BlockLink|Composter}}
::Hoppers above composters can push compostable items into the composter's top face with a chance of increasing the level of the composter as if the player used the item on the composter. Items that are not compostable cannot be pushed into the composter. Hoppers below the composter can pull [[bone meal]] when the composter is in stage 8, emptying the composter and resetting it to stage 0. Hoppers to the side of a composter do not interact with it.

:;{{BlockLink|Brewing Stand}}
::A working hopper on the top face of a brewing stand deposits only into the ingredient slot and it can push only valid [[brewing]] ingredients. A hopper on side face of a brewing stand can deposit only [[blaze powder]] or filled bottles into the three brew slots. A hopper underneath a brewing stand always extracts from the three brew slots, whether brewing is finished or not—The hopper must be locked to allow potions to finish brewing.

:;{{BlockLink|Chest}}
:;{{BlockLink|Trapped Chest}}
::Large chests and large trapped chests are treated as a single container: A hopper depositing into a large chest fills up the entire chest and a hopper underneath a large chest empties the entire chest. Trapped chests being accessed by a player lock any adjacent hoppers, per the standard behavior of a hopper next to an active power source.

:;{{BlockLink|Furnace}}
:;{{BlockLink|Blast Furnace}}
:;{{BlockLink|Smoker}}
::A working hopper pointing into top of a furnace deposits only into the ingredient slot. It can push any item, including items that can't be smelted by the furnace. A hopper pointing into the side of a furnace deposits into the fuel slot, and only items that are usable as fuel. A hopper below a furnace pulls everything from the output slot and empty [[bucket]]s from the fuel slot left over from using [[lava bucket]]s as fuel. When a hopper removes items from a furnace, the experience points are 'stored' in the furnace until a player removes at least one smelted item, or the furnace block is broken.

:;{{BlockSprite|Hopper}} Hopper
::A sequence of three or more hoppers, each pushing items into the next, is called a '''hopper pipe'''. Working horizontal hopper pipes simply push items into each other at the expected rate of 2.5 items per second, but vertical hopper pipes are more complicated, as the hoppers are trying both to pull and to push. When a vertical pipe pulls from a single container, it simply transfers items at 2.5 items per second because the transfer rate is limited by the first hopper pulling items from the container. If a ''stack of items'' is in a vertical pipe, the items can be transferred twice as fast, because the hopper with the item stack is pushing items down while the hopper below it is also pulling items down.

:;{{EntityLink|Minecart with Chest}}
:;{{EntityLink|Minecart with Hopper}}
::Unlocked hoppers fill chest minecarts and hopper minecarts if any part of the entity's hitbox is within the hopper's target block-space. Hopper minecarts try to pull items from the hopper at high speed. Hoppers can pull items from minecarts above them so rails can be placed directly on the top faces of a hoppers. If a [[detector rail]] is in the right position, it could lock the hopper per standard redstone-hopper behavior.

:;{{BlockLink|Jukebox}}
::Hoppers can insert [[music disc]]s into jukeboxes, and extract the music discs after they finish playing.

:;{{BlockLink|Shulker Box}}
::Hoppers cannot put shulker boxes into other shulker boxes. This allows for the creation of certain [[Tutorials/Hopper#Potions and shulker boxes|item filters]].
::Otherwise, hoppers interact with shulker boxes normally.

:;{{BlockLink|Lectern}}
::Hoppers cannot remove or place books on lecterns. The redstone pulse emitted from a lectern when a page is turned can temporarily lock hoppers.

:;{{BlockLink|Ender Chest}}
::Hoppers cannot interact with ender chests in any way.

:;{{BlockLink|Barrel}}
:;{{BlockLink|Dispenser}}
:;{{BlockLink|Dropper}}
:;{{EntityLink|Boat with Chest}}
::Hoppers interact normally with barrels, dispensers, droppers, and boats with chests.

:;{{BlockLink|Chiseled Bookshelf}}
::Hoppers and minecart with hoppers can insert and remove books from the bookshelf. As with any other container, items are taken from the first slot that has an item that can fit in the hopper and are inserted into the first empty slot.

==Sounds==
===Generic===
{{Sound table/Block/Metal}}
===Unique===
{{Edition|Java}}:
{{Sound table
|sound=Door close.ogg
|sound2=Door open.ogg
|subtitle=Chest locked<ref group=sound name=lock>{{Bug|MC-98316||Wrong subtitles caused by missing distinction}}</ref>
|source=block
|description=When a player attempts to open a hopper locked using the {{nbt|string|Lock}} tag
|id=block.chest.locked|idnote=<ref group=sound name=lock/>
|translationkey=subtitles.block.chest.locked|translationkeynote=<ref group=sound name=lock/>
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}

{{Edition|Bedrock}}: ''None''

==Data values==
===ID===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Hopper
|spritetype=block
|nameid=hopper
|foot=1}}
{{ID table
|displayname=Block entity
|spritename=hopper
|spritetype=block
|nameid=hopper
|foot=1}}

{{edition|bedrock}}: 
{{ID table
|edition=bedrock
|firstcolumnname=Hopper
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Block
|spritename=hopper
|spritetype=block
|nameid=hopper
|id=154
|form=block
|itemform=item.hopper}}
{{ID table
|displayname=Item
|spritename=hopper
|spritetype=item
|nameid=hopper
|id=527
|form=item
|translationkey=tile.hopper.name
|foot=1}}
{{ID table
|notnamespaced=y
|displayname=Block entity
|spritename=hopper
|spritetype=block
|nameid=Hopper
|foot=1}}

===Block states===
{{see also|Block states}}

{{/BS}}

===Block data===
A hopper has a block entity associated with it that holds additional data about the block.

{{el|java}}:
{{see also|Block entity format}}
{{/BE}}

{{el|bedrock}}:
:See [[Bedrock Edition level format/Block entity format]].

==Achievements==
{{load achievements|Freight Station;Smelt Everything}}

==Video==
<div style="text-align:center">{{yt|XO0IKUsGiG8}}</div>

==History==
{{History|java}}
{{History||1.5|snap=13w01a|[[File:Hopper (D) JE1.png|32px]] [[File:Hopper (N) JE1.png|32px]] [[File:Hopper (E) JE1.png|32px]] [[File:Hopper (S) JE1.png|32px]] [[File:Hopper (W) JE1.png|32px]] [[File:Hopper (U) JE1.png|32px]] Added hoppers.
|Hoppers with the [[damage]] value of 1, which are obtainable only through world editing, visually point in no direction. They functionally push items upward, however the behavior is inconsistent.
|[[File:Hopper (item) JE1.png|32px]] There is currently a temporary "work in progress" sprite for hoppers in the [[inventory]].
|Hoppers can be [[crafting|crafted]] from a [[chest]] and [[stone]] blocks with the following recipe:
{{{!}} class{{=}}"collapsible collapsed"
! Recipe
{{!}}-
{{!}}
{{Crafting Table
  |A1= Stone
  |C1= Stone
  |A2= Stone
  |B2= Chest
  |C2= Stone
  |B3= Stone
  |Output= Hopper
}}
{{!}}}
}}
{{History|||snap=13w01b|[[Rail]]s can now be placed on top of hoppers. 
|Hoppers no longer load [[item]]s into [[minecart]]s without [[chest]]s.}}
{{History|||snap=13w02a|[[File:Hopper (item) JE2 BE1.png|32px]] The [[inventory]] sprite of hoppers has been changed.
|[[File:Hopper (item) 13w02a.png|32px]] However, the [[item]] of hoppers appears bugged if [[drops|dropped]] or placed in an [[item frame]].<ref>{{bug|MC-6737}}</ref> This may be due to the game attempting to pull the item sprite from the hopper's equivalent spot in <samp>[[stitched_terrain.png]]</samp> (compare files: [[:File:13w02a stitched terrain.png|terrain]], [[:File:13w02a stitched items.png|items]]), a region which contains parts of the oak planks, end stone and iron bars textures.
|Applying a [[redstone]] signal to a hopper now deactivates the hopper until the signal is removed.
|Hoppers can no longer be used as [[fuel]] in a [[furnace]].
|Hoppers are now [[crafting|crafted]] using 5 [[iron ingot]]s rather than 5 [[stone]] blocks.
{{{!}} class{{=}}"collapsible collapsed"
! Recipe
{{!}}-
{{!}}
{{Crafting
|A1= Iron Ingot
|C1= Iron Ingot
|A2= Iron Ingot
|B2= Chest
|C2= Iron Ingot
|B3= Iron Ingot
|Output= Hopper
}}
{{!}}}
|Hoppers now pull only from the output slot of [[furnace]]s.
|Hoppers now output 1 signal strengh per 1/3 of a stack (21 [[item]]s) when interacting with a [[redstone comparator]].
|[[File:Hopper (D) JE2.png|32px]] [[File:Hopper (N) JE2.png|32px]] [[File:Hopper (E) JE2.png|32px]] [[File:Hopper (S) JE2.png|32px]] [[File:Hopper (W) JE2.png|32px]] [[File:Hopper (U) JE2.png|32px]] The texture of hoppers has been given a unique texture. Hoppers no longer use the [[cauldron]] texture. Note that the top texture does not rotate with facing direction.
|The preferred tool is now a pickaxe, rather than the axe.}}
{{History|||snap=13w02b|Hoppers now treat large [[chest]]s properly, no longer needing two hoppers connected to them to fill up the entire [[inventory]].
|Hoppers no longer take [[item]]s from containers when powered via a [[redstone]] current.
|Hoppers now display correctly as a [[drops|dropped]] or [[item frame|frame]] [[item]].}}
{{History|||snap=13w03a|Hoppers are now used to [[crafting|craft]] a [[minecart with hopper]].
|Hoppers can now empty a [[minecart with hopper]].}}
{{History|||snap=13w04a|The transfer rate of hoppers has been changed from 7 to 8 [[game tick]]s per [[item]] (2.5 items per second).}}
{{History||1.5.1|snap=pre|Hoppers now take empty [[bucket]]s out of furnace fuel slots.}}
{{History||1.7.2|snap=release|[[File:Hopper (D) JE3.png|32px]] [[File:Hopper (N) JE3.png|32px]] [[File:Hopper (E) JE3.png|32px]] [[File:Hopper (S) JE3.png|32px]] [[File:Hopper (W) JE3.png|32px]] [[File:Hopper (U) JE3.png|32px]] The UV of all blocks is broken on certain sides as a result of {{bug|MC-37106}} (few cases are listed on the wiki so far - this is a future project). This includes hoppers.}}
{{History||1.7.4|snap=13w47a|[[File:Hopper (D) JE4.png|32px]] [[File:Hopper (N) JE4.png|32px]] [[File:Hopper (E) JE4.png|32px]] [[File:Hopper (S) JE4.png|32px]] [[File:Hopper (W) JE4.png|32px]] [[File:Hopper (U) JE4.png|32px]] MC-37106 has been fixed, reverting hoppers to their pre-1.7.2 appearences.}}
{{History|||snap=13w48a|This version fixed {{bug|MC-190}}, which hoppers were allegedly subject to since their introduction. However, a comparison of hopper UV in 13w02a and 14w08a failed to reveal any visible differences, even accounting for the example images on the ticket. More research is needed on this matter.}}
{{History||1.8|snap=?|Hoppers no longer generate [[multiplayer]] lag when idle.}}
{{History|||snap=14w10a|[[File:Hopper (D) JE5.png|32px]] [[File:Hopper (N) JE5.png|32px]] [[File:Hopper (E) JE5.png|32px]] [[File:Hopper (S) JE5.png|32px]] [[File:Hopper (W) JE5.png|32px]] [[File:Missing Model JE2.png|32px]] Hoppers now use block models rather than having a hardcoded shape. This brings multiple changes: the inside texture now rotates with the hopper rather than being constant, the inside planes of hoppers are now shaded/have ambient occlusion, and some minor UV changes have occurred, notably on the smallest cuboid. The directionless hopper also [[Missing model|no longer has a model]].}}
{{History|||snap=14w26a|The directionless hopper has been removed.}}
{{History|||snap=14w31a|Hoppers now no longer use wood [[sound]]s.<ref>{{bug|MC-5991}}</ref>}}
{{History||1.9|snap=15w33c|A hopper now generates as a part of the [[end ship]] in the [[end city|end cities]].}}
{{History|||snap=15w41a|End ships no longer contain a hopper.}}
{{History|||snap=15w43a|[[Loot table]]s have been added; hoppers can now use loot tables.}}
{{History|||snap=15w43c|[[File:Hopper (D) JE6.png|32px]] [[File:Hopper (N) JE6.png|32px]] [[File:Hopper (E) JE6.png|32px]] [[File:Hopper (S) JE6.png|32px]] [[File:Hopper (W) JE6.png|32px]] The UV on the hopper model has changed, resulting in minor differences, particularly to the smallest cuboid. This is likely due to the fix for {{bug|MC-73401}}.}}
{{History|||snap=15w44a|[[File:Hopper (D) JE7.png|32px]] [[File:Hopper (N) JE7.png|32px]] [[File:Hopper (E) JE7.png|32px]] [[File:Hopper (S) JE7.png|32px]] [[File:Hopper (W) JE7.png|32px]] A mapping issue introduced in the previous snapshot for the sides of the large funnel region has been fixed. This may be due to the fix for {{bug|MC-50344}}.}}
{{History||1.9.1|snap=pre1|A hopper can now push into and pull [[item]]s from a blocked [[chest]].}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 154.}}
{{History||1.14|snap=18w43a|[[File:Hopper (D) JE8.png|32px]] [[File:Hopper (N) JE8.png|32px]] [[File:Hopper (E) JE8.png|32px]] [[File:Hopper (S) JE8.png|32px]] [[File:Hopper (W) JE8.png|32px]]<br>[[File:Hopper (item) JE3 BE2.png|32px]] The textures of hoppers have been changed.}}
{{History|||snap=19w03c|Hoppers now use correct cullface arguments, and some redundant faces have also been deleted.}}
{{History||1.19|snap=22w13a|Hoppers no longer drop when breaking a [[minecart with hopper]].}}
{{History||1.19.4|snap=23w07a|Hoppers can now interact with jukeboxes.}}

{{History|pocket alpha}}
{{History||v0.14.0|snap=build 1|[[File:Hopper (D) JE2.png|32px]]{{verify|Is this model correct?}}<br>[[File:Hopper (item) JE2 BE1.png|32px]] Added hoppers. Upward hoppers also exist.}}
{{History||v0.15.0|snap=build 1|Hoppers can now be moved by [[piston]]s.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Hopper (D) BE.png|32px]] [[File:Hopper (N) BE.png|32px]] [[File:Hopper (E) BE.png|32px]] [[File:Hopper (S) BE.png|32px]] [[File:Hopper (W) BE.png|32px]] [[File:Hopper (U) BE.png|32px]]<br>[[File:Hopper (item) JE3 BE2.png|32px]] The textures of hoppers have been changed.}}
{{History||1.19.70|snap=beta 1.19.70.20|Hoppers can now collect items through all blocks that have a lower height than a full block.}}

{{History|console}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Hopper (D) JE2.png|32px]]{{verify|Is this model correct?}}<br>[[File:Hopper (item) JE2 BE1.png|32px]] Added hoppers.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Hopper (D) JE8.png|32px]]{{verify|Is this model correct?}}<br>[[File:Hopper (item) JE3 BE2.png|32px]] The textures of hoppers have been changed.}}
{{History||ps=1.91|Hoppers can now fill [[composter]]s.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Hopper (D) JE2.png|32px]]{{verify|Is this model correct?}}<br>[[File:Hopper (item) JE2 BE1.png|32px]] Added hoppers.}}
{{History|foot}}

==Issues==
{{Issue list}}

==Trivia==
* A [[wikipedia:Hopper (particulate collection container)|real-world hopper]] is a large, pyramidal or cone-shaped container used in industrial processes to hold particulate matter, like dust, gravel, nuts, seeds, etc., and can then dispense them from the bottom.
* A hopper can transfer 9000 items per hour, or 150 items per minute.

==Gallery==
=== Renders ===
<gallery>
Hopper (N).png
Hopper (E).png
Hopper (S).png
Hopper (W).png
</gallery>
<gallery>
Hopper (N) BE.png
Hopper (E) BE.png
Hopper (S) BE.png
Hopper (W) BE.png
</gallery>

=== Screenshots ===
<gallery>
File:Hopper screenshot 1.png|In snapshot 13w01a, the hopper item uses a 'WIP' sprite, though the item still read "Hopper".
File:13w02a Banner.png|The 13w02a Banner includes a [[minecart with TNT]]  and a hopper.
</gallery>

==References==
{{Reflist}}

{{Redstone}}
{{Blocks|Utility}}
{{Items}}

[[Category:Mechanisms]]
[[Category:Redstone mechanics]]
[[Category:Mechanics]]
[[Category:Storage]]
[[Category:Utility blocks]]
[[Category:Manufactured blocks]]
[[Category:Block entities]]

[[cs:Násypka]]
[[de:Trichter]]
[[el:Hopper]]
[[es:Tolva]]
[[fr:Entonnoir]]
[[it:tramoggia]]
[[ja:ホッパー]]
[[ko:호퍼]]
[[nl:Trechter]]
[[pl:Lej]]
[[pt:Funil]]
[[ru:Загрузочная воронка]]
[[uk:Лійка]]
[[zh:漏斗]]</li><li>[[Sword|Sword]]<br/>{{For|the item in ''Minecraft Dungeons''|MCD:Sword|MCD:Diamond Sword}}
{{Item
| image = <gallery>
Wooden Sword.png | Wooden
Stone Sword.png | Stone
Iron Sword.png | Iron
Golden Sword.png | Golden
Diamond Sword.png | Diamond
Netherite Sword.png | Netherite
</gallery>
| rarity = Common
| renewable = 
* '''Netherite''': No
* '''All others''': Yes
| durability = 
'''Java Edition'''<br>
Golden: 32<br>
Wood: 59<br>
Stone: 131<br>
Iron: 250<br>
Diamond: 1561<br>
Netherite: 2031<br>
'''Bedrock Edition'''<br>
Golden: 33<br>
Wood: 60<br> 
Stone: 132<br>
Iron: 251<br>
Diamond: 1562<br>
Netherite: 2032
| stackable = No
}}
The '''sword''' is a melee [[weapon]] that is mainly used to deal [[damage]] to [[entity|entities]] or for breaking certain blocks faster than by hand. A sword is made from one of six materials, in order of increasing quality and expense: wood, gold, stone, iron, diamond and netherite.

== Obtaining ==
=== Crafting ===
{{Crafting
  |showname=0
  |showdescription=1
  |head=1
  |name=[[Swords]]
  |B1={Any Planks}; Iron Ingot; Gold Ingot; Diamond
  |B2={Any Planks}; Iron Ingot; Gold Ingot; Diamond
  |B3=Stick
  |Output=Wooden Sword; Iron Sword; Golden Sword; Diamond Sword
  |type=Combat
}}
{{Crafting
  |name=Stone Sword
  |B1=Any stone-tier block
  |B2=Any stone-tier block
  |B3=Stick
  |Output=Stone Sword
  |description=Can use cobblestone and its other variants interchangeably.
  |type=Combat
}}
{{Crafting
  |foot=1
  |ignoreusage=1
  |name=[[Swords]]
  |ingredients=Damaged Matching [[Swords]]
  |Damaged Wooden Sword; Damaged Stone Sword; Damaged Iron Sword; Damaged Golden Sword; Damaged Diamond Sword; Damaged Netherite Sword
  |Damaged Wooden Sword; Damaged Stone Sword; Damaged Iron Sword; Damaged Golden Sword; Damaged Diamond Sword; Damaged Netherite Sword
  |description= The durability of the two swords is added together, plus an extra 5% of the tool type's total durability. Enchantments are removed unless combined on an [[anvil]].<br>'''Example:''' Two wooden swords, each with remaining durability of 20, combine into a wooden sword having 43 durability (20 + 20 + 5% of 60).
  |Output=Wooden Sword; Stone Sword; Iron Sword; Golden Sword; Diamond Sword; Netherite Sword
  |type=Combat
}}

=== Upgrading ===
{{Smithing
|Netherite Upgrade
|Diamond Sword
|Netherite Ingot
|Netherite Sword
|description=
|tail=1
}}

=== Repairing ===
==== Grinding ====
{{Grinding
|showdescription=1
|ingredients=2x Damaged Wooden Sword or<br>2x Damaged Stone Sword or<br>2x Damaged Iron Sword or<br>2x Damaged Golden Sword or<br>2x Damaged Diamond Sword or <br>2x Damaged Netherite Sword
|Damaged Wooden Sword; Damaged Stone Sword; Damaged Iron Sword; Damaged Golden Sword; Damaged Diamond Sword; Damaged Netherite Sword
|Damaged Wooden Sword; Damaged Stone Sword; Damaged Iron Sword; Damaged Golden Sword; Damaged Diamond Sword; Damaged Netherite Sword
|Wooden Sword; Stone Sword; Iron Sword; Golden Sword; Diamond Sword; Netherite Sword
|description=The durability of the two swords is added together, plus an extra 5% durability. Any enchantments, besides curses, would be removed.
}}

==== Unit repair ====
{{main|Anvil mechanics#Unit repair}}
{{/Repairing with Anvils}}
A sword can be repaired in an [[anvil]] by adding units of the [[tiers]]' repair material, with each repair material restoring 25% of the sword's maximum durability, rounded down.

=== Mob loot ===
{{Main|Drops#Equipped items}}

Some [[mobs]] can spawn with a sword and have an 8.5% chance of dropping them upon death caused by player. This chance is increased by 1% per level of [[Looting]], up to a maximum of 11.5% with Looting III. [[Zombie]]s and [[husk]]s can drop iron swords, [[zombified piglin]]s and [[piglin]]s can drop golden swords, and [[wither skeleton]]s can drop stone swords. The dropped sword is usually badly damaged and may be enchanted. Stone swords dropped by wither skeletons are never enchanted.

A [[vex]] wields an iron sword that normally has a 0% chance of dropping, because their main hand's <code>HandDropChances</code> is 0. However, this chance increases by 1 percentage point per level of Looting. It is never damaged{{only|java}} and may be enchanted.

{{IN|be}}, [[pillager]]s and [[vindicator]]s that spawn from raids have a 4.1% chance (5.12% chance on hard mode) of dropping a damaged iron sword. This sword has a 50% chance of being enchanted.

=== Trading ===
[[File:Weaponsmith Diamond Sword Trade.png|thumb|right|The diamond sword trade of a weaponsmith.]]

{{IN|bedrock}}, an apprentice-level weaponsmith villagers sells enchanted iron swords for at least 7-21 emeralds, and a master-level weaponsmith sells enchanted diamond swords for at least 13-27 emeralds.

{{IN|java}}, a novice-level weaponsmith villager has a {{frac|2|3}} chance of selling an enchanted iron sword for at least 7-22 emeralds. A master-level weaponsmith offers to sell an enchanted diamond sword for at least 11–27 emeralds.

The enchantments of the swords offered by villagers are the same as the ones obtained from an [[enchantment table]] at levels 5–19.

=== Chest loot ===
{{LootChestItem|iron-sword,level-enchanted-iron-sword,damaged-random-enchanted-iron-sword,golden-sword,random-enchanted-golden-sword,diamond-sword,damaged-diamond-sword,level-enchanted-diamond-sword,damaged-random-enchanted-diamond-sword,damaged-random-enchanted-diamond-sword-2}}

== Usage ==
=== Attacking ===
Pressing {{control|attack}} while holding a sword inflicts damage on both mobs and other players. Upon damaging a mob or player, the sword's [[Item Durability|durability]] decreases by 1.

Attacking a [[boat]] or a [[minecart]] with a sword stone tier or higher instantly destroys it {{only|java}}, without decreasing the sword's durability. Otherwise, it requires 2 hits, with neither decreasing durability.

==== Sweeping ====
{{exclusive|Java|section=1}}
If the attack recharge meter is 84.8% or above and the player is on the ground standing or moving slower than the [[sprinting]] speed in a straight line, the sword performs a sweeping attack indicated by a gale [[particle]] that reaches nearby enemies for {{hp|1}} and knocks them back; the amount of knockback is 80% that of the basal knockback and does not benefit from the [[knockback]] enchantment. As result, the player can perform a sweep attack while they are sprinting diagonally but it is impossible to perform a sweep attack at the same time as a critical hit or while riding some [[entity]]. All enemies within an 1 by 0.25 by 1 block area of any part of the attacked mob and whose feet are 3 or less blocks away from player's feet are affected. The [[sweeping edge]] enchantment increases the damage dealt by 50% of the normal hit damage for level I, 67% for level II and 75% for level III.

=== Damage ===
{{Main|Damage}}

==== Java Edition ====
Swords have an attack speed of 1.6 and take 0.625 seconds to [[Damage#Attack cooldown|recover]]. 

{| class="wikitable" style="text-align:center" data-description="Sword attack damage by type"
! Material
! {{ItemSprite|Wooden Sword|text=Wooden}}
! {{ItemSprite|Golden Sword|text=Gold}}
! {{ItemSprite|Stone Sword|text=Stone}}
! {{ItemSprite|Iron Sword|text=Iron}}
! {{ItemSprite|Diamond Sword|text=Diamond}}
! {{ItemSprite|Netherite Sword|text=Netherite}}
|-
! Attack Damage
| {{hp|4}}
| {{hp|4}}
| {{hp|5}}
| {{hp|6}}
| {{hp|7}}
| {{hp|8}}
|-
! Attack Speed
| 1.6
| 1.6
| 1.6
| 1.6
| 1.6
| 1.6
|-
! Damage/Second (DPS)
| 6.4
| 6.4
| 8
| 9.6
| 11.2
| 12.8
|-
! Durability
| 59
| 32
| 131
| 250
| 1561
| 2031
|-
! Lifetime damage inflicted<ref group="note">The formula to find the total lifetime damage is ''Lifetime damage minimum = Durability × Damage per hit''. It ignores enchantments and [[Damage#Critical_hit|critical hits]], and assumes the sword is at maximum charge</ref>
| {{hp|236}}
| {{hp|128}}
| {{hp|655}}
| {{hp|1500}}
| {{hp|10927}}
| {{hp|16248}}
|}
{{notelist}}

==== Bedrock Edition ====
{{IN|bedrock}}, swords have no attack cooldown or sweep attack, and deal the following damage:

{| class="wikitable" style="text-align:center" data-description="Sword attack damage by type"
! Material
! {{ItemSprite|Wooden Sword|text=Wooden}}
! {{ItemSprite|Golden Sword|text=Gold}}
! {{ItemSprite|Stone Sword|text=Stone}}
! {{ItemSprite|Iron Sword|text=Iron}}
! {{ItemSprite|Diamond Sword|text=Diamond}}
! {{ItemSprite|Netherite Sword|text=Netherite}}
|-
! Attack Damage
| {{hp|5}} <!-- DO NOT CHANGE THESE! The values are correct, '+4 Attack Damage' means 5 total attack damage. -->
| {{hp|5}}
| {{hp|6}}
| {{hp|7}}
| {{hp|8}}
| {{hp|9}}
|-
! Durability
| 60
| 33
| 132
| 251
| 1562
| 2032
|-
! Lifetime damage inflicted<ref group="note">The formula to find the total lifetime damage is ''Durability × Damage per hit = Lifetime damage minimum''. It excludes enchantments and critical hits</ref>
| {{hp|300}}
| {{hp|165}}
| {{hp|792}}
| {{hp|1757}}
| {{hp|12496}}
| {{hp|18288}}
|}
{{notelist}}

The most amount of damage that a sword enchanted with [[Sharpness]] V can do is 11 {{in|java}} and 15.25 {{in|bedrock}}, without critical hits.

=== Sword breaking times ===
{{main|Breaking}}

A sword can also be used to destroy certain blocks 50% quicker, sometimes much quicker than with fists. Using a sword to destroy any block that doesn't break instantly by hand decreases its durability by 2; this includes bamboo, despite that the sword is the fastest tool for breaking it.<ref>{{bug|MC-195168||Swords consume double durability than they normally would when destroying bamboo saplings, bamboo, or cobwebs}}</ref>

If a sword is enchanted with [[Silk Touch]], either using [[Creative]] or [[commands]], cobwebs the sword destroys will drop the cobwebs themselves instead of the usual string. This is due to the sword being classified as the proper tool for cobwebs.

The following table shows the time it takes to break blocks on which swords have any effect. Colors indicate what gets dropped:
* White: an original block.
* Blue: block's normal drop (e.g. seeds, sapling, apple).
* Red: nothing.

{| class="wikitable" style="text-align:center" data-description="Blocks affected by swords"
! Block
! Fists
! Sword
! colspan="2" | Proper/fastest tool
|-
!style="text-align:left"| {{BlockLink|Bamboo}}
| {{tc|no|{{breaking time|Bamboo}} s }} || 0.05 s (instant) <!-- this doesn't work: {{tc|planned|{{breaking time|Bamboo|Sword}} s}} -->
| {{ItemSprite|sword|link=Sword}}
| 0.05 s (instant) <!-- this doesn't work: {{breaking time|Bamboo|Sword}} s -->
|-
!style="text-align:left"| {{BlockLink|Cobweb}}
| {{tc|no|{{breaking time|Cobweb|drop=None}} s}} || {{tc|planned|{{breaking time|Cobweb|Sword}} s}}
| {{ItemSprite|shears|link=Shears}}
| {{breaking time|Cobweb|Shears}} s
|-
!style="text-align:left"| {{BlockLink|Cocoa}}
| {{tc|planned|{{breaking time|Cocoa}}s}} || {{tc|planned|{{breaking time|Cocoa|Sword}}s}}
| {{ItemSprite|wooden-axe|link=Axe}}
| {{tc|planned|{{breaking time|Cocoa|Golden}} – {{breaking time|Cocoa|Wooden}} s}}
|-
! style="text-align:left"|{{BlockLink|Hay Bale}}
| 1s
| 0.8s{{only|bedrock}}
| {{ItemSprite|wooden-hoe|link=Hoe}}
| {{breaking time|Hay Bale|Golden}} – {{breaking time|Hay Bale|Wooden}} s
|-
!style="text-align:left" rowspan="2"| {{BlockLink|Leaves}}
!rowspan="2" {{tc|planned|{{breaking time|Leaves}} s}}
!rowspan="2" {{tc|planned|{{breaking time|Leaves|Sword}} s}}
| {{ItemSprite|shears|link=Shears}}
| {{breaking time|Leaves|Shears}}s
|-
| {{ItemSprite|wooden-hoe|link=Hoe}}
| {{tc|planned|{{breaking time|Leaves|Golden}} – {{breaking time|Leaves|Wooden}} s}}
|-
!style="text-align:left"| {{BlockLink|Jack o'Lantern}}
| {{breaking time|Jack o'Lantern}} s || {{breaking time|Jack o'Lantern|Sword}} s
| {{ItemSprite|wooden-axe|link=Axe}}
| {{breaking time|Jack o'Lantern|Golden}} – {{breaking time|Jack o'Lantern|Wooden}} s
|-
!style="text-align:left"| {{BlockLink|Melon}}
| {{tc|planned|{{breaking time|Melon}} s}} || {{tc|planned|{{breaking time|Melon|Sword}} s}}
| {{ItemSprite|wooden-axe|link=Axe}}
| {{tc|planned|{{breaking time|Melon|Golden}} – {{breaking time|Melon|Wooden}} s}}
|-
!style="text-align:left"| {{BlockLink|Pumpkin}}
| {{breaking time|Pumpkin}}s || {{breaking time|Pumpkin|Sword}} s
| {{ItemSprite|wooden-axe|link=Axe}}
| {{breaking time|Pumpkin|Golden}} – {{breaking time|Pumpkin|Wooden}} s
|-
!style="text-align:left" rowspan="2"| {{BlockLink|Vines}} 
| rowspan="2" {{tc|no|{{breaking time|Vines}} s}} || rowspan="2" {{tc|no|{{breaking time|Vines|Sword}} s}}
| {{ItemSprite|wooden-axe|link=Axe}}
| {{tc|no|{{breaking time|Vines|Golden}} – {{breaking time|Vines|Wooden}} s}}
|-
| {{ItemSprite|shears|link=Shears}}
| {{breaking time|Vines|Shears}} s
|}

==== Safety around constructions ====
In Creative mode, swords are unable to break blocks. However, care must still be taken around [[minecart]]s, [[painting]]s, [[item frame]]s,{{only|java}} and [[armor stand]]s; these are entities, thus can be broken with swords in Creative.<ref>{{bug|MC-27140}}</ref><ref>{{bug|MC-18463}}</ref>

=== Enchantments ===
Swords can receive, gathered from mob drops/villager trades or be found in various loot chests (example: End City, Bastion Remnant)with the following [[enchantment]]s:

{| class="wikitable sortable col-2-center col-3-right"
|+
!Name
!Max Level
![[Enchanting|Method]]
!Weight
|-
|[[Fire Aspect]]
|II
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|2
|-
|[[Looting]]
|III
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|2
|-
|[[Unbreaking]]
|III
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|5
|-
|[[Sharpness]]<ref group=note name=note1>Sharpness, Smite, and Bane of Arthropods are mutually exclusive.</ref>
|V
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|10
|-
|[[Smite]]<ref group=note name=note1/>
|V
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|5
|-
|[[Bane of Arthropods]]<ref group="note" name=note1/>
|V
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|5
|-
|[[Knockback]]
|II
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|5
|-
|[[Mending]]
|I
|{{Inventory slot|Anvil}}
|2
|-
|[[Curse of Vanishing]]
|I
|{{Inventory slot|Anvil}}
|1
|-
|[[Sweeping Edge]]{{Only|java|short=1}}
|III
|{{Inventory slot|Enchanting Table}}{{Inventory slot|Anvil}}
|2
|}
Golden swords have the highest enchantability, yet the least durability{{Notelist}}

=== Fuel ===
Wooden swords can be used as fuel in [[furnace]]s, smelting 1 item per sword.

=== Smelting ingredient ===
{{Smelting|showname=1|Iron Sword;Golden Sword|Iron Nugget;Gold Nugget|0,1}}

=== Piglins ===
[[Piglin]]s are attracted to golden swords, run toward any golden swords on the ground and inspect it for 6 to 8 seconds before putting it in their [[inventory]] slot.

== Sounds ==
{{Edition|Java}}:
{{Sound table
|sound=Strong attack1.ogg
|sound2=Strong attack2.ogg
|sound3=Strong attack3.ogg
|sound4=Strong attack4.ogg
|sound5=Strong attack5.ogg
|sound6=Strong attack6.ogg
|subtitle=Strong attack
|source=player
|description=When a player deals an attack that does not trigger any other attack sounds
|id=entity.player.attack.strong
|translationkey=subtitles.entity.player.attack.strong
|volume=''varies'' <ref group=sound>0.6 for <code>strong1</code> through <code>strong4</code>, and 0.7 for <code>strong5</code> and <code>strong6</code></ref>
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Critical attack1.ogg
|sound2=Critical attack2.ogg
|sound3=Critical attack3.ogg
|subtitle=Critical attack
|source=player
|description=When a player deals a critical hit
|id=entity.player.attack.crit
|translationkey=subtitles.entity.player.attack.crit
|volume=0.7
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Knockback attack1.ogg
|sound2=Knockback attack2.ogg
|sound3=Knockback attack3.ogg
|sound4=Knockback attack4.ogg
|subtitle=Knockback attack
|source=player
|description=When a player deals a sprinting attack
|id=entity.player.attack.knockback
|translationkey=subtitles.entity.player.attack.knockback
|volume=0.7
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Sweep attack1.ogg
|sound2=Sweep attack2.ogg
|sound3=Sweep attack3.ogg
|sound4=Sweep attack4.ogg
|sound5=Sweep attack5.ogg
|sound6=Sweep attack6.ogg
|sound7=Sweep attack7.ogg
|subtitle=Sweeping attack
|source=player
|description=When a player deals a sweep attack
|id=entity.player.attack.sweep
|translationkey=subtitles.entity.player.attack.sweep
|volume=0.7
|pitch=1.0
|distance=16}}
{{Sound table
|rowspan=2
|sound=Weak attack1.ogg
|sound2=Weak attack2.ogg
|sound3=Weak attack3.ogg
|sound4=Weak attack4.ogg
|subtitle=Weak attack
|source=player
|description=When a player deals an attack with no damage
|id=entity.player.attack.nodamage
|translationkey=subtitles.entity.player.attack.weak
|volume=0.7
|pitch=1.0
|distance=16}}
{{Sound table
|subtitle=Weak attack
|source=player
|description=When a player attempts to attack without sufficient cooldown
|id=entity.player.attack.weak
|translationkey=subtitles.entity.player.attack.weak
|volume=0.7
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Random break.ogg
|subtitle=Item breaks
|source=player
|description=When a sword's durability is exhausted
|id=entity.item.break
|translationkey=subtitles.entity.item.break
|volume=0.8
|pitch=0.8-1.2
|distance=16
|foot=1}}

{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|sound=Strong attack1.ogg
|sound2=Strong attack2.ogg
|sound3=Strong attack3.ogg
|sound4=Strong attack4.ogg
|sound5=Strong attack5.ogg
|sound6=Strong attack6.ogg
|source=player
|description=When a player deals an attack with damage
|id=game.player.attack.strong
|volume=0.2
|pitch=0.8-1.2}}
{{Sound table
|sound=Weak attack1.ogg
|sound2=Weak attack2.ogg
|sound3=Weak attack3.ogg
|sound4=Weak attack4.ogg
|source=player
|description=When a player deals an attack with no damage
|id=game.player.attack.nodamage
|volume=0.2
|pitch=0.8-1.2}}
{{Sound table
|sound=Random break.ogg
|source=player
|description=When an sword's durability is exhausted
|id=random.break
|volume=1.0
|pitch=0.9
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Wooden Sword
|spritetype=item
|nameid=wooden_sword
|form=item}}
{{ID table
|displayname=Stone Sword
|spritetype=item
|nameid=stone_sword
|form=item}}
{{ID table
|displayname=Iron Sword
|spritetype=item
|nameid=iron_sword
|form=item}}
{{ID table
|displayname=Diamond Sword
|spritetype=item
|nameid=diamond_sword
|form=item}}
{{ID table
|displayname=Golden Sword
|spritetype=item
|nameid=golden_sword
|form=item}}
{{ID table
|displayname=Netherite Sword
|spritetype=item
|nameid=netherite_sword
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Wooden Sword
|spritetype=item
|nameid=wooden_sword
|id=308
|form=item}}
{{ID table
|displayname=Stone Sword
|spritetype=item
|nameid=stone_sword
|id=312
|form=item}}
{{ID table
|displayname=Iron Sword
|spritetype=item
|nameid=iron_sword
|id=307
|form=item}}
{{ID table
|displayname=Diamond Sword
|spritetype=item
|nameid=diamond_sword
|id=316
|form=item}}
{{ID table
|displayname=Golden Sword
|spritetype=item
|nameid=golden_sword
|id=322
|form=item}}
{{ID table
|displayname=Netherite Sword
|spritetype=item
|nameid=netherite_sword
|id=604
|form=item
|foot=1}}

== Achievements ==
{{load achievements|Time to Strike!;Overkill;Oooh, shiny!}}

== Advancements ==
{{load advancements|Oh Shiny}}

== History == 
=== Blocking ===
{{main|Blocking}}
[[File:Parrying.png|thumb|right|The blocking animation using a sword before and after [[Java Edition 14w30a]] (from the [[Adventure Update|Adventure]] to the [[Bountiful Update|Bountiful]] updates).]]
 
Previously, since the [[Adventure Update]], all types of swords could be used to parry to block some forms of damage. If the player is blocking with a sword when attacked, the sword deflects 50% of incoming damage from melee, non-magical projectiles like arrows, and explosions, along with minimizing airborne knockback. The sword is held in front of the player and its durability is not reduced by blocking. The player moves at a slower rate than [[sneaking]] if blocking with a sword. Sword blocks could be engaged and disengaged instantly, with no delay between the input and damage mitigation nor cooldown between lowering a block and raising a new one.
 
After the [[Combat Update]], the sword blocking functionality was replaced by blocking with [[shield]]s and to accommodate the [[dual wield]] system. Shields negate more damage and knockback than sword blocking from "blockable" attacks (they block 100% damage and knockback after [[Java Edition 1.11]]), but, unlike swords, they lose durability, have a 0.25 second startup period before damage can be mitigated and can be temporarily disabled by attacks with an [[axe]].

=== Knockback ===
The knockback dealt by swords used to be higher than while the players are using another melee [[item]]s, like an axe or with the hands. This feature was removed in [[Java Edition 1.9]] and is also no longer used in ''[[Bedrock Edition]]''.

=== Historical changes per version ===
{{History|java indev}}
{{History||0.31|snap=20091231-2|[[File:Iron Sword JE1 BE1.png|32px]] Added iron swords.
|Iron swords cannot be [[craft]]ed yet, but can be added to the [[player]]'s [[inventory]] during world creation.}}
{{History||0.31|snap=?|The iron sword is no longer added to the player's inventory during world creation.}}
{{History||0.31|snap=20100128|[[File:Wooden Sword JE1 BE1.png|32px]] [[File:Stone Sword JE1 BE1.png|32px]] [[File:Diamond Sword JE1 BE1.png|32px]] Swords made from wood, stone, and diamond have been added.
|Swords cannot be crafted yet, but have been added to the [[item]] [[chest]] in the Indev house.|A sword held by the player is now rendered to appear more 3D.}}
{{History||0.31|snap=20100129|Wood, stone, iron, and diamond swords can now be [[craft]]ed.}}
{{History|||snap=20100130|[[File:Golden Sword JE1.png|32px]] Swords can now be made out of gold.}}
{{History|||snap=20100131|Swords now have [[durability]]. 
|Better swords now last longer.
|Swords now cost 1 durability per hit, and 2 points per block broken.}}
{{History||20100206|[[File:Golden Sword JE2 BE1.png|32px]] The texture of gold swords has been slightly changed.}}
{{History|java alpha}}
{{History||v1.2.0|snap=release|[[Zombie pigmen]] now hold golden swords.}}
{{History|java beta}}
{{History||1.2|Swords, like all [[tool]]s, now have more [[item durability|durability]].
|Prior, diamond swords had 1024 durability, iron swords had 128, stone swords 64 and wood and gold had 32 durability.}}
{{History||1.5|The damages of all swords have increased by 1, due to the player's barehand damage increasing from {{hp|1}} to {{hp|2}}.
|As a result, wooden and golden swords now dealt {{hp|5}}, stone swords {{hp|7}}, iron swords {{hp|9}}, and diamond swords {{hp|11}}.}}
{{History||1.8|snap=Pre-release|Added the ability to block with a sword, giving the [[player]] more options in combat.
|Swords deflect 50% of incoming melee damage, non-magical projectiles like arrows and explosion damage, and a bit of knockback.
|The sword is held in front of the player and its durability is not reduced by blocking.|The player moves at a slower rate than [[sneaking]] when blocking with a sword.
|As barehand damage has been reduced from {{hp|2}} to {{hp|1}}, the damages of all swords have been reduced to their pre Beta 1.5 values.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 3|Sword [[damage]] has been reduced to make way for [[enchanting]]. A diamond sword's damage has been reduced from {{hp|10}} to {{hp|7}}, iron has been reduced from {{hp|8}} to {{hp|6}} and stone has been reduced from {{hp|6}} to {{hp|5}}. Wooden and golden swords still deal {{hp|4}} damage.|Iron swords are now found in the new [[stronghold]] altar [[chest]]s.}}
{{History|||snap=Beta 1.9 Prerelease 4|Swords can now be enchanted in the [[enchantment table]].}}
{{History||1.1|snap=12w01a|Iron swords are now found in [[village]] blacksmith chests.}}
{{History||1.2.1|snap=12w06a|The [[player]] now has a rare chance of obtaining iron swords by killing [[zombie]]s and golden swords from [[zombie pigmen]] from the addition of [[rare drops]]. These swords have a 20% chance of being enchanted.}}
{{History||1.2.4|snap=release|[[Spruce planks]], [[birch planks]], and [[jungle planks]] can now be used to craft wooden swords.}}
{{History||1.3.1|snap=12w18a|Wooden swords can now be used as [[fuel]] in a [[furnace]].}}
{{History|||snap=12w21a|Blacksmith [[villager]]s now [[trading|sell]] diamond swords for 12–13 [[emerald]]s, and iron swords for 7–10 emeralds.
|With the [[trading]] implementation, renewable [[item]]s such as [[wheat]] can now be [[trading|sold]] to buy a diamond sword. This has now made all swords [[Renewable Resource|renewable]].}}
{{History||1.4.2|snap=12w32a|[[Zombie]]s may sometimes wield iron swords, dealing extra [[damage]].}}
{{History|||snap=12w34a|If a [[player]] has dyed leather armor equipped and selected a sword of any kind, it appears in the color of the dye applied to the armor, when switching to second or third person view.}}
{{History|||snap=12w36a|Added [[wither skeleton]]s, which hold stone swords.}}
{{History||1.4.6|snap=12w49a|[[Unbreaking]] can now be applied to a sword with an [[enchanted book]].}}
{{History||1.6.1|snap=13w18a|Golden swords are now found in the new [[chest]]s in [[nether fortress]]es.}}
{{History|||snap=13w21a|Instead of replacing the barehanded [[damage]] ({{hp|1}}), swords now add their damage onto the barehanded damage, which results in all swords doing {{hp|1}} more damage than before.}}
{{History|||snap=13w25b|In [[Creative]] mode, swords are no longer able to break [[block]]s, and no [[sound]] plays when they're hit with one.}}
{{History||1.7.2|snap=1.7.1|[[Acacia planks]] and [[dark oak planks]] can now be used to craft wooden swords.}}
{{History||1.8|snap=14w02a|Weaponsmith [[villager]]s now [[trading|sell]] enchanted diamond swords for 12–15 [[emerald]]s, and iron swords for 9–10 emeralds. Unenchanted swords are no longer sold.}}
{{History|||snap=14w30a|Sword holding position have been tweaked, and the blocking animation has changed. Blocking while mining was made impossible. Blocking immediately after attacking no longer continues the swing animation.}}
{{History||1.9|snap=15w31a|[[Enchanting|Enchanted]] iron and diamond swords can now be found in [[end city]] ship [[chest]]s.}}
{{History|||snap=15w33c|Swords no longer block attacks. Instead, [[shield]]s are used.}}
{{History|||snap=15w34b|Swords now use the attack speed [[attribute]]. The attack speed of a sword is 1.25 or 0.8 seconds.}}
{{History|||snap=15w34c|Nerfed swords, they now do {{hp|1}} less [[damage]] and have an attack speed of 1.45, or 0.69 seconds.
|Swords can now do a sweep attack when moving at walking speed or slower, which knock back [[mob]]s near the one hit. The attack speed meter must be filled for it to work.}}
{{History|||snap=15w36a|Each [[Sharpness]] level now adds {{hp|1}} damage to the base damage at level I and an additional {{hp|0.5}} for each additional level, down from a flat {{hp|1.25}} per level.}}
{{History|||snap=15w37a|Swords now have an attack speed of 1.6, or 0.63 seconds.}}
{{History|||snap=15w43a|The average yield of golden swords in [[nether fortress]] chests has been decreased.}}
{{History|||snap=15w49a|Sweep attack now does {{hp|1}} damage to affected [[mob]]s and players.}}
{{History||1.11.1|snap=16w50a|Golden and iron swords now [[smelt]] down into one of their respective [[nugget]]s.
|Added [[Sweeping Edge]] enchantment.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], these [[item]]s' numeral IDs were 268, 272, 267, 276 and 283.}}
{{History|||snap=18w10a|Swords can now generate in [[buried treasure]] chests.}}
{{History||September 10, 2018|link={{tweet|JasperBoerstra|1039167196801458176}}|[[File:Wooden Sword JE2 BE2.png|32px]] [[File:Stone Sword JE2 BE2.png|32px]] [[File:Iron Sword JE2 BE2.png|32px]] [[File:Golden Sword JE3 BE2.png|32px]] [[File:Diamond Sword JE2 BE2.png|32px]] [[Jasper Boerstra]] tweets an image of updated sword textures.}}
{{History||1.14|snap=18w43a|[[File:Wooden Sword JE2 BE2.png|32px]] [[File:Stone Sword JE2 BE2.png|32px]] [[File:Iron Sword JE2 BE2.png|32px]] [[File:Golden Sword JE3 BE2.png|32px]] [[File:Diamond Sword JE2 BE2.png|32px]] The textures of all swords have been changed.
|Swords now break [[bamboo]] instantly.}}
{{History||1.16|snap=20w06a|[[File:Netherite Sword JE1.png|32px]] Added netherite swords.
|Netherite swords are obtained by combining one diamond sword and one [[netherite ingot]] in a [[crafting table]].
|[[Crimson planks]] and [[warped planks]] can now be used to craft wooden swords.}}
{{History|||snap=20w09a|[[File:Diamond Sword JE3 BE3.png|32px]] The texture of diamond swords has been changed.}}
{{History|||snap=20w10a|[[File:Netherite Sword JE2 BE2.png|32px]] The texture of netherite swords has been changed.
|Netherite swords can no longer be [[crafted]].
|Netherite swords are now obtained by combining one diamond sword and one [[netherite ingot]] in a [[smithing table]].}}
{{History|||snap=20w15a|Stone swords can now be crafted using [[blackstone]].}}
{{History|||snap=20w16a|Golden and netherite swords now generate in [[bastion remnants]] chests.
|Golden swords now generate randomly enchanted in [[ruined portal]] chests.}}
{{History|||snap=20w17a|Diamonds swords now generate in place of netherite swords in bastion remnant [[chest]]s.}}
{{History||1.16.2|snap=20w30a|Damaged enchanted iron swords can now be found in [[bastion remnant]] chests.}}
{{History||1.17|snap=21w08a|Stone swords can now be crafted using [[cobbled deepslate]].}}
{{History||1.19|snap=22w11a|[[Mangrove planks]] can now be used to craft wooden swords.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w04a|Upgrading diamond swords to netherite swords now requires the netherite upgrade [[smithing template]].}}
{{History|upcoming java}}
{{History||Combat Tests|snap=1.14.3 - Combat Test|The attack speed for all swords has been increased to 3.
|The base [[damage]] is now {{Hp|2}}, meaning that all swords now do {{Hp|1}} more damage than before}.
|The attack reach of swords has been increased to 3.5 [[block]]s.}}
{{History|||snap=Combat Test 2|The attack speed of all swords has been decreased to 2.5.}}
{{History|||snap=Combat Test 3|The attack speed of all swords has been changed from 2.5 back to 3.0.
|The attack key can now again be held down to automatically attack when the attack meter is full.
|Attacks now happen only when the sword is at 120% charge, slower than if attacks were timed.}}
{{History|||snap=Combat Test 4|Sword can now perform critical, knockback ([[sprint]]) hits on 100% charge.
|The attack reach of all weapons was decreased by 0.5 [[block]]. Sword now have a 3 [[block]]s reach.
|The 200% attack now gives a bonus reach of 1 [[block]].}}
{{History|||snap=Combat Test 5|Weapons have been nerfed. All material tiers have been nerfed by {{Hp|1}} except wood and gold, and the sword tier have been nerfed by {{Hp|1}}. This means that the wooden/stone/golden sword now does {{Hp|4}} damage, the iron sword now does {{Hp|5}} damage and the diamond sword now does {{Hp|6}} damage.}}
{{History|||snap=Combat Test 6|All weapons' attack reach have been buffed by 0.5 [[block]].
|200% attacks have been removed.
|Swords now always do sweep attack, even in the air.
|The cooldown for missed hit is a 4-tick cooldown instead of using the attack speed attribute.}}
{{History|||snap=Combat Test 7c|All weapons' attack reach have been nerfed by 0.5 [[block]]. The sword's attack reach is now 3 [[block]]s again.
|200% attacks have been re-added.
|Swords no longer sweep without [[Sweeping Edge]] and 200% charge again.
|Adjusted the netherite tier value to match the weapon nerf in Combat Test 5}}
{{History|||snap=Combat Test 8b|Enchantment bonus attack damage are now included in the base damage when calculating critical hits (they were excluded before). Due to this change, enchanted swords critical attacks are now way more powerful (especially with high enchantments)}}

{{History|pocket alpha}}
{{History||v0.2.0|[[File:Stone Sword JE1 BE1.png|32px]] Added stone swords.}}
{{History||v0.3.0|[[File:Wooden Sword JE1 BE1.png|32px]] Added wooden swords.
|Survival players no longer start out with an infinite durability stone sword in the inventory.}}
{{History||v0.3.2|[[File:Iron Sword JE1 BE1.png|32px]] [[File:Golden Sword JE2 BE1.png|32px]] [[File:Diamond Sword JE1 BE1.png|32px]] Added iron, gold, and diamond swords.}}
{{History||v0.4.0|Iron swords have replaced stone swords in the creative inventory.}}
{{History||v0.9.0|snap=build 1|Iron swords can now be found in [[stronghold]] altar [[chest]]s and inside blacksmith chests.}}
{{History||v0.11.0|snap=build 11|Wooden, stone, golden and diamond swords are now available in the [[creative]] [[inventory]].}}
{{History||v0.11.0|snap=build 12|Wooden, stone, golden and diamond swords have been removed from creative.}}
{{History||v0.11.0|snap=build 13|All swords are available in creative mode again.}}
{{History||v0.12.1|snap=build 1|Instead of replacing the barehanded [[damage]] ({{hp|1}}), swords now add their damage onto the barehanded damage, which results in all swords doing {{hp|1}} more damage than before.|In [[creative]] mode, swords are no longer able to break [[block]]s, and no [[sound]] plays when they're hit with one.|Golden swords can now be found in [[nether fortress]] chests.
|[[Zombie]]s now rarely spawn holding an iron sword that have a chance to [[drops|dropped]].
|Golden swords are now rarely dropped by [[zombie pigmen]].
|Stone swords are now rarely dropped by [[wither skeleton]]s.}}
{{History||v0.15.0|snap=build 1|Iron swords are now sometimes dropped by [[husk]]s that spawn holding an iron sword.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Enchanted iron and diamond swords can now be found in [[end city]] [[chest]]s.}}
{{History||1.0.4|snap=alpha 1.0.4.0|Iron swords and enchanted diamond swords are now sold by weaponsmith [[villager]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Iron and golden swords are now [[smelting|smeltable]].
|Added [[vex]]es, which rarely drop an iron sword if killed using [[Looting]] enchantment.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Wooden Sword JE2 BE2.png|32px]] [[File:Stone Sword JE2 BE2.png|32px]] [[File:Iron Sword JE2 BE2.png|32px]] [[File:Golden Sword JE3 BE2.png|32px]] [[File:Diamond Sword JE2 BE2.png|32px]] The textures of all swords have been changed.
|Iron swords are now found in [[plains]] [[village]] weaponsmiths.}}
{{History||1.11.0|snap=beta 1.11.0.1|Iron swords can now be found in [[savanna]], [[snowy taiga]], [[taiga]] and [[desert]] village weaponsmiths.}}
{{History|||snap=beta 1.11.0.4|[[Pillager]]s and [[vindicator]]s that spawn in [[raid]]s can now drop iron swords upon [[death]].
|[[Trading]] has been changed. Iron swords [[trading|sold]] by weaponsmith [[villager]]s now cost 2 [[emerald]]s while diamond swords cost 8 emeralds as part of their fourth tier trades.}}
{{History||1.16.0|snap=beta 1.16.0.51|[[File:Netherite Sword BE1.png|32px]] Added netherite swords.
|Netherite swords are obtained by combining one diamond sword and one [[netherite ingot]] in a [[crafting table]].
|[[File:Diamond Sword JE3 BE3.png|32px]] The texture of diamond swords has been changed.
|Golden swords are now sometimes [[drops|dropped]] by [[piglin]]s that spawn holding a golden sword.}}
{{History|||snap=beta 1.16.0.57|Netherite swords can no longer be [[crafting|crafted]].
|Netherite swords are now obtained by combining one diamond sword and one [[netherite ingot]] in a [[smithing table]].
|Stone swords can now be crafted using [[blackstone]].
|Golden and netherite swords now generate in [[bastion remnant]] chests.
|Golden swords now generate randomly enchanted in [[ruined portal]] chests.}}
{{History|||snap=beta 1.16.0.63|Diamonds swords now generate in place of netherite swords in bastion remnant [[chest]]s.}}
{{History||1.17.30|snap=beta 1.17.20.20|Swords now break [[bamboo]] instantly.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Wooden Sword JE1 BE1.png|32px]] [[File:Stone Sword JE1 BE1.png|32px]] [[File:Iron Sword JE1 BE1.png|32px]] [[File:Golden Sword JE2 BE1.png|32px]] [[File:Diamond Sword JE1 BE1.png|32px]] Added swords (all five types).}}
{{History||xbox=TU5|The ability to block with swords has been added, giving the [[player]] more options in combat.}}
{{History||xbox=TU53|xbone=CU43|ps=1.49|wiiu=Patch 23|switch=1.0.3|Iron and golden swords are now [[smelting|smeltable]].}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Wooden Sword JE2 BE2.png|32px]] [[File:Stone Sword JE2 BE2.png|32px]] [[File:Iron Sword JE2 BE2.png|32px]] [[File:Golden Sword JE3 BE2.png|32px]] [[File:Diamond Sword JE2 BE2.png|32px]] The textures of all swords have been changed.}}
{{History||ps=1.92|The ability to block with swords has been removed.}}

{{History|New Nintendo 3DS Edition}}
{{History||0.1.0|[[File:Wooden Sword JE1 BE1.png|32px]] [[File:Stone Sword JE1 BE1.png|32px]] [[File:Iron Sword JE1 BE1.png|32px]] [[File:Golden Sword JE2 BE1.png|32px]] [[File:Diamond Sword JE1 BE1.png|32px]] Added swords.
|Swords cannot block attacks.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
*The sword's traditional [[texture]] came from [[Notch]]'s abandoned RPG, ''[[Legend of the Chambered]]''. The iron sword's texture was created first, as it was from the game, and the other swords followed.
*In ''Java Edition'', with the introduction of netherite swords, it is possible to one-hit kill undead [[mob]]s in the game (except [[wither]]s and [[zombie]]s/[[skeleton]]s with random armor) using a sword with the [[Smite]] V enchantment, without the need to perform a critical hit (this was previously possible only with a [[Smite]] V stone, iron, or diamond axe).
*Plastic diamond and enchanted swords are official ''[[Minecraft]]'' merchandise.<ref>https://shop.minecraft.net/products/minecraft-sword?_pos=1&_psq=sword&_ss=e&_v=1.0</ref><ref>https://shop.minecraft.net/products/minecraft-enchanted-purple-sword?_pos=4&_psq=sword&_ss=e&_v=1.0</ref>
*In the game [[wikipedia:Transformice|''Transformice'']], a diamond sword can be found in the shop.

== Gallery ==
=== Enchanted swords ===
<gallery>
Enchanted Wooden Sword.gif|Enchanted wooden sword.
Enchanted Stone Sword.gif|Enchanted stone sword.
Enchanted Iron Sword.gif|Enchanted iron sword.
Enchanted Golden Sword.gif|Enchanted golden sword.
Enchanted Diamond Sword.gif|Enchanted diamond sword.
Enchanted Netherite Sword.gif|Enchanted netherite sword.
</gallery>

=== Texture packs ===
<gallery>
File:Wood sword TP.png|Wooden sword in the [[Texture Pack DLC|Plastic Pack]].
Stone Sword SDGP.png|Stone sword in the [[Super Duper Graphics Pack]].
File:Gold sword Natural.png|Gold sword in the [[Texture Pack DLC|Natural Pack]].
</gallery>

=== In other media ===
<gallery>
File:Alex Fighting in Nether.jpeg|Pixel art of [[Alex]] fighting with a diamond sword in the [[Nether]].
File:Alex Retrieving Diamond Sword.jpeg|Alex retrieving another diamond sword from a [[chest]].
File:Sinister Sword Sprite MCD.png|The [[MCD:Sinister Sword|Sinister Sword]], a unique sword featured in ''Minecraft Dungeons''.
File:Sword GUI.png|A nondescript [[MCD:Sword|sword]] as it appears in ''[[Minecraft Dungeons]]''.
File:Sword (item).png|A sword as it appears in ''[[Legend of the Chambered]]''.
File:Sword Shirt.png|Officially licensed T-Shirt of a diamond sword.
File:IronSword replica.jpg|Foam replica of an iron sword.
</gallery>

== References ==
{{reflist}}

{{Items}} 
[[Category:Tools]]
[[Category:Combat]]

[[de:Schwert]]
[[es:Espada]]
[[fr:Épée]]
[[hu:Kard]]
[[ja:剣]]
[[ko:검]]
[[nl:Zwaard]]
[[pl:Miecz]]
[[pt:Espada]]
[[ru:Меч]]
[[tr:Kılıç]]
[[uk:Меч]]
[[zh:剑]]</li></ul>
?Added long array tags.
1.13
{{Extension DPL}}<ul><li>[[Flint|Flint]]<br/>{{Item
| image = Flint.png
|type=
| renewable = Yes
| stackable = Yes (64)
}}

'''Flint''' is a mineral obtained from [[gravel]].

== Obtaining ==
=== Mining ===
When a block of [[gravel]] is mined, there is a 10% chance for a single piece of flint to drop instead of the [[gravel]] block. When mined with a [[Fortune]]-enchanted tool, this chance increases to 16% at Fortune I, 25% at Fortune II, and 100% at Fortune III. Gravel mined using a tool with [[Silk Touch]] or gravel that fell on a non-solid block never produces flint.

=== Trading ===
Novice-level [[Trading#Fletcher|fletcher]] [[villager]]s have a 50%{{only|bedrock}} or {{frac|2|3}}{{only|java}} chance to offer 10 pieces of flint for 10 blocks of gravel and an [[emerald]].

=== Chest loot ===

{{LootChestItem|flint}}

== Usage ==
=== Crafting ingredient ===

{{crafting usage}}

=== Trading ===
Apprentice-level fletcher villagers buy 26 flint for an emerald.

Apprentice-level leatherworker villagers have a {{frac|2|3}} chance to buy 26 flint for an emerald {{in|java}}, and always offer the trade {{in|bedrock}}.

Journeyman-level toolsmith villagers have a {{frac|2|5}} chance to buy 30 flint for one emerald in ''Java Edition'', and always offer the trade in Bedrock Edition.

Journeyman-level weaponsmith villagers buy 24 flint for an emerald.

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Flint
|spritetype=item
|nameid=flint
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Flint
|spritetype=item
|nameid=flint
|id=356
|form=item
|foot=1}}

== History ==
{{History|java indev}} 
{{History||20100219|[[File:Flint JE1 BE1.png|32px]] Added flint.
|Flint is now used to craft [[flint and steel]].}}
{{History|java alpha}}
{{History||v1.0.14|Crafting [[arrow]]s now requires flint, rather than [[iron ingot]]s.}}
{{History|java}}
{{History||1.3.1|snap=12w21a|Farmer [[villager]]s now [[trading|sell]] 4–5 flint for 1 [[emerald]] and 10 [[gravel]].}}
{{History|||snap=1.3|[[File:Flint JE2 BE2.png|32px]] The texture of flint has been slightly changed.}}
{{History||1.8|snap=14w02a|Fletcher [[villager]]s now sell 6–10 flint for 1 emerald and 10 gravel.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 318.}}
{{History||1.14|snap=18w43a|[[File:Flint JE3 BE3.png|32px]] The texture of flint has been changed.}}
{{History|||snap=18w50a|Flint can now be found in [[chest]]s in [[village]] fletcher houses.}}
{{History|||snap=19w11a|Fletcher, leatherworker, toolsmith and weaponsmith [[villager]]s now [[trading|buy]] flint.}}
{{History||1.16|snap=20w07a|Flint has a {{frac|10|109}} (~9.17%) chance of being given by the new [[piglin]]s when [[bartering]], in a stack size of 3–8, making it renewable.}}
{{History|||snap=20w09a|Flint can no longer be obtained by bartering with piglins. However, they are still renewable as piglins offer [[gravel]].}}
{{History|||snap=20w16a|Flint now generates in [[ruined portal]] chests.}}

{{History|pocket alpha}}
{{History||v0.3.3|[[File:Flint JE1 BE1.png|32px]] Added flint. 
|Flint can be used to craft [[arrow]]s.}}
{{History||v0.4.0|Flint can now be used to make [[flint and steel]].}}
{{History||v0.8.0|snap=build 1|[[File:Flint JE2 BE2.png|32px]] The texture of flint has been changed.}}
{{History|pocket}}
{{History||1.0.4|snap=alpha 1.0.4.0|Fletcher [[villager]]s now [[trading|sell]] 6–10 flint for 1 [[emerald]] and 10 [[gravel]].}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Flint JE3 BE3.png|32px]] The texture of flint has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Flint can now be found in [[village]] fletcher [[chest]]s.}}
{{History|||snap=beta 1.11.0.4|[[Trading]] has been changed, fletcher [[villager]]s now have a 50% chance to [[trading|sell]] 10 flint for 10 [[gravel]] and one [[emerald]] as part of their first tier trade.
|Flint can now be [[trading|sold]] to toolsmith, weaponsmith, fletcher, and leatherworker villagers.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Flint JE1 BE1.png|32px]] Added flint.}}
{{History||?|[[File:Flint JE2 BE2.png|32px]] The texture of flint has been changed.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Flint JE3 BE3.png|32px]] The texture of flint has been changed.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Gallery ==
<gallery>
File:GodPortal.png|A piece of flint found in a [[ruined portal]] chest, together with an [[enchanted golden apple]].
</gallery>

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--flint Taking Inventory: Flint] – Minecraft.net on October 31, 2019

{{Items}}

[[Category:Renewable resources]]

[[cs:Pazourek]]
[[de:Feuerstein]]
[[es:Pedernal]]
[[fr:Silex]]
[[hu:Kovakő]]
[[it:Selce]]
[[ja:火打石]]
[[ko:부싯돌]]
[[nl:Vuursteen]]
[[pl:Krzemień]]
[[pt:Sílex]]
[[ru:Кремень]]
[[th:หินเหล็กไฟ]]
[[uk:Кремінь]]
[[zh:燧石]]</li><li>[[Fire Charge|Fire Charge]]<br/>{{ItemEntity
|image=Fire Charge.png
|invimage=Fire Charge
|durability=
|renewable=Yes
|stackable=Yes (64)
|networkid='''[[JE]]''': 64
}}

'''Fire charges''' are items that can be {{control|used}} as a single-use version of a [[flint and steel]] or shot as a [[small fireball]] from a [[dispenser]].

== Obtaining ==
=== Chest loot ===
{{LootChestItem|fire-charge}}

=== Crafting ===
{{Crafting
|Blaze Powder
|Coal; Charcoal
|Gunpowder
|Output= Fire Charge, 3
|type= Miscellaneous
}}

=== Bartering ===
[[Piglin]]s may [[barter]] 1 fire charge when given a [[gold ingot]].

== Usage ==
[[File:Natural Fire Charge.png|200px|thumb|Dispensing Fire Charge]]

Fire charges can be used as ammunition for [[dispenser]]s, or as a substitute for [[flint and steel]].

When used, it instantly places a [[fire]], similar to flint and steel. The fire charge is consumed in the process. It can prime [[TNT]], light [[Nether portal|nether portals]], [[Campfire|campfires]], [[Candle|candles]], [[Cake|cakes with candles]] and [[creeper]]s{{only|JE}} like flint and steel.

When a fire charge is fired from a dispenser, it shoots a [[small fireball]].

=== Crafting ingredient ===

{{crafting usage}}

== Sounds ==
{{edition|java}}:
{{Sound table
|rowspan=4
|sound=Ghast fireball4.ogg
|subtitle=Ghast shoots
|source=hostile
|description=When a fireball is shot by a ghast
|id=entity.ghast.shoot
|translationkey=subtitles.entity.ghast.shoot
|volume=10.0
|pitch=0.8-1.2
|distance=16 {{verify}}}}
{{Sound table
|subtitle=Blaze shoots <ref group=sound name=LousyEvents>{{Bug|MC-98316||Wrong subtitles caused by missing distinction}}</ref>
|source=hostile
|description=When a fire charge is fired from a dispenser or a blaze
|id=entity.blaze.shoot|idnote=<ref group=sound name=LousyEvents/>
|translationkey=subtitles.entity.blaze.shoot|translationkeynote=<ref group=sound name=LousyEvents/>
|volume=2.0
|pitch=0.8–1.2
|distance=32}}
{{Sound table
|subtitle=Fireball whooshes
|source=block
|description=When a fire charge is used by hand
|id=item.firecharge.use|idnote=<ref group=sound name=nounderscore>{{bug|MC-177457}}</ref>
|translationkey=subtitles.item.firecharge.use|translationkeynote=<ref group=sound name=nounderscore/>
|volume=1.0
|pitch=0.8-1.2
|distance=16}}
{{Sound table
|subtitle=Fireball whooshes
|source=hostile
|description=When a fire charge is used to light a creeper
|id=item.firecharge.use|idnote=<ref group=sound name=nounderscore/>
|translationkey=subtitles.item.firecharge.use|translationkeynote=<ref group=sound name=nounderscore/>
|volume=1.0
|pitch=0.8-1.2
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Ghast fireball4.ogg
|source=hostile
|description=When something shoots or uses a fire charge
|id=mob.ghast.fireball
|volume=1.0
|pitch=1.0
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Fire Charge
|spritetype=item
|nameid=fire_charge
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Fire Charge
|spritetype=item
|nameid=fire_charge
|aliasid=fireball
|id=509
|form=item
|translationkey=item.fireball.name
|foot=1}}

=== Entity data ===
{{main|Small Fireball#Entity data}}

== Achievements ==
{{Load achievements|Into the Nether}}

== Advancements ==
{{load advancements|We Need to Go Deeper}}

== Video ==
<div style="text-align:center">{{yt|IiCTxsHg6SQ}}</div>

== History ==
{{for|information pertaining to smallmfireballs (which fire charges produce when shot from a dispenser)|Small Fireball#History}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease|[[File:Fire Charge JE1 BE1.png|32px]] Added the fire charge texture. It is currently only used by [[fireball]]s and [[small fireball]]s, both of which are entities, and is not used by any items.}}
{{History||1.2.1|snap=12w04a|Added fire charges, which use the above texture. They can be crafted only with [[coal]].}}
{{History|||snap=12w05a|Fire charges can now be crafted with charcoal.}}
{{History||1.4.2|snap=12w38b|The [[sound]] when using the fire charge has now been changed; it now uses the same sound as [[flint and steel]].}}
{{History||1.4.6|snap=12w49a|Fire charges can now be used to craft [[Firework Rocket|fireworks]].}}
{{History||1.8|snap=14w31a|The sound when using fire charges to set fire has now been changed; it now uses the same sound as when fired from [[dispenser]]s.}}
{{History||1.9|snap=15w33c|Fire charges now appear purple and explode with [[dragon's breath]] when fired from dispensers. Whether a true dragon fireball entity is created or if this effect is purely visual is unknown.}}
{{History|||snap=15w44b|Fire charges once again appear as [[small fireball]]s when fired from dispensers.}}
{{History||1.11|snap=16w40a|The <code>life</code> tag is no longer used for anything, but still saved/read.{{info needed|Is this even relevant to the fire charge, or is it a remnant from the blaze page or something?}}}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 385.}}
{{History||1.14|snap=18w43a|[[File:Fire Charge JE2 BE2.png|32px]] The texture of fire charges has now been changed.}}
{{History||1.15|snap=19w42a|Dispensed fire charges{{info needed|as in the fireball, or a dispenser facing straight into a campfire?}} can now light campfires.}}
{{History||1.16|snap=20w07a|Fire charges have a {{frac|5|109}} (~4.59%) chance of being given by the new [[piglin]]s when [[bartering]], in a stack size of 1.}}
{{History|||snap=20w09a|Fire charges now have a {{frac|20|226}} (~8.85%) chance of being given by piglins when bartering, in a stack size of 1–5.}}
{{History|||snap=20w10a|Fire charges now have a {{frac|40|411}} (~9.73%) chance of being given by piglins when bartering, in a stack size of 1–5.}}
{{History|||snap=20w11a|Fire charges now have a {{frac|40|417}} (~9.59%) chance of being given by piglins when bartering, in a stack size of 1–5.}}
{{History|||snap=20w13a|Fire charges now have a {{frac|40|424}} (~9.43%) chance of being given by piglins when bartering, in a stack size of 1–5.}}
{{History|||snap=20w16a|Fire charges now generate in [[ruined portal]] chests.}}
{{History|||snap=20w20a|Fire charges now have a {{frac|40|423}} (~9.46%) chance of being given by piglins when bartering, in a stack size of 1–5.}}
{{History||1.16.2|snap=20w28a|Fire charges now have a {{frac|40|459}} (~8.71%) chance of being given by piglins when bartering, in a stack size of 1.}}
{{History||1.19.3|snap=Pre-release 2|Fire charges can now be {{control|use|text=used}} to forcibly detonate [[creeper]]s.<ref>{{bug|MC-185618|||Fixed}}</ref>}}
{{History||1.19.4|snap=23w06a|Added the [[fire charge]] to the "Ingredients" tab in the creative inventory.}}

{{History|pocket alpha}}
{{History||v0.15.0|snap=build 1|[[File:Fire Charge JE1 BE1.png|32px]] Added fire charges.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Fire charges can now be used to craft [[firework star]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Fire Charge JE2 BE2.png|32px]] The texture of fire charges has now been changed.}}
{{History||1.16.0|snap=beta 1.16.0.57|Fire charges can now be obtained from bartering with piglin.
|Fire charges can now be found in [[ruined portal]] chests.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of fire charges has been changed from <code>fireball</code> to <code>fire_charge</code>.}}

{{History|console}}
{{History||xbox=TU9|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Fire Charge JE1 BE1.png|32px]] Added fire charges.}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|Fire charges now make [[sound]]s when igniting [[block]]s.}}	
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Fire Charge JE2 BE2.png|32px]] The texture of fire charges has now been changed.}}

{{History|3ds}}
{{History||0.1.0|[[File:Fire Charge JE1 BE1.png|32px]] Added fire charges.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Gallery ==
<gallery>
GodPortal.png|A fire charge found in a [[ruined portal]] chest, together with an [[enchanted golden apple]].
</gallery>

== See also ==
* [[Flint and Steel]]
* [[Dragon Fireball]]
* [[Ghast]]

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory-fire-charge Taking Inventory: Fire Charge] – Minecraft.net on January 11, 2019

{{Items}}

[[Category:Recipe using Charcoal]]

[[cs:Ohnivá koule]]
[[de:Feuerkugel]]
[[es:Carga ígnea]]
[[fr:Boule de feu]]
[[hu:Tűzgolyó]]
[[ja:ファイヤーチャージ]]
[[ko:화염구]]
[[nl:Vuurbal]]
[[pl:Ognista kula]]
[[pt:Bola de fogo]]
[[ru:Огненный шар]]
[[th:ลูกไฟ]]
[[zh:火焰弹]]</li></ul>
18w01aAdded a data generator to both the Minecraft client and the default multiplayer software.
1.14
{{Extension DPL}}<ul><li>[[:Category:Food|Category:Food]]<br/>

[[Category:Items]]

[[cs:Kategorie:Potraviny]]
[[fr:Catégorie:Nourriture]]
[[hu:Kategória:Ételek]]
[[zh:Category:食物]]</li><li>[[Bed|Bed]]<br/>{{Block
| image = White Bed (N).png
| extratext = View [[#Gallery|all renders]]
| transparent = Yes
| tntres = 25
| hardness = 4
| light = No
| tool = any
| renewable = Yes
| stackable = No
| flammable = No
| lavasusceptible = {{jebe|Yes|No}}
}}
A '''bed''' is a [[Dye|dyeable]] [[block]] that allows a player to sleep and to reset their [[spawn]] point to within a few blocks of the bed in the [[Overworld]]. If the bed is obstructed or removed, the player spawns at the default world spawning location.

== Obtaining ==
=== Natural generation ===
;Igloo
A red bed naturally generates in each [[igloo]].
;Village
Beds of various colors generate in [[village]] houses, depending on the specific structure and [[biome]]:
* [[Desert]] village houses have cyan, green, or lime beds.
* [[Plains]] village houses have white or yellow beds.
* [[Savanna]] village houses have orange, red, or yellow beds.
* [[Snowy taiga]]{{only|bedrock|short=1}} and [[taiga]] village houses have blue or purple beds.
* [[Snowy tundra]] village houses have blue, red, or white beds.

=== Breaking ===
Beds can be mined with any [[tool]], or without a tool.<ref>{{bug|MC-192722||Beds have no assigned tool}}</ref>

{{breaking row|horizontal=1|Bed|sprite=red-bed|any}}

A bed also drops itself as an item when pushed by a [[piston]].

=== Crafting ===
{{Crafting
 |head=1
 |showname=0
 |showdescription=1
 |A2=Matching Wool
 |B2=Matching Wool
 |C2=Matching Wool
 |A3=Any Planks
 |B3=Any Planks
 |C3=Any Planks
 |Output= Matching Bed
 |type=Decoration block
 |description=The wool color must match. The planks can be different.
}}
<!--recipe removed
{{Crafting
 |showdescription=1
 |White Bed
 |Matching Colored Dye
 |Output= Matching Dyed Bed
 |type=Decoration block
 |description=White beds can be re-dyed using dyes.{{only|java}}{{until|JE 1.20}}
}}-->
{{Crafting
 |showdescription=1
 |Any Bed
 |Matching Dye
 |Output= Matching Bed
 |type=Decoration block
 |description=A bed of any color can be re-dyed using dyes.
}}
{{Crafting
 |showdescription=1
 |Any Dyed Bed
 |Bleach
 |Output=White Bed
 |type=Decoration block
 |description=This removes the color from the bed.{{only|bedrock|education}}
 |foot=1
}}
<div style="display:none">
<!--
    This is so the pre-Village & Pillage dyes can have dye-related crafting recipes show on their respective pages.
    They don't need to be displayed on this page because they already intuitively list "Any Matching Dye".
-->
{{Crafting
 |showdescription=1
 |Any Bed
 |Bone Meal; Lapis Lazuli; Cocoa Beans; Ink Sac
 |Output=White Bed; Blue Bed; Brown Bed; Black Bed
 |type=Decoration block
 |description={{only|bedrock|education}}
}}
</div>

=== Trading ===
Journeyman-level shepherd villagers sell 1 of 16 beds for 3 [[emerald]]s as part of their trades.

== Usage ==
=== Sleeping ===
[[File:Sleep Animation.gif|240px|thumb|Player falling asleep.]]

Beds are used by pressing the {{control|use item}} button while looking at the bed.

A player sleeps by {{control|using|using}} a bed during a [[thunderstorm]], or at [[night]] (between 12542 and 23459 ticks in clear weather, when stars appear in the sky, or between 12010 and 23991 ticks in rainy weather). Players can sleep during a thunderstorm even if they are in a biome where it does not rain (i.e. Desert). Attempting to use a bed at any other time results in the message "You can only sleep  at night or during thunderstorms". A player sleeps in a bed for 101 in-game [[tick]]s, or 5.05 seconds before the time skips to the next day. Sleeping in a bed with the {{cmd|gamerule doDaylightCycle}} set to <code>false</code> results in the player being kicked out of the bed after the 101 ticks, but does not change time of the world to day.

Sleeping in a bed is possible only in the [[Overworld]]. Attempting to sleep in a bed in [[the Nether]], [[the End]], and [[custom dimension]]s in which they are disabled causes it to [[explosion|explode]] and set [[fire]] to surrounding blocks; unless {{cmd|gamerule respawnBlocksExplode}}{{only|bedrock}} is set to {{cd|false}}.<ref>{{bug|mcpe-28723}} – "Exploding bed in the Nether" resolved as "Works As Intended". This is referenced {{in|je}} when a player is killed by "Intentional Game Design". </ref> The explosion has power 5, which is stronger than [[TNT]] (4), but not as strong as a charged [[creeper]] or [[End Crystal|end crystal]] (6). The explosion centers on the head part of the bed. [[Villager]]s can sleep normally in any dimension without the bed being blown up.<ref>{{bug|MC-146515|||WAI}}</ref> Upon death from a bed explosion, the [[death messages|message]] "'''(Player) was killed by [Intentional Game Design]'''" appears.

The player must be close to the bed to sleep. If the player is close enough to click on the bed, but not close enough to sleep in it, the message "You may not rest now, the bed is too far away"{{only|java|short=1}}/"Bed is too far away"{{only|bedrock|short=1}} appears. A player must be within 2 blocks of the bed {{in|JE}} or 3 blocks {{in|BE}} to use the bed.

If a "monster" is within 8 blocks of the bed horizontally (in the X- and Z-axis), and 5 blocks vertically (in the Y-axis), the message "You may not rest now, there are monsters nearby" appears and the player is prevented from sleeping until the monsters leave or are killed. Most hostile mobs, as well as some neutral mobs prevent players from sleeping, as shown in the table below.

{| class="wikitable mw-collapsible"
!Mob
!Prevent the player from sleeping 
|-
|{{EntityLink|Blaze}}
|{{Tc|yes}}
|-
|{{EntityLink|Chicken Jockey}}
|{{Tc|partial|when hostile{{Only|Java|short=1}}/Yes{{Only|Bedrock|short=1}}}}
|-
|{{EntityLink|Creeper}}
|{{Tc|yes}}
|-
|{{EntityLink|Drowned}}
|{{Tc|yes}}
|-
|{{EntityLink|Endermite}}
|{{Tc|yes}}
|-
|{{EntityLink|Enderman}}
|{{Tc|partial|when hostile}}
|-
|{{EntityLink|Ender Dragon}}
|{{Tc|no}}
|-
|{{EntityLink|Evoker}}
|{{Tc|yes}}
|-
|{{EntityLink|Ghast}}
|{{Tc|no}}
|-
|{{EntityLink|Giant}}
|{{Tc|yes}}
|-
|{{EntityLink|Guardian}}, {{EntityLink|Elder Guardian}}
|{{Tc|yes}}
|-
|{{EntityLink|Hoglin}}
|{{Tc|no}}
|-
|{{EntityLink|Illusioner}}
|{{Tc|yes}}
|-
|{{EntityLink|Killer Bunny}}
|{{Tc|no}}
|-
|{{EntityLink|Magma Cube}}
|{{Tc|partial|no{{Only|Java|short=1}}/Yes{{Only|Bedrock|short=1}}}}
|-
|{{EntityLink|Piglin}}
|{{Tc|no}}
|-
|{{EntityLink|Piglin Brute}}
|{{Tc|yes}}
|-
|{{EntityLink|Pillager}}
|{{Tc|yes}}
|-
|{{EntityLink|Phantom}}
|{{Tc|yes}}
|-
|{{EntityLink|Ravager}}
|{{Tc|yes}}
|-
|{{EntityLink|Shulker}}
|{{Tc|no}}
|-
|{{EntityLink|Silverfish}}
|{{Tc|yes}}
|-
|{{EntityLink|Skeleton}}, {{EntityLink|Skeleton Horseman}}, {{EntityLink|Stray}}, {{EntityLink|Wither Skeleton}}
|{{Tc|yes}}
|-
|{{EntityLink|Spider}}, {{EntityLink|Cave Spider}}, {{EntityLink|Spider Jockey}}
|{{Tc|yes}}
|-
|{{EntityLink|Slime}}
|{{Tc|partial|no{{Only|Java|short=1}}/Yes{{Only|Bedrock|short=1}}}}
|-
|{{EntityLink|Vex}}
|{{Tc|yes}}
|-
|{{EntityLink|Vindicator}}
|{{Tc|yes}}
|-
|{{EntityLink|Warden}}
|{{Tc|yes}}
|-
|{{EntityLink|Witch}}
|{{Tc|yes}}
|-
|{{EntityLink|Wither}}
|{{Tc|yes}}
|-
|{{EntityLink|Zoglin}}
|{{Tc|yes}}
|-
|{{EntityLink|Zombie}}, {{EntityLink|Zombie Villager}}, {{EntityLink|Husk}}
|{{Tc|yes}}
|-
|{{EntityLink|Zombified Piglin}}
|{{Tc|partial|when hostile{{Only|Java|short=1}}/Yes{{Only|Bedrock|short=1}}}}
|-
|}
{{notelist}}
If the player has not entered a bed and didn't die for 3 in-game days, [[phantom]]s can spawn unless {{cmd|gamerule doInsomnia}} is set to {{cd|false}}. {{in|java}}, this can be verified by checking if the "Time Since Last Rest" [[statistic]] is greater than 1.00 h.

A hostile mob can wake a player that is sleeping.

The player also cannot sleep in a bed occupied by another player, resulting in the message, "This bed is occupied".

A player can, however, sleep in a bed being used by a villager. The player may first wake the villager (pressing {{control|use}} on the villager) and then quickly enter the bed before the villager can lie down again. The villager reclaims the bed after the player wakes. The villager is kicked out of its bed when a player attempts to sleep there.

A player also cannot sleep while on fire, while poisoned, or while starving.

If all sleeping requirements are met and the player enters a bed, the player is positioned in the bed. The player falls asleep as the screen fades to black. {{IN|bedrock}}, the sleeping animation slowly lowers the player into bed.

Once all players in a world are asleep, after 5 seconds (100 ticks) the time of day changes to sunrise. (time 0)

During this time, the chat window is focused, and the player can leave the bed by clicking the {{btn|Leave Bed}} button.

[[Waterlogging|Waterlogged]] beds{{only|bedrock}} cannot be slept in unless the player or villager has the {{EffectLink|Water Breathing}} or {{EffectLink|Conduit Power}} status effects. Attempting to use a waterlogged bed otherwise does not display any message.<ref>{{bug|MCPE-35802}}</ref>

Beds displaying an error above the hotbar is a feature exclusive to beds; other blocks that cannot be used do not display such a message.<ref>{{bug|MC-160479}} resolved as "Works As Intended"</ref>

If there are two or more blocks of space above the bed, then the player can wake up on the bed. If there is less than two blocks above the bed and there is room on the side, then the player wakes up on the side of the bed. If there is no space on the side of the bed and there is less than two blocks above the bed, then the player still wakes up on top of the bed, but suffocates if it's a solid block. 

Villagers always wake up on top of the bed, meaning they can suffocate if there isn't enough room above the bed.

====Passing the night====
Sleeping changes the [[daylight cycle|time of day]] to sunrise and resets the [[weather]] cycle, changing the weather to clear conditions. {{IN|JE}}, the weather cycle is only reset if it is currently raining or snowing. The player wakes up next to the bed, facing the bed.

Sleeping does not accelerate processes that take place over time such as the growth of [[crops]] or [[smelting]]. If {{cmd|gamerule doDaylightCycle}} is <code>false</code>, the player instead wakes up in the night.

To skip the night in multiplayer, all players in the [[Overworld]] must be in bed at the same time. Pressing the {{btn|Leave Bed}} button is not necessary in this case. The percentage of players that need to sleep to skip the night can be customized with the game rule {{cd|playersSleepingPercentage}}.

Villagers are unable to skip the night by sleeping in beds, unlike players.

If the bed is destroyed while the player is in it, due to for example an explosion or by another player, the player wakes prematurely and the night does not pass.

====Setting the spawn point====
Once a player has entered a bed (or right clicked the bed during daytime), their spawn point is set to the location of that bed. {{IN|java}}, multiple players can set their spawn point on a single bed. {{IN|bedrock}}, the last player to use a specific bed is the only player who can respawn there, and players who had previously slept there respawn at the world spawn.

{{ctrl|Using}} a bed in the daytime likewise sets the spawn point, without actually entering the bed. 

When a bed explodes, it does not set the spawn point. 

The message "Respawn point set" is displayed in chat when the respawn point is successfully changed.

The check for a bed is made only when the player respawns. This means that the bed can be destroyed and replaced or even reoriented, but as long as there is a bed present in the same location, the player can respawn there. If a player's bed is absent, or if the area around the bed is made unsuitable for respawning (see below), a message is displayed saying ''You have no home bed or charged respawn anchor, or it was obstructed''{{only|je}}/''Your home bed was missing or obstructed''{{only|be}}, and the player respawns at the [[Spawn#World spawn|world spawn]] point. 

When choosing where to respawn the player, the northwesternmost (lowest X- and Z-coordinates) location of the seven blocks adjacent to the head of the bed is chosen first. If this location is obstructed, the next choice is to its south (+Z), rather than the east (+X). Only when all seven locations around the head are obstructed are the three remaining ones adjacent to the foot then to be considered. 

For a location to be unobstructed, the block at the level of the bed must be air or non-solid (e.g. torches, but not glass) and there must be a space with a solid block below it and two non-colliding blocks for the player to stand in 0-2 blocks below the bed. It does not matter if the bed itself has blocks above it. Putting a slab one block above a bed can act as a two block tall space, as the bed is half a block tall. The bed never spawns the player on or directly below itself even if all other locations are obstructed. If a bed is obstructed, the player's spawn point is cleared after they respawn. That is, even if the bed is subsequently made usable again, the player continues to respawn at the world spawn until interacting with the bed again. 

Specifically, when interacting with it, the location of the ''head'' of the bed is saved as the spawn point, and if a bed is in that space (whether it is the foot or the head) then the respawn works. This can be observed by reorienting the bed with its head in the same location. Interacting with it does not produce a "Respawn point set" message as the game doesn't change the saved spawn point. If a bed is reoriented so that its foot is in this space, it still functions on the next respawn, but it can also be interacted with to update the spawn point to the new head of the bed and cause a "Respawn point set" message. Attempting the reverse, reorienting the bed so that it overlaps the original location of the foot, results in a respawn at world spawn. However, the location of the foot of the bed is also saved. If the bed is moved so that part of it overlaps the original location of the head, it can be observed that the same locations need to be obstructed to stop spawning. It is possible to respawn 2 blocks away from the bed this way.

=== Bouncing===
Falling onto a bed bounces the player with 66% strength – the bouncing-up velocity is 66% of the impact velocity. The player also takes 50% of normal fall damage.

Baby villagers bounce on beds during the day.

If the player is falling while sleeping requirements are met, and presses {{control|use}} on a bed within reach before hitting the ground, the fall damage is delayed until the player wakes.

A player can bounce on a bed while another player or villager is sleeping on it without waking the player or the villager up.

Villagers can be pushed onto beds, as the bed is half a block tall.

=== Curing===
Each bed in the vicinity of a zombie villager has a chance to speed up the [[Zombie_Villager#Curing|process of curing the zombie villager]]. Iron bars (such as in a prison cell) also have this effect.

=== Placement===
Beds require two blocks of floor space. Placement requires at least 2 blocks from the player's facing direction. When placed, the foot of the bed is placed on the block selected and the head of the bed on the block farther away from the player. {{IN|bedrock}}, beds require solid blocks below them when placed. However, the bed remains in place if its supporting blocks are later removed. {{IN|java}}, beds do not require supporting blocks and can be placed anywhere, provided there is enough room. 

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

===Unique===
{{edition|java}}:
{{Sound table
|sound=Explosion1.ogg
|sound2=Explosion2.ogg
|sound3=Explosion3.ogg
|sound4=Explosion4.ogg
|subtitle=Explosion
|source=block
|description=When a player attempts to sleep while not in the Overworld
|id=entity.generic.explode
|translationkey=subtitles.entity.generic.explode
|volume=4.0
|pitch=0.56-0.84
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Explosion1.ogg
|sound2=Explosion2.ogg
|sound3=Explosion3.ogg
|sound4=Explosion4.ogg
|source=block
|description=When a player attempts to sleep while not in the Overworld
|id=random.explode
|volume=4.0
|pitch=1.0
|foot=1}}

==Data values==
===ID===
{{edition|java}}:
{{ID table|
|edition=java
|showblocktags=y
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=White Bed
|spritetype=block
|nameid=white_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Orange Bed
|spritetype=block
|nameid=orange_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Magenta Bed
|spritetype=block
|nameid=magenta_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Light Blue Bed
|spritetype=block
|nameid=light_blue_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Yellow Bed
|spritetype=block
|nameid=yellow_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Lime Bed
|spritetype=block
|nameid=lime_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Pink Bed
|spritetype=block
|nameid=pink_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Gray Bed
|spritetype=block
|nameid=gray_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Light Gray Bed
|spritetype=block
|nameid=light_gray_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Cyan Bed
|spritetype=block
|nameid=cyan_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Purple Bed
|spritetype=block
|nameid=purple_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Blue Bed
|spritetype=block
|nameid=blue_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Brown Bed
|spritetype=block
|nameid=brown_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Green Bed
|spritetype=block
|nameid=green_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Red Bed
|spritetype=block
|nameid=red_bed
|blocktags=beds
|itemtags=beds}}
{{ID table
|displayname=Black Bed
|spritetype=block
|nameid=black_bed
|blocktags=beds
|itemtags=beds
|foot=1}}
{{ID table
|displayname=Block entity
|spritename=beds
|spritetype=block
|nameid=bed
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Bed
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Block
|spritename=Beds
|spritetype=block
|nameid=bed
|id=26
|form=block
|itemform=item.bed}}
{{ID table
|displayname=Item
|spritename=bed
|spritetype=item
|nameid=bed
|id=418
|form=item
|translationkey=item.bed.black.name,item.bed.red.name,item.bed.green.name,item.bed.brown.name,item.bed.blue.name,item.bed.cyan.name,item.bed.silver.name,item.bed.gray.name,item.bed.pink.name,item.bed.lime.name,item.bed.yellow.name,item.bed.lightBlue.name,item.bed.magenta.name,item.bed.orange.name,item.bed.white.name
|foot=1}}
{{ID table
|notnamespaced=y
|displayname=Block entity
|spritename=beds
|spritetype=block
|nameid=Bed
|foot=1}}

===Metadata===
{{see also|Data values}}
{{IN|be}}, bed items use the following data values:
{{/DV}}

===Block states===
{{see also|Block states}}
{{/BS}}

===Block data===
A bed has a block entity associated with it that holds additional data about the block.

{{el|java}}:
{{see also|Block entity format}}
{{/BE}}

{{el|bedrock}}:
: See [[Bedrock Edition level format/Block entity format]].

==Advancements==
{{load advancements|Sweet Dreams}}

==History==
''For a more in-depth breakdown of changes to textures and models, including a set of renders for each state combination, see [[/Asset history]]''
{{History|java beta}}
{{History||November 26, 2011|link={{tweet|jeb|140410431394160640}}|Originally, [[crying obsidian]] was intended to act as a block to reset spawn points, until beds were introduced.}}
{{History||1.3|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds. 
|The only color for beds is red.
|Beds can currently be crafted using any color combination of wool.
|Sleeping in an area potentially exposed to monsters can cause [[player]]s to wake up early, with a [[skeleton]] or [[zombie]] spawned next to them.
|Trying to sleep in a bed in [[the Nether]] does nothing.}}
{{History||1.4|Sleeping in a bed now resets the player's spawn position, though it does not work for most users. The spawn point unintentionally changes only if ''Leave Bed'' is clicked and the function is limited to [[multiplayer]].}}
{{History||1.4_01|Beds now act as a respawn point as intended.}}
{{History||1.6|snap=Test Build 3|Trying to sleep in a bed in the Nether now causes the bed to [[explosion|explode]].}}
{{History||1.7|As blocks now pull textures from the expected places for model application, this has resulted in the bed texture shifting downward in <samp>[[terrain.png]]</samp>. No visual difference has resulted for the actual bed.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 4|Bed explosions in the Nether now light nearby blocks on fire.}}
{{History|||snap=Beta 1.9 Prerelease 5|The bottom textures of beds have been changed to the texture of the new [[oak]] planks from [[File:Red Bed JE1 (facing NWU).png|32px]] to [[File:Red Bed JE2 BE1 (facing NWU).png|32px]].}}
{{History|||snap=Beta 1.9 Prerelease 6|Beds no longer spawn monsters. Instead, trying to sleep when monsters are around displays a message saying ''You may not rest now, there are monsters nearby''.}}
{{History||1.2.4|snap=release|[[Cat]]s while in standing position now purposely go and sit on beds.
|[[Spruce]], [[birch]], and [[jungle tree|jungle]] planks can now be used to craft beds.}}
{{History||1.5|snap=?|Beds now check their [[biome]] for detonation rather than just their dimension.}}
{{History||1.7.2|snap=1.7.1|[[Acacia]] planks and [[dark oak]] planks can now be used to craft beds.}}
{{History||1.8|snap=14w29a|Beds now display the cracking animation on top and bottom.}}
{{History|||snap=14w33a|Beds now make [[sound]]s when placed, and play logical sounds when stepped on and [[breaking|broken]].<ref>{{bug|MC-66347||Beds make incorrect sounds|Fixed}}</ref>}}
{{History||1.9|snap=15w43a|Bed now generates inside [[igloo]]s.}}
{{History||1.11|snap=16w32a|The messages "You can only sleep at night", "You may not rest now, there are monsters nearby", and "This bed is occupied" now appear on top of the hotbar, the place that the message "Press <whatever your sneak key is> to dismount" also appears when the player is riding a [[mob]].}}
{{History|||snap=16w33a|If the player is close enough to click on the bed, but not close enough to sleep in it, the message "You may not rest now, the bed is too far away" is now displayed.}}
{{History||1.12|snap=17w06a|Neutral [[zombie pigmen]] no longer prevent the player from sleeping in a bed.}}
{{History|||snap=March 13, 2017|slink={{tweet|jeb_|841311279784591361}}|[[Jeb]] mentions colored beds for [[Java Edition 1.12|1.12]].}}
{{History|||snap=17w15a|[[File:White Bed JE1.png|32px]] [[File:Light Gray Bed JE1.png|32px]] [[File:Gray Bed JE1.png|32px]] [[File:Black Bed JE1.png|32px]] [[File:Brown Bed JE1.png|32px]] [[File:Orange Bed JE1.png|32px]] [[File:Yellow Bed JE1.png|32px]] [[File:Lime Bed JE1.png|32px]] [[File:Green Bed JE1.png|32px]] [[File:Cyan Bed JE1.png|32px]] [[File:Light Blue Bed JE1.png|32px]] [[File:Blue Bed JE1.png|32px]] [[File:Purple Bed JE1.png|32px]] [[File:Magenta Bed JE1.png|32px]] [[File:Pink Bed JE1.png|32px]] [[Dye]]d beds have been added.
|The "Bed" has been renamed to "Red Bed".
|Beds can now only be crafted using wool of the same color.
|[[File:Red Bed JE2.png|32px]] The texture of red beds has been changed. The top of the beds are no longer mirrored. <!--- the numbers appear out of order but it is correct since it orders all beds in the current order in the Java Creative inventory --->
|{{Sprite|pos=1|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=9|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=8|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=16|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=13|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=15|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=2|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=5|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=6|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=14|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=10|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=4|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=12|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=11|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=3|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=7|image=Bed Icons 1.12.png|size=32|sheetsize=512}} Beds now appear 3D in the [[inventory]].
|[[File:Red Bed JE3 (facing NWU).png|32px]] Beds now have 3D legs.<ref>{{bug|MC-11963||bed hind legs not rendered|Fixed}}</ref>
|Beds have been made bouncy, though they do not completely reduce all [[fall damage]].
|Beds are now a [[block entity]].}}
{{History|||snap=17w17a|[[File:Red Bed JE4 BE2 (facing NWU).png|32px]] The four legs of a bed are now each textured separately, and their [[model]] is different.
|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Red Bed JE3 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br> <!--- the numbers appear out of order but it is correct since it orders all beds in the current order in the Java Creative inventory --->
{{Sprite|pos=17|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=25|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=24|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=32|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=29|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=31|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=18|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=21|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=22|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=30|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=26|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=20|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=28|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=27|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=19|image=Bed Icons 1.12.png|size=32|sheetsize=512}} {{Sprite|pos=23|image=Bed Icons 1.12.png|size=32|sheetsize=512}} The textures of beds have now also been changed.}}
{{History||1.13|snap=17w47a|Beds now require solid blocks below them, or they break into an item. Previously, a bed needed to be placed on solid blocks, but the blocks could later be removed.}}
{{History|||snap=18w07a|Sleeping in a bed is now important to keep [[phantom]]s from spawning.}}
{{History|||snap=18w20a|Players in [[Creative]] mode can now sleep even if monsters are nearby.}}
{{History|||snap=18w22a|Beds no longer require supporting blocks below them; they do not break into an [[item (entity)|item]] if said blocks are removed, and can be directly placed on top of non-solid blocks.}}
{{History|||snap=pre2|The "You can only sleep at night" message when using a bed has been changed to "You can sleep only at night and during [[thunderstorm]]s."}}
{{History||1.14|snap=18w43a|[[File:White Bed JE3 BE3.png|32px]] [[File:Light Gray Bed JE3 BE3.png|32px]] [[File:Gray Bed JE3 BE3.png|32px]] [[File:Black Bed JE3 BE3.png|32px]] [[File:Brown Bed JE3 BE3.png|32px]] [[File:Red Bed JE4 BE3.png|32px]] [[File:Orange Bed JE3 BE3.png|32px]] [[File:Yellow Bed JE3 BE3.png|32px]] [[File:Lime Bed JE3 BE3.png|32px]] [[File:Green Bed JE3 BE3.png|32px]] [[File:Cyan Bed JE3 BE3.png|32px]] [[File:Light Blue Bed JE3 BE3.png|32px]] [[File:Blue Bed JE3 BE3.png|32px]] [[File:Purple Bed JE3 BE3.png|32px]] [[File:Magenta Bed JE3 BE3.png|32px]] [[File:Pink Bed JE3 BE3.png|32px]]<br>{{InvSprite|White Bed}} {{InvSprite|Light Gray Bed}} {{InvSprite|Gray Bed}} {{InvSprite|Black Bed}} {{InvSprite|Brown Bed}} {{InvSprite|Red Bed}} {{InvSprite|Orange Bed}} {{InvSprite|Yellow Bed}} {{InvSprite|Lime Bed}} {{InvSprite|Green Bed}} {{InvSprite|Cyan Bed}} {{InvSprite|Light Blue Bed}} {{InvSprite|Blue Bed}} {{InvSprite|Purple Bed}} {{InvSprite|Magenta Bed}} {{InvSprite|Pink Bed}} The textures of all beds have been changed.
|[[File:Red Bed JE5 (facing NWU).png|32px]] The bottom textures of beds have been changed to new oak planks texture.}}
{{History|||snap=18w44a|Cats can now sleep in empty beds or sit on their owner when their owner is sleeping.}}
{{History|||snap=18w47a|[[File:Red Bed JE6 BE3 (facing NWU).png|32px]] The bottom textures of beds have been changed to the new oak planks to texture, once again.}}
{{History|||snap=18w48a|Beds now generate in the updated [[plains]] [[village]]s.}}
{{History|||snap=18w49a|Beds now generate in the updated [[savanna]] villages and the new [[snowy tundra]] villages.}}
{{History|||snap=18w50a|Beds now generate in the updated [[desert]] and [[taiga]] villages.}}
{{History|||snap=19w08a|All mobs can now sleep in beds using [[command]]s.}}
{{History|||snap=19w11a|[[Villager]]s now claim beds and sleep in them during the night.
|Shepherd villagers now [[trading|sell]] beds.}}
{{History||1.15|snap=19w35a|If a player tries to sleep in a bed that is occupied by a villager, that villager is now kicked out of the bed.}}
{{History|||snap=19w36a|Trying to sleep in a bed during the daytime now sets the player's spawn location to that bed.}}
{{History|||snap=pre2|Successfully changing a spawn point using a bed now displays a message in [[chat]].}}
{{History||1.16|snap=20w06a|Crimson and warped planks can now be used to craft beds.}}
{{History|||snap=20w12a|The message "Your home bed was missing or obstructed" has been changed to "You have no home bed or respawn anchor, or it was obstructed" due to the addition of the [[respawn anchor]], used to set the player's spawn in [[the Nether]].}}
{{History||1.16.2|snap=20w30a|Beds now prioritize the side of the bed the player or villager entered from and then spaces circling around the foot of the bed up to the head of the bed.}}
{{History||1.17|snap=20w51a|Added gamerules for sleeping in multiplayer.}}
{{History||1.18|snap=21w44a|Sleeping now only resets the weather cycle if it is currently raining or snowing.<ref>{{bug|MC-63340||Sleeping always resets time until rain|Fixed}}</ref>}}
{{History||1.19|snap=22w11a|[[Mangrove]] planks can now be used to craft beds.}}
{{History||1.19.3|snap=22w43a|Bed explosions can now be properly [[blocking|blocked]] by [[shield]]s.<ref>{{bug|MC-200006|||Fixed}}</ref>}}
{{History||1.20|snap=Pre-release 1|Beds of any color can now be dyed into any other color.}}

{{History|pocket alpha}}
{{History||v0.4.0|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
{{History||v0.5.0|Beds can now be obtained after activating the [[nether reactor]].}}
{{History||v0.9.0|snap=build 1|Beds no longer restore [[health]] in normal difficulty, making [[food]] a more required [[Survival]]-needed resource.
|Added smooth lighting to beds.}}
{{History||v0.11.0|snap=build 8|The lighting on beds has been improved.}}
{{History||v0.12.1|snap=build 1|Tamed [[cat|ocelots]] while standing now purposely go and sit on beds.
|Beds are no longer available from the [[nether reactor]].}}
{{History||v0.16.0|snap=build 1|Beds now make a [[sound]] when placed, identical to [[block]]s like [[stone]].<ref name="lazilycodedsounds">{{bug|MCPE-10077}} – "Incorrect sounds on beds" resolved as "Fixed".</ref>}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Beds are now generated in [[igloo]]s.}}
{{History|||snap=alpha 0.17.0.2|[[File:Leave Bed 1.0.jpg|36px]] The ''Leave Bed'' button now has a new texture.}}
{{History|||snap=alpha 1.0.0.0|Sleeping now ends [[weather]].}}
{{History||1.1.0|snap=alpha 1.1.0.0|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br>[[File:White Bed (item) BE1.png|32px]] [[File:Light Gray Bed (item) BE1.png|32px]] [[File:Gray Bed (item) BE1.png|32px]] [[File:Black Bed (item) BE1.png|32px]] [[File:Brown Bed (item) BE1.png|32px]] [[File:Orange Bed (item) BE1.png|32px]] [[File:Yellow Bed (item) BE1.png|32px]] [[File:Lime Bed (item) BE1.png|32px]] [[File:Green Bed (item) BE1.png|32px]] [[File:Cyan Bed (item) BE1.png|32px]] [[File:Light Blue Bed (item) BE1.png|32px]] [[File:Blue Bed (item) BE1.png|32px]] [[File:Purple Bed (item) BE1.png|32px]] [[File:Magenta Bed (item) BE1.png|32px]] [[File:Pink Bed (item) BE1.png|32px]] Added the other 15 colors of beds.
|The "Bed" has been renamed to "Red Bed".
|[[File:Red Bed JE3 BE2.png|32px]] The texture of red beds has been changed.
|A new animation when sleeping has been added to beds.
|Beds in [[igloo]]s are now white in [[ice plains]] and brown in [[cold taiga]]s.
|Beds now bounce the [[player]] two [[block]]s up, and have 3D legs.
|Placement, stepping and breaking [[sound]]s for beds are now correctly wooden.<ref name="lazilycodedsounds"/>}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Beds can now be [[waterlogging|waterlogged]] and require [[Water Breathing]] to sleep in.}}
{{History|||snap=beta 1.2.20.1|Colored beds can now be turned into white beds by adding [[bleach]]. This works only if {{el|ee}} features are turned on.}}
{{History||1.6.0|snap=beta 1.6.0.1|Sleeping in a bed is now important to keep [[phantom]]s from spawning.}}
{{History||1.8.0|snap=beta 1.8.0.8|[[Cat]]s can now sleep in empty beds or sit on their [[player|owner]] when their owner is sleeping.}} 
{{History||1.10.0|snap=beta 1.10.0.3|Various beds now generate in the new [[village]]s.
|[[Villager]]s can now sleep by occupying a bed, which prevent [[player]]s from using it.
|[[Igloo]]s now generate with red beds.
|Beds are now used to count the number of available houses in [[village]]s.
|[[File:White Bed JE3 BE3.png|32px]] [[File:Light Gray Bed JE3 BE3.png|32px]] [[File:Gray Bed JE3 BE3.png|32px]] [[File:Black Bed JE3 BE3.png|32px]] [[File:Brown Bed JE3 BE3.png|32px]] [[File:Red Bed JE4 BE3.png|32px]] [[File:Orange Bed JE3 BE3.png|32px]] [[File:Yellow Bed JE3 BE3.png|32px]] [[File:Lime Bed JE3 BE3.png|32px]] [[File:Green Bed JE3 BE3.png|32px]] [[File:Cyan Bed JE3 BE3.png|32px]] [[File:Light Blue Bed JE3 BE3.png|32px]] [[File:Blue Bed JE3 BE3.png|32px]] [[File:Purple Bed JE3 BE3.png|32px]] [[File:Magenta Bed JE3 BE3.png|32px]] [[File:Pink Bed JE3 BE3.png|32px]] The textures of all beds have been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Beds can now be [[trading|bought]] from shepherd [[villager]]s.}}
{{History||1.13.0|snap=?|[[Player]]s now succeed in attempting to sleep on villager-occupied beds, kicking the villager off.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
{{History||xbox=TU12|xbone=CU1|ps=1.00|wiiu= Patch 1|[[Cat]]s in standing position now purposely go and sit on beds, preventing [[player]]s from using them.}}
{{History||xbox=TU43|xbone=CU33|ps=1.36|wiiu=Patch 13|The sleeping animation while in beds has been changed.}}
{{History||xbox=TU54|xbone=CU44|ps=1.52|wiiu=Patch 24|switch=1.0.4|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br>[[File:White Bed (item) LCE.png|32px]] [[File:Light Gray Bed (item) LCE.png|32px]] [[File:Gray Bed (item) LCE.png|32px]] [[File:Black Bed (item) LCE.png|32px]] [[File:Brown Bed (item) LCE.png|32px]] [[File:Orange Bed (item) LCE.png|32px]] [[File:Yellow Bed (item) LCE.png|32px]] [[File:Lime Bed (item) LCE.png|32px]] [[File:Green Bed (item) LCE.png|32px]] [[File:Cyan Bed (item) LCE.png|32px]] [[File:Light Blue Bed (item) LCE.png|32px]] [[File:Blue Bed (item) LCE.png|32px]] [[File:Purple Bed (item) LCE.png|32px]] [[File:Magenta Bed (item) LCE.png|32px]] [[File:Pink Bed (item) LCE.png|32px]] Added the other 15 colors of beds. 
|The "Bed" has been now renamed to "Red Bed".
|[[File:Red Bed JE3 BE2.png|32px]] [[File:Red Bed (item) LCE.png|32px]] The textures of red beds has been changed. 
|Beds are now [[dye]]able and bounce the [[player]] two [[block]]s up, and have a single 3D legs.}}
{{History||xbox=TU60|xbone=CU51|ps=1.64|wiiu=Patch 30|switch=1.0.11|The sleeping animation in beds has been changed again.}}
{{History||xbox=TU69|xbone=none|ps=1.76|wiiu=Patch 38|switch=none|Sleeping in a bed is now important to keep [[phantom]]s from spawning.
|Beds can now be [[waterlogging|waterlogged]] and require {{EffectLink|Water Breathing}} to sleep in.}}
{{History||xbox=none|xbone=none|ps=1.83|wiiu=none|switch=none|The sleeping animation for beds has been reverted to how it was before [[Legacy Console Edition version history#ps-1.64|1.64]].}}
{{History||xbox=none|xbone=none|ps=1.91|wiiu=none|switch=none|Various beds now generate in the new [[village]]s.
|[[Villager]]s can now sleep by occupying a bed, which prevents [[player]]s from using it.
|Beds are now used to count the number of available houses in villages.
|Beds can now be [[trading|bought]] from shepherd [[villager]]s.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
{{History||1.9.19|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br>[[File:White Bed (item) BE1.png|32px]] [[File:Light Gray Bed (item) BE1.png|32px]] [[File:Gray Bed (item) BE1.png|32px]] [[File:Black Bed (item) BE1.png|32px]] [[File:Brown Bed (item) BE1.png|32px]] [[File:Orange Bed (item) BE1.png|32px]] [[File:Yellow Bed (item) BE1.png|32px]] [[File:Lime Bed (item) BE1.png|32px]] [[File:Green Bed (item) BE1.png|32px]] [[File:Cyan Bed (item) BE1.png|32px]] [[File:Light Blue Bed (item) BE1.png|32px]] [[File:Blue Bed (item) BE1.png|32px]] [[File:Purple Bed (item) BE1.png|32px]] [[File:Magenta Bed (item) BE1.png|32px]] [[File:Pink Bed (item) BE1.png|32px]] Added the other 15 colors of beds.
|The "Bed" has been renamed to "Red Bed".
|[[File:Red Bed JE3 BE2.png|32px]] The texture of red beds has been changed.
|Beds now bounce the [[player]] two [[block]]s up and have 3D legs.}}

{{History|Education}}
{{History||1.0|[[File:Red Bed JE1 BE1.png|32px]] [[File:Red Bed (item) JE1 BE1.png|32px]] Added beds.}}
{{History||1.0.1|[[File:White Bed JE2 BE2.png|32px]] [[File:Light Gray Bed JE2 BE2.png|32px]] [[File:Gray Bed JE2 BE2.png|32px]] [[File:Black Bed JE2 BE2.png|32px]] [[File:Brown Bed JE2 BE2.png|32px]] [[File:Orange Bed JE2 BE2.png|32px]] [[File:Yellow Bed JE2 BE2.png|32px]] [[File:Lime Bed JE2 BE2.png|32px]] [[File:Green Bed JE2 BE2.png|32px]] [[File:Cyan Bed JE2 BE2.png|32px]] [[File:Light Blue Bed JE2 BE2.png|32px]] [[File:Blue Bed JE2 BE2.png|32px]] [[File:Purple Bed JE2 BE2.png|32px]] [[File:Magenta Bed JE2 BE2.png|32px]] [[File:Pink Bed JE2 BE2.png|32px]]<br>[[File:White Bed (item) BE1.png|32px]] [[File:Light Gray Bed (item) BE1.png|32px]] [[File:Gray Bed (item) BE1.png|32px]] [[File:Black Bed (item) BE1.png|32px]] [[File:Brown Bed (item) BE1.png|32px]] [[File:Orange Bed (item) BE1.png|32px]] [[File:Yellow Bed (item) BE1.png|32px]] [[File:Lime Bed (item) BE1.png|32px]] [[File:Green Bed (item) BE1.png|32px]] [[File:Cyan Bed (item) BE1.png|32px]] [[File:Light Blue Bed (item) BE1.png|32px]] [[File:Blue Bed (item) BE1.png|32px]] [[File:Purple Bed (item) BE1.png|32px]] [[File:Magenta Bed (item) BE1.png|32px]] [[File:Pink Bed (item) BE1.png|32px]] Added the other 15 colors of beds.
|The "Bed" has been renamed to "Red Bed".
|[[File:Red Bed JE3 BE2.png|32px]] The texture of red beds has been changed.
|Beds now bounce the [[player]] two [[block]]s up, and have 3D legs.}}
{{History||1.0.27|Colored beds can now be turned into white beds by adding [[bleach]].}}
{{History||1.12|[[File:White Bed JE3 BE3.png|32px]] [[File:Light Gray Bed JE3 BE3.png|32px]] [[File:Gray Bed JE3 BE3.png|32px]] [[File:Black Bed JE3 BE3.png|32px]] [[File:Brown Bed JE3 BE3.png|32px]] [[File:Red Bed JE4 BE3.png|32px]] [[File:Orange Bed JE3 BE3.png|32px]] [[File:Yellow Bed JE3 BE3.png|32px]] [[File:Lime Bed JE3 BE3.png|32px]] [[File:Green Bed JE3 BE3.png|32px]] [[File:Cyan Bed JE3 BE3.png|32px]] [[File:Light Blue Bed JE3 BE3.png|32px]] [[File:Blue Bed JE3 BE3.png|32px]] [[File:Purple Bed JE3 BE3.png|32px]] [[File:Magenta Bed JE3 BE3.png|32px]] [[File:Pink Bed JE3 BE3.png|32px]] The textures of all beds have been changed.}}
{{History|foot}}

=== Data history ===
{{History|java}}
{{History||1.13|snap=17w47a|The different block states for the <code>bed</code> ID have been split up into their own IDs.
|Prior to [[1.13/Flattening|''The Flattening'']], this block's numeral ID was 26, and the item's 355.}}
{{History|foot}}

=== Bed "item"===
{{:Technical blocks/Bed}}

==Issues==
{{Issue list}}

== Trivia==
* The reason beds explode in the Nether and the End is because Notch found it was the easiest solution to dimension-unique respawning.<ref>{{tweet|Notch|1259681657793077250|duh|11 May 2020}}, in response to {{tweet|NoahBandito|1259681319392550912|So you're telling me the "Inteded Game Design" should actually be "Sorry, I was too lazy to code"?|11 May 2020}}</ref>
** Dimension-unique respawning was eventually implemented via the [[respawn anchor]], and gained command support at the same time. Despite this, beds and respawn anchors still explode in invalid dimensions.
* If the player quits the game while sleeping, upon return the player wakes up beside the bed.
* Using the {{cmd|teleport}} command while another player is sleeping still teleports the sleeping player, but the player wakes immediately.{{only|java}}
* If the player places a bed on [[ice]], running over the bed acts like running over ice, similar to slabs.
* When placed using the {{cmd|setblock}} command, only one half of a bed is placed, because beds are two blocks long. A single half can be slept in like a whole bed.
* Villagers can sleep in the Nether and the End without causing the bed to explode.<ref>{{bug|MC-146515}} Resolved as Works As Intended</ref>
* While the block state used to determine the half of a two-block block such as [[door]]s and double-tall [[flower]]s is called ''half'', in the case of beds this is called ''part''.
* Players and villagers do not drown or take damage from lava while in a bed, even if the bed is covered in lava.
*The red bed was the original default bed color. In [[Java Edition 1.12]] and [[Pocket Edition 1.1.0]] version of the game, the default color was changed to white.

== Gallery ==

=== All renders ===
<gallery>
White Bed.png|White
Light Gray Bed.png|Light gray
Gray Bed.png|Gray
Black Bed.png|Black
Brown Bed.png|Brown
Red Bed.png|Red
Orange Bed.png|Orange
Yellow Bed.png|Yellow
Lime Bed.png|Lime
Green Bed.png|Green
Cyan Bed.png|Cyan
Light Blue Bed.png|Light blue
Blue Bed.png|Blue
Purple Bed.png|Purple
Magenta Bed.png|Magenta
Pink Bed.png|Pink
</gallery>

=== Screenshots ===
<gallery>
Multiplayer Sleeping.png|A sleeping player in multiplayer.
Missing Bed.png|The message that can be seen after a failed attempt to respawn at the spawn point set by a bed.
Nether Bed.png|A crater created by attempting to sleep in the Nether.
Ender Bed.png|A crater created by attempting to sleep in the End.
16 color beds.png|All the different color variants.
Old Village New Village VillagerSleeping MCEE.png|An unemployed [[villager]] and a [[butcher]] villager goes to sleep, unaware of the zombies outside.
Stackedbeds.png|A stack of beds.
Mob wakeup.png|Player being awakened by a [[zombie]].
Day Sleeping.png|The message that can be seen when any players attempt to sleep during daytime.
Sleeping.png|A player going to sleep in a bed on the first day of a ''Minecraft'' world.
CobwebVillage.png|A bed in an abandoned village has its bottom half replaced by wheat crops.
</gallery>

=== In other media ===
<gallery>
File:Rainbow Bed.png|The [[MCE:Rainbow Bed|rainbow bed]], a unique coloration featured in [[Minecraft Earth]].
File:The Sham.jpg|The Sham, a villainous, sentient bed featured in the [[skin pack|Campfire Tales]] skin pack.
</gallery>

==References==
{{Reflist}}

{{Blocks|Utility}}
{{Items}}

[[Category:Utility blocks]]
[[Category:Manufactured blocks]]
[[Category:Generated structure blocks]]
[[Category:Block entities]]

[[cs:Postel]]
[[de:Bett]]
[[es:Cama]]
[[fr:Lit]]
[[hu:Ágy]]
[[it:Letto]]
[[ja:ベッド]]
[[ko:침대]]
[[nl:Bed]]
[[pl:Łóżko]]
[[pt:Cama]]
[[ru:Кровать]]
[[th:เตียง]]
[[uk:Ліжко]]
[[zh:床]]</li></ul>
19w08a String tags in SNBT can now be within single quotes ' in addition to double quotes ".[5]

References

External links

  • NBT on wiki.vg
  • NBTExplorer, a tool for viewing and editing NBT files.
  • webNBT, an online tool for viewing and editing NBT files.