Minecraft Wiki
m (→‎Trivia: chunk offset limit crash will result in a out of memory screen (I observed this))
Line 152: Line 152:
   
 
== Trivia ==
 
== Trivia ==
  +
* A world has 12 Chunk overflows in the code that creates at a certain distance a "Chunk Overflow", how do these overflows accomplish? well if you do 2,147,483,647 / 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048 and 4096. If you teleport to the coordinates you get when you calculate these numbers with each other, the chunk will overflow and will get "fake chunk" terrain
 
 
* There is a chance of walking into a “bad chunk" that has such corrupt and unreadable data that it will cause huge lag spikes and possibly crash the game.
 
* There is a chance of walking into a “bad chunk" that has such corrupt and unreadable data that it will cause huge lag spikes and possibly crash the game.
 
* When at the Far Lands, fences either have a thin wall collision box on one side, or no collision with mobs or the player.
 
* When at the Far Lands, fences either have a thin wall collision box on one side, or no collision with mobs or the player.

Revision as of 12:58, 30 May 2015

This page describes content that exists only in outdated versions of Minecraft. 
The Far Lands terrain generation and most bugs and glitches were fixed as of Beta 1.8. However, the Far Lands still exist in Pocket Edition.
This article is about the phenomena that existed before Beta 1.8. For the area at the edge of the world, see World boundary. For the customizable world border, see World border.
File:12550821line.png

Comparison of land before and after X/Z of ±12,550,821.

File:FarLandsCorner.png

The “corner" of the Far Lands, at ±12,550,821 on both X and Z axes.

Template:Pocket

The Far Lands[1] were the area that formed the “edge" of the “infinite" map in PC versions prior to Beta 1.8. They are currently found in Pocket Edition.

Spawning

Far Lands start to generate between ±12,550,821 and ±12,550,825 on any horizontal axis.

Structure

Corner Farlands on a map

A map created near the Corner Far Lands

File:Farlandscut.png

A section of the Far Lands shows that all large caves below sea-level are flooded.

File:Farlandsmap.PNG

A map created near the Far Lands.

File:Edges.png

Edge map.

Far Lands Cartograph

A cartograph of the Far Lands.

Both areas of the Far Lands feature extremely strange terrain, although they are significantly different. In both zones, any area beneath sea level, excluding regular caves, will be flooded with water.

Beyond X/Z of ±32,000,000 chunks are treated as permanently nonexistent, and will not generate, even though they may appear to. This value is hardcoded in the source code of Minecraft, meaning that it cannot be changed without editing the source files.

The Far Lands will generate biomes but most biomes will be indistinguishable except by the color of grass. Desert biomes will be covered in sand and snow-covered biomes will be covered with snow, excluding the very top of the map (because there's no space for the snow cover up there). Trees will generate somewhat normally, but can only be found in the upper areas of the map due to the need for grass. However, if you open the debug screen, the biome will always be forest.

Ores can be found up to their respective maximum heights just like in the normal world. Unfortunately, due to the flooding, everything except for coal is difficult, if not impossible, to acquire. In the solid areas of the Far Lands, normal caves will generate but will be limited and small. Along with the caves, dungeons (extremely rare) and lakes can be found in solid areas. Water and lava springs can be found out in the open and in caves.

Much of the open space in both areas is shrouded in darkness and thus hostile mobs run rampant, making the Far Lands as a whole incredibly dangerous. This is especially problematic in the Corner Far Lands due to its layered structure. The flooded zones are filled with squid.

In the Sky Dimension, the Far Lands are not half flooded with water and bedrock does not form at lower levels.

Edge Far Lands

The boundary of the Far Lands' edge (that is, where it meets the regular map) looks like a solid wall, all the way to the top of the map (Y-coordinate 127) that is filled with gaping holes perpendicular to the edge. These holes are extremely long, perhaps infinite, and on the whole seem to change very little no matter how deep the player ventures. They can be blocked, either partially or completely, but such blockages are rare and temporary. This “wall of Swiss cheese" pattern continues beneath ground level, all the way to the bottom of the map, and seems to be partially caused by a large one-dimensional distortion in the map generator's output. This area is sometimes referred to as “the Loop".

The Edge Far Lands' average block composition: 36% stone, 25% air, 23% water, 10% dirt/grass block, 2% bedrock, and 4% others. (Based on a 14×14 chunk selection)

Corner Far Lands

At a corner, when two perpendicular Edge Far Lands sections meet, the Corner Far Lands begin to generate. Unlike the infinite-length holes in the Edge Far Lands, the Corner Far Lands contains more normal terrain. This terrain is "stacked" on top of itself to create a bizarre sandwich with layers of ground and air, which gives it its nickname, “The Stack". Each layer looks like a gigantic floating continent, hovering over the next layer, which is shadowed.

The majority of the generated world is Corner Far Lands, as the “normal" map (before ±12,550,821 mark) only makes the center of the world, and the Edge Far Lands only makes its continued sides.

The number of layers isn't always the same, and varies between five to seven. Layers can be grouped into three categories:

  • Top layer: This layer exists at the absolute top of the map. Occasionally there can be a lower area that isn't shadowed (this is technically a dry layer). The lower area is where a majority of the trees and passive mobs can be found, as the top layer receives almost all of the sunlight. Due to the lack of space the area at the absolute top can't have trees or mobs.
    • The top layer tends to light incorrectly in day-night transitions. This is because the sunlight calculation doesn't work when the entire chunk is blocked at Y-coordinate 128.
  • Dry layers: These generate slightly flatter than normal terrain and have grass, despite the darkness. At sea level massive floating beaches can be found, which will collapse if modified. Hostile mobs' spawn rate likely approaches the maximum due to being in the shadow of the top layer. Rarely, there are holes in the top layer that allow sunlight to reach these layers. Caves that have one of these layers as their “surface" can occasionally be carved out of dirt instead of stone. These layers have cave-like ceilings made out of stone, gravel and dirt.
  • Flooded layers: Like the dry layers, these generate somewhat flat terrain, but it is comprised primarily of stone. Sand and sandstone will show up down here, even up to 30 meters below sea level. Except for coal, all the ores can only be found in these layers.

Sometimes, there are extremely tall pillars of gravel that stretch from the ground to the ceiling of a layer. Likewise, some of the beaches that collapse will create pillars of sand all the way down to the ground, despite there not being that much sand to begin with. The Corner Far Lands is also prone to having near-perfect diagonal lines being carved into the ceilings or floors of layers. If traced, these lines all intersect at the corner (X/Z ±12,550,821). This seems similar to how the Edge Far Lands have a consistent pattern along lines perpendicular to their edge, but is much less pronounced.

The Corner Far Lands' average block composition: 40% stone, 16% air, 28% water, 10% dirt/grass, 2% bedrock, and 4% others. (Based on a 14×14 chunk selection)

The Nether

File:NetherFarLands.png

The Far Lands as seen inside the Nether.

The Nether Far Lands are similar to Overworld Far Lands, except they generate with Nether features, such as lava ocean at Y=31.

In the Nether, the terrible lag associated with the Overworld Far Lands will not occur. This is because there are very few gravity-affected blocks in the Nether.

If a Nether portal is created in the Far Lands of the Overworld, entering will cause a teleportation to normal Nether, as X/Z 32,000,000, the limit at which block physics and lighting cease to function, divided by 8 (as 1 block in the nether corresponds to 8 blocks in the Overworld), is X/Z 4,000,000, within the limits of X/Z 12,550,820, where the distortion starts. Conversely, a Nether Portal built in the nether Far Lands will not function, as even at the limit of 12,550,820 blocks as the beginning of the Far Lands would cause the player to come out at X/Z 100,406,560, far past X/Z 32,000,000.

Pocket Edition

The Pocket Edition Far Lands are different from PC Far Lands, specifically:

  • The content of Far Lands in Pocket Edition is slightly different in biomes and structure in positive coordinates.
    • In negative coordinates, the Far Lands are completely ocean.
  • In the Corner Far Lands, an extremely unusual grid pattern of grass blocks will appear instead of the ordinary “stack." Tall grass will spawn on these blocks. This results in a perfect three-dimensional array of grass blocks levitating high above the ocean.[2]
  • Flying is the only way to navigate the Far Lands. Walking is impossible as the terrain is made up of ghost chunks.
  • Any movement causes chunks to jitter about incredibly.
  • One feature of the PE Far Lands is the Stripe Lands, a graphical bug that depicts a one visible-one invisible block pattern.[3][4] The Stripe Lands starts at X/Z ±16,777,216, only generating water, bedrock and ice (frozen oceans), and grass on flat worlds.

Effects

File:Farlandsblockmovement.gif

The most noticeable side effect of the Far Lands, where the map takes longer to update according to the player's location.

There are many effects that will be noticed after traveling millions of blocks away from the center of the map. The very first effect that will be noticed is the jumpy or stuttering movement of the map, which isn't directly related to the Far Lands themselves but instead to floating-point precision errors. This jumpy movement is notable even at an X/Z of ±500,000. Players will experience extreme framerate drops and very high CPU usage, which will continue until Minecraft freezes completely. The framerate drops do not occur in multiplayer servers, though it will, depending on the server computer's RAM, make the server itself lag. In both singleplayer and multiplayer, the intense lag that is characteristic of the Far Lands is caused by massive numbers of falling sand or gravel entities. This in turn is caused (like most of the rest of the Far Lands' strange effects) by more floating-point precision errors.

As the player journeys even deeper into the Far Lands, the effects worsen to the point where the game is unplayable. At X/Z ±32,000,000,[5] block physics stop functioning correctly. Lighting doesn't work and the blocks, although they appear to be there, aren't solid. If the player tries to walk on these blocks, he or she will fall into the Void. At excessive X/Z positions, world renderer no longer works, or takes incredibly long times and uses most, if not all CPU usage. It then becomes almost impossible to close Minecraft without a task manager.

Weather is not affected by the Far Lands directly but is by their terrain. Lightning bolts that hit surfaces at the top of the map (Y-coordinate 127) will be invisible and will not cause fire. The particles created when rain hits these surfaces will be black instead of blue. Snow will not accumulate on these surfaces either (because there's no space).

Map editors

When viewing the Far Lands in a 3D Minecraft map editor, you will encounter errors. In MCEdit, the selection cubes start to distort and the map distorts when viewing. In addition when rotating your view around a selected area, blocks will not be lined up right and will change how poorly lined up they are randomly, making the whole world seem to shake like a machine about to rattle itself to pieces.

Previous versions

In Infdev, although the Far Lands existed, many of the side effects didn't. However, fire particles and doors would act strange. There was no stuttering movement, and beyond X/Z ±32,000,000, the blocks would simply not render. Walking off the edge would cause the player to become stuck in a glitched position, unable to escape.[6][7]

It has been confirmed that in Alpha v1.1.2, the blocks would not render beyond X/Z ±32,000,000, like older Infdev versions.[5] The fake chunks started appearing in Alpha 1.2.0.

In previous versions of the game, if you teleport as high as you possibly can, you are sent to a Y-Axis of 3.4x1038. In this zone, you float without a purpose, and dropped items will slide with what appears to be no friction before suddenly stopping after about 20 blocks. It has been reported that the X and Z-Axis sometimes flicker randomly in this zone. The memory pie chart also sometimes randomly jumps to 100% undefined memory usage, and then disappears upon re-entering the debug menu.

Pocket Edition effects

In Pocket Edition, the playable range is smaller than that of PC, because of the usage of 32-bit floating-point numbers (as opposed to 64-bit on PC).

  • Gaps between chunks first begin to be noticeable at X/Z values above ±100,000. The selection box also experiences a lot more Z-fighting as it contracts (it can still rarely be found in the "normal" world).
  • At X/Z ±500,090 "jitteriness" is experienced and the further the player travels, the world gradually starts to become glitchy and unplayable. Chunks are seen to vibrate rapidly. [4]
  • Past X/Z: ±900,000 the jitteriness becomes considerably unbearable and crashes are very frequent at this point on low-end devices.[4]
  • After X/Z ±4,194,300 for 20 blocks into the respective coordinates will be ghost blocks, after which the jitteriness becomes so intense that the player cannot navigate toward the respective coordinate without jumping or flying.
  • After about X/Z ±8,389,000 the terrain is made up of ghost chunks.
  • After X/Z ±33,554,433 water is no longer rendered.
  • After about X/Z: ±2,100,000,000, air pockets (the black patches in the Stripe Lands) will fail to render. The map is essentially invisible from this point onwards.
  • Starting from X/Z ±2,147,483,328 the game inevitably crashes. This applies for all devices.
  • Blocks that are not full (stairs, fences, etc.) will appear as full blocks, usually stretched out.
  • At a certain point, the player can only move north, south, east ,or west (not diagonal) and has to hold down directional keys before moving.

Cause

The terrain is generated based on 16 octaves of Perlin noise. Each noise generator takes floating-point inputs and uses those to interpolate between noise values at whole numbers. It does so by:

  1. casting to a 32-bit integer, where Java rounds toward zero and handles overflow by picking the closest representable value;
  2. subtracting one if the integer is greater than the original input, to always round down;
  3. subtracting that integer from the original input to get a remainder in the interval [0, 1) suitable for interpolation.

It covers an interval of [−231, 231) without causing any problems. The problem is that many of the octaves cover a scale much smaller than a block, with up to 171.103 noise units per block. Indeed, 231≈171.103×12,550,824.053. Once this value is exceeded, the integer will always be 231−1, picking the same noise values on that axis every time. This is the reason for those long unchanging tunnels in the Edge Far Lands, and plains in the Corner Far Lands.

At the positive end the remainder starts out relatively small but usually much larger than 1, and grows by 171.103 per block. At the negative end, the remainder starts at −232. This value is then adjusted by ((6x−15)x+10)x3 for quintic interpolation. Even one block in at the positive end, this is already around 1011. The negative end starts all the way around −1049! For the Corner Far Lands, multiply the values of both edges. When interpolation (really extrapolation) is attempted with values as large as these, it produces similarly large output. That output completely dwarfs all other terms that would normally give the terrain its shape, instead effectively only passing the sign of this one noise function through.

It was fixed by taking the remainder of the input divided by 224. Noise repeats every 28 units anyway, so it has no side effects. But it does prevent the overflow. By removing these instructions, the Far Lands can be returned to current versions of the game.[8]

There are several factors making things slightly more complicated:

  • Noise is only sampled every four blocks and linearly interpolated in between. This is why when 12,550,824 is affected by the bug, it reaches out three more blocks to 12,550,821.
  • Each noise generator picks a random offset in [0, 256) to add to its input. This will usually move the boundary under 12,550,824, starting the Far Lands at 12,550,821. With a few seeds it might not, putting the start at 12,550,825. Very rarely, if the boundary is just barely within 12,550,824, the first couple blocks of the Far Lands might look somewhat normal. The southern and eastern Far Lands do this independently of one another. At the negative end, the Far Lands always start at block coordinate −12,550,825, with the positive edge of those blocks at −12,550,824.
  • There are actually two sets of noise generators, which are blended together based on another noise generator. This is responsible for relatively smooth alternation between two sets of tunnels or plains. Occasionally, one of the noise generators starts generating Far Lands before the other because it uses a different offset, producing an incongruous boundary.
  • A second set of Far Lands starts around ±25,101,648, where another octave overflows. There is no visible change because the original Far Lands dwarf them like everything else.

History

inf
March 27, 2010
{{Extension DPL}}<ul><li>[[Mushroom Stew|Mushroom Stew]]<br/>{{Item
| title = Mushroom Stew
| image = Mushroom Stew.png
| renewable = Yes
| heals = {{hunger|6}}
| stackable = No
}}
'''Mushroom stew''' is a [[food]] item.

== Obtaining ==
=== Harvesting ===
Mushroom stew can be obtained by “milking” a [[mooshroom]] with an empty [[bowl]]. This is accomplished by {{Control|using}} a bowl on a mooshroom. The bowl gets replaced by the mushroom stew item. There is no cooldown for doing so.

If a stack of more than one bowl is used on a mooshroom, only one bowl is consumed, and the mushroom stew goes into an empty inventory slot, or is dropped if the player's inventory is full.

=== Crafting ===
{{Crafting
|Red Mushroom
|Brown Mushroom
|Bowl
|Output= Mushroom Stew
|type= Foodstuff
}}

== Usage ==
=== Food ===
{{see also|Tutorials/Hunger management|title1=Hunger management}}
To eat mushroom stew, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|6}} [[hunger]] and 7.2 hunger 
[[Hunger#Mechanics|saturation]].

The bowl is returned to the player empty after the mushroom stew has been eaten, and can be reused to craft more, similarly to [[Rabbit Stew|rabbit stew]] and [[Beetroot Soup|beetroot soup]].

== Sounds ==
=== Generic ===
{{Sound table/Entity/Food}}
=== Unique ===
{{Edition|Java}}:
{{Sound table
|sound=Mooshroom milk1.ogg
|sound2=Mooshroom milk2.ogg
|sound3=Mooshroom milk3.ogg
|subtitle=Mooshroom gets milked 
|source=neutral
|description=When a mooshroom is milked with a bowl
|id=entity.mooshroom.milk
|translationkey=subtitles.entity.mooshroom.milk
|volume=1.0
|pitch=''varies'' <ref group=sound name=milkpitch>Can be 1.0, 0.9, or 1.1 for each sound</ref>
|distance=16
|foot=1}}

{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|sound=Mooshroom milk1.ogg
|sound2=Mooshroom milk2.ogg
|sound3=Mooshroom milk3.ogg
|subtitle=Mooshroom gets milked 
|source=Friendly Creatures
|description=When a mooshroom is milked with a bowl
|id=mob.mooshroom.suspicious_milk
|volume=1.0/0.9/1.1
|pitch=1.0
|foot=1}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Mushroom Stew
|spritetype=item
|nameid=mushroom_stew
|id=260
|form=item
|foot=1}}

== Advancements ==
{{load advancements|Husbandry;A Balanced Diet}}

== History ==
{{History|java indev}}
{{History||0.31|snap=20100130|[[File:Mushroom Stew JE1 BE1.png|32px]] Added mushroom stew.
|Restores {{hp|8}} [[health]].}}
{{History||20100206|Mushroom stew now restores {{hp|10}} health.}}
{{History|java beta}}
{{History||1.6|snap=Test Build 3|[[Mushroom]] spreading mechanic added, making mushroom stew [[renewable]].}}
{{History||1.8|snap=Pre-release|Now restores {{hunger|8}} [[hunger]].}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease|More fungi sources have now been introduced with the addition of the [[Mushroom Fields|mushroom biome]]. 
|A [[mooshroom]] can now be "milked" with a [[bowl]] to obtain mushroom stew.}}
{{History|||snap=Beta 1.9 Prerelease 3|Mushroom stew can now be crafted in the [[2×2 crafting grid]] in the [[inventory]]. Previously, the crafting recipe was shaped, now it's shapeless.}}
{{History||1.2.5|snap=release|The [[player]] milking a [[mooshroom]] with a stack of [[bowl]]s no longer results in receiving back a single bowl of mushroom stew.}}
{{History||1.4.2|snap=?|Mushroom stew now restores {{Hunger|6}} instead of {{Hunger|8}}.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 282.}}
{{History||1.14|snap=18w43a|[[File:Mushroom Stew JE2 BE2.png|32px]] The texture of mushroom stew has now been changed.}}
{{History||1.16|snap=Pre-release 1|Mooshrooms can now be milked for mushroom stew in Creative mode.<ref>{{Cite bug|MC|90969|Cannot get mushroom stew from mooshrooms / milk from cows in creative mode|date=October 19, 2015}}</ref>}}

{{History|pocket alpha}}
{{History||v0.4.0|[[File:Mushroom Stew JE1 BE1.png|32px]] Added mushroom stew.}}
{{History||v0.5.0|Mushroom stew now restores {{hp|8}} instead of {{hp|4}}.}}
{{History||v0.9.0|snap=build 1|A mooshroom can now be "milked" with a [[bowl]] to obtain mushroom stew.}}
{{History||v0.12.1|snap=build 1|Mushroom stew now restores [[hunger]] instead of [[health]].}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Mushroom Stew JE2 BE2.png|32px]] The texture of mushroom stew has now been changed.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|switch=1.0.1|wiiu=Patch 1|[[File:Mushroom Stew JE1 BE1.png|32px]] Added mushroom stew.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Mushroom Stew JE2 BE2.png|32px]] The texture of mushroom stew has now been changed.}}

{{History|new3ds}}
{{History||0.1.0|[[File:Mushroom Stew JE1 BE1.png|32px]] Added mushroom stew.}}
{{History|foot}}

== Issues ==
{{Issue list}}

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--mushroom-stew Taking Inventory: Mushroom Stew] – Minecraft.net on September 1, 2022

{{items}}

[[de:Pilzsuppe]]
[[es:Estofado de champiñones]]
[[fr:Soupe de champignons]]
[[hu:Gombaragu]]
[[ja:キノコシチュー]]
[[ko:버섯 스튜]]
[[nl:Paddenstoelenstoofpot]]
[[pl:Zupa grzybowa]]
[[pt:Ensopado de cogumelos]]
[[ru:Тушёные грибы]]
[[zh:蘑菇煲]]
[[Category:Food]]
[[Category:Renewable resources]]
<references /></li><li>[[Steak|Steak]]<br/>{{Item
| title = Steak
| image = Steak.png
| renewable = Yes
| heals = {{hunger|8}}
| stackable = Yes (64)
}}

'''Steak''' ({{in|java}}) or '''cooked beef''' ({{in|bedrock}}) is a [[food]] [[item]] obtained from [[cow]]s, [[mooshroom]]s, or from cooking [[raw beef]].

== Obtaining ==

=== Mob loot ===

==== Cows ====

When a [[cow]] or [[mooshroom]] is killed, it drops [[raw beef]]. If a cow dies while on fire, it drops steak instead. If the cow is killed using a weapon with the [[Looting]] enchantment, the maximum number of steak drops increases by 1 per level.

=== Cooking ===

Raw beef can be cooked in a [[furnace]], [[smoker]], or [[campfire]]. Each steak removed from a furnace output slot gives 0.35 [[experience]] (22.4 experience per stack).
{{Smelting
|Raw Beef
|Steak
|0,35
}}

=== Villager gifts ===
{{IN|java}}, butcher [[Villager|villagers]] may give players steak if they have the [[Hero of the Village]] status effect.

== Usage ==

=== Food ===

To eat steak, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|8}} [[hunger]] and 12.8 hunger 
[[saturation]]. 

=== Wolves ===

Steak can be used to [[breed]] and heal tamed [[wolves]], lead them around, and make baby tamed wolves grow up faster by 10% of the remaining time.

==Sounds==
{{Sound table/Entity/Food}}

== Data values ==

=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Steak
|spritetype=item
|nameid=cooked_beef
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Cooked Beef
|spritetype=item
|nameid=cooked_beef
|id=274
|form=item
|foot=1}}

== Advancements ==
{{load advancements|Husbandry;A Balanced Diet}}

== History ==

{{History|java beta}}
{{History||1.8|snap=Pre-release|[[File:Steak JE1 BE1.png|32px]] Added steak.
|Steak has been introduced as the cooked result of [[raw beef]].
|Steak is a new [[food]] [[item]] dropped by [[cow]]s in addition to their [[leather]]. 
|The icon for steak is used as the image for the [[cooked porkchop]] before [[Java Edition Beta 1.8|Beta 1.8]], as the cooked porkchop's icon was updated to a lighter colored piece of meat.}}
{{History|java}}
{{History||1.2.1|snap=12w03a|Steak can now be used to [[breed]] [[wolves]].}}
{{History||1.3.1|snap=12w21a|Steak can now be [[trading|bought]] from butcher [[villager]]s, at 6–7 steak for 1 [[emerald]].}}
{{History|||snap=1.3|[[File:Steak JE2.png|32px]] The texture of steak has been changed.}}
{{History||1.4.2|snap=12w37a|[[File:Steak JE3 BE2.png|32px]] The texture of steak has been changed, so that it no longer has a dark outline.}}
{{History||1.8|snap=14w02a|[[Villager]]s no longer [[trade]] steak.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 364.}}
{{History||1.14|snap=18w43a|[[File:Steak JE4 BE3.png|32px]] The texture of steak has been changed.}}
{{History|||snap=19w13a|Butcher villagers now give steak to players under the [[Hero of the Village]] effect.}}

{{History|pocket alpha}}
{{History||v0.4.0|[[File:Steak JE1 BE1.png|32px]] Added steak.}}
{{History||v0.5.0|Steak now restores {{hp|8}} instead of {{hp|4}}.}}
{{History||v0.8.0|snap=build 1|[[File:Steak JE3 BE2.png|32px]] The texture of steak has been changed, so that it no longer has a dark outline.}}
{{History||v0.12.1|snap=build 1|Steak now restores [[hunger]] instead of [[health]].}}
{{History||v0.16.0|snap=build 4|"Steak" has been renamed to "Cooked Beef."}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Steak JE4 BE3.png|32px]] The texture of cooked beef has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Cooked beef can now be [[trading|bought]] from butcher [[villager]]s.}}

{{History|console}}
{{History||xbox=TU5|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Steak JE1 BE1.png|32px]] Added steak.}}
{{History||xbox=TU12|[[File:Steak JE3 BE2.png|32px]] The steak's texture has been changed, so that it no longer has a dark outline.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Steak JE4 BE3.png|32px]] The texture of steak has been changed.}}

{{History|new3DS}}
{{History||0.1.0|[[File:Steak JE3 BE2.png|32px]] Added steak.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Gallery ==
<gallery>
Jeb steak.png|Raw beef and steak shown in the [[inventory]] from a preview screenshot.
Eating Steak.png|A still frame of the player eating a steak.
Steak SDGP.png|Steak in the [[Super Duper Graphics Pack]].
</gallery>

== Notes ==
{{fnlist}}

{{Items}}

[[cs:Propečený steak]]
[[de:Steak]]
[[es:Filete asado]]
[[fr:Steak]]
[[hu:Steak]]
[[it:Bistecca]]
[[ja:ステーキ]]
[[ko:스테이크]]
[[nl:Biefstuk]]
[[pl:Befsztyk]]
[[pt:Filé]]
[[ru:Жареная говядина]]
[[tr:Biftek]]
[[uk:Стейк]]
[[zh:牛排]]
[[Category:Food]]
[[Category:Renewable resources]]</li></ul>
First confirmed appearance of the Far Lands.
a
1.2.0
{{Extension DPL}}<ul><li>[[Block Inspector|Block Inspector]]<br/>{{MinecraftEdu feature}}
{{stub}}

{{Item
| image = BlockInspector.png
| stackable = No {{verify}}
}}

'''Block Inspector''' is an item used to display the name of the block the player is looking at on screen.

== Data values ==
{{ID table
|generatetranslationkeys=java
|displayname=Block Inspector
|spritetype=item
|nameid=block_inspector|foot=1}}

==History==
{{History|MinecraftEDU}}
{{History||0.9848|[[File:BlockInspector.png|32px]] Added block inspectors.}}
{{History|foot}}

{{Items}}</li><li>[[:Category:Minecraft: Story Mode items|Category:Minecraft: Story Mode items]]<br/>[[Category:Minecraft: Story Mode]]
[[Category:Items]]</li></ul>
Beyond X/Z of ±32,000,000, phantom chunks generate that can be fallen through. Previously, no blocks were rendered beyond this point, and players were stuck there.
b
1.6
{{Extension DPL}}<ul><li>[[Milk Bucket|Milk Bucket]]<br/>{{Item
| title=Milk Bucket
| image = Milk Bucket.png
| renewable = Yes
| effects = Clears all
| stackable = No
}}
A '''milk bucket'''{{fn|Known as '''Milk Bucket''' {{in|java}} and '''Milk''' {{in|bedrock}}.}} is a [[drink]] obtained from {{Control|use|text=using}} a [[bucket]] on [[cow]]s, [[mooshroom]]s and [[goat]]s that can be consumed to clear all [[Effect|effects]].

== Obtaining ==

=== Harvesting ===
Milk buckets can be obtained from [[cow]]s, [[mooshroom]]s, and [[goat]]s by pressing {{control|use}} while looking at them with an empty [[bucket]].

=== Mob loot ===
A milk bucket has a chance of dropping from a [[wandering trader]], if the trader is killed while holding it.{{only|java}}

== Usage ==

Holding {{control|use}} with a milk bucket starts the drinking sound and animation. {{IN|java}}, the animation is shown only in first-person camera mode.

When consumed, milk immediately removes all status [[effect]]s from the [[player]]. [[Fire]] is not a status effect; therefore, drinking milk doesn't extinguish a burning player.

The benefits of area status effects granted by [[beacon]]s and [[Conduit Power|conduit power]] are restored almost immediately in Bedrock Edition and after a few seconds in ''Java Edition''.

=== Crafting ingredient ===

{{crafting usage|Milk Bucket}}

== Sounds ==
{{el|je}}:
{{Sound table
|sound=Drink.ogg
|subtitle=Sipping
|source=player
|description=While a player is drinking milk
|id=entity.generic.drink
|translationkey=subtitles.entity.generic.drink
|volume=0.5
|pitch=0.9-1.0
|distance=16}}
{{Sound table
|sound=Cow milk1.ogg
|sound2=Cow milk2.ogg
|sound3=Cow milk3.ogg
|source=player
|subtitle=Cow gets milked
|description=When a cow is milked
|id=entity.cow.milk
|translationkey=subtitles.entity.cow.milk
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Mooshroom milk1.ogg
|sound2=Mooshroom milk2.ogg
|sound3=Mooshroom milk3.ogg
|subtitle=Goat gets milked
|description=When a regular goat is milked
|source=neutral
|id=entity.goat.milk
|translationkey=subtitles.entity.goat.milk
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Goat screaming milk1.ogg
|sound2=Goat screaming milk2.ogg
|sound3=Goat screaming milk3.ogg
|sound4=Goat screaming milk4.ogg
|sound5=Goat screaming milk5.ogg
|subtitle=Goat gets milked
|description=When a screaming goat is milked
|source=neutral
|id=entity.goat.screaming.milk
|translationkey=subtitles.entity.goat.milk
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Wandering trader drink milk1.ogg
|sound2=Wandering trader drink milk2.ogg
|sound3=Wandering trader drink milk3.ogg
|sound4=Wandering trader drink milk4.ogg
|sound5=Wandering trader drink milk5.ogg
|subtitle=Wandering Trader drinks milk
|source=neutral
|description=While a wandering trader is drinking milk to become visible during daytime
|id=entity.wandering_trader.drink_milk
|translationkey=subtitles.entity.wandering_trader.drink_milk
|volume=0.5
|pitch=0.9-1.0
|distance=16
|foot=1}}

{{el|be}}:
{{Sound table
|type=bedrock
|sound=Drink.ogg
|source=player
|description=While a player is drinking milk
|id=random.drink
|volume=0.35
|pitch=0.9-1.1}}
{{Sound table
|sound=Cow milk1.ogg
|sound2=Cow milk2.ogg
|sound3=Cow milk3.ogg
|source=neutral
|description=When a cow is milked
|id=mob.cow.milk
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Mooshroom milk1.ogg
|sound2=Mooshroom milk2.ogg
|sound3=Mooshroom milk3.ogg
|description=When a regular goat is milked
|source=neutral
|id=mob.mooshroom.suspicious_milk
|volume=1.0
|pitch=1.0/0.9/1.1}}
{{Sound table
|sound=Goat screaming milk1.ogg
|sound2=Goat screaming milk2.ogg
|sound3=Goat screaming milk3.ogg
|sound4=Goat screaming milk4.ogg
|sound5=Goat screaming milk5.ogg
|description=When a screaming goat is milked
|source=neutral
|id=mob.goat.milk.screamer
|volume=1.0
|pitch=1.0}}
{{Sound table
|sound=Wandering trader drink milk1.ogg
|sound2=Wandering trader drink milk2.ogg
|sound3=Wandering trader drink milk3.ogg
|sound4=Wandering trader drink milk4.ogg
|sound5=Wandering trader drink milk5.ogg
|source=neutral
|description=While a wandering trader is drinking milk to become visible during daytime
|id=mob.wanderingtrader.drink_milk
|volume=1.0
|pitch=0.8-1.2
|foot=1}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Milk
|spritetype=item
|nameid=milk_bucket
|aliasid=bucket / 1
|id=361
|form=item
|translationkey=item.milk.name
|foot=1}}

== Achievements ==
{{load achievements|The Lie}}

== Advancements ==
{{Load advancements|Husbandry}}

== Video ==

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

== History ==

{{History|java alpha}}
{{History||v1.0.8|[[File:Milk Bucket JE1 BE1.png|32px]] Milk has been introduced, but it has no purpose and is obtainable only through inventory editing.}}
{{History||v1.0.11|Milk can now be obtained by {{control|use|text=milking}} a [[cow]] with a [[bucket]]. However, it is not yet drinkable.}}
{{History||v1.0.17|Milk buckets can now be emptied.}}
{{History|java beta}}
{{History||1.2|Milk has been incorporated into the [[crafting]] recipe of [[cake]].}}
{{History||1.2_01|[[Squid]] can now be milked by right-clicking on their mouth if part of their body was exposed to [[air]] or if they were not touching another [[block]]. An easy way to accomplish this is to pull a squid with a [[fishing rod]] away from other blocks and then milk it.}}
{{History||1.3_01|Squid milking has been removed.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease|Milk can now be obtained by milking [[mooshroom]]s.}}
{{History|||snap=Beta 1.9 Prerelease 2|Milk has been made drinkable.
|According to a tweet by [[Jeb]] on September 30th 2011, milk was made a cure for all status effects.<ref>{{tweet|jeb_|119842906528944129|@Nexusdog_UK I haven't! In beta 1.9 pre2 milk works like a clear-everything drink|September 30, 2011}}</ref>
|Milk is no longer emptiable.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 335.}}
{{History|||snap=18w20a|"Milk" has been renamed to "Milk Bucket".}}
{{History||1.14|snap=18w43a|[[File:Milk Bucket JE2 BE2.png|32px]] The texture of milk buckets has been changed.}}
{{History||1.14|snap=19w06a|[[Wandering trader]]s now drink from milk buckets at dawn, and have a change to drop them.}}
{{History||1.17|snap=21w13a|Milk can now be obtained by milking [[goat]]s.}}
{{History|upcoming java}}
{{History||Villager Trade Rebalance<br>(Experimental)|link=Java Edition 1.20.2|snap=23w31a|Wander traders now have a chance to [[trading|buy]] a milk bucket from the player.}}

{{History|pocket alpha}}
{{History||v0.7.0|[[File:Milk Bucket JE1 BE1.png|32px]] Added milk buckets. 
|Milk buckets are not yet drinkable.}}
{{History||v0.11.0|snap=build 4|Drinking milk now removes [[status effects]].
|Added milk buckets to the Creative inventory.{{verify|type=update}}{{info needed}}<!---same update?--->}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Moved all bucket items, including milk, from the Equipment tab to the Items tab in the [[Creative inventory]].{{verify|type=update}}{{info needed}}<!---please check snapshots, only 1 major release version was checked each--->}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Milk Bucket JE2 BE2.png|32px]] The texture of milk buckets has been changed.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of milk has been changed from <code>bucket/1</code> to <code>milk_bucket</code>.}}
{{History||1.16.200|snap=beta 1.16.200.52|Milk can now be obtained by milking [[goat]]s.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Milk Bucket JE1 BE1.png|32px]] Added milk buckets.}}
{{History|Ps4}}
{{History||1.90|[[File:Milk Bucket JE2 BE2.png|32px]] The texture of milk buckets has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Milk Bucket JE1 BE1.png|32px]] Added milk buckets.}}
{{History|foot}}

== Issues ==
{{issue list}}

== See also ==
*[[Water Bucket]]
*[[Lava]]
*[[Food]]
*[[Cake]]
*[[Honey Bottle]] (alternative to remove poison effect)
*[[Medicine]]

== Notes ==
{{fnlist}}

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--milk-bucket Taking Inventory: Milk Bucket] – Minecraft.net on October 8, 2019

{{Items}}

[[Category:Food]]
[[Category:Renewable resources]]
[[Category:Tools]]

[[cs:Mléko]]
[[de:Milcheimer]]
[[es:Cubo con leche]]
[[fr:Seau de lait]]
[[hu:Tej]]
[[it:Secchio di latte]]
[[ja:ミルク入りバケツ]]
[[ko:우유 양동이]]
[[nl:Emmer melk]]
[[pl:Wiadro mleka]]
[[pt:Balde de leite]]
[[ru:Ведро с молоком]]
[[th:ถังนม]]
[[uk:Відро молока]]
[[zh:奶桶]]</li><li>[[String|String]]<br/>{{Block
| image = <gallery>
String JE2 BE2.png  | String
Tripwire (NESW).png | Tripwire
</gallery>
| extratext = View [[#Gallery|all renders]]
| transparent = Yes
| light = No
| tool = any
| renewable = Yes
| stackable = Yes (64)
| flammable = No
| lavasusceptible = No
}}
'''String''' is an item used in [[crafting]] recipes such as [[bow]]s, [[fishing rod]]s and [[lead]]s. When placed as a [[block]], string becomes '''tripwire''', which can be combined with [[Tripwire Hook|tripwire hooks]] to form a tripwire circuit.

== Obtaining==
String can be obtained from [[drop]]s, breaking [[cobweb]]s, [[fishing]], [[bartering]], and as gifts from [[cat]]s. String can be looted from [[jungle temple]]s, [[desert pyramid]] chests, and [[dungeon]]s.

===Breaking ===
Tripwire can be {{control|mine|text=mined}} instantly with any [[tool]], dropping string. Tripwire is also removed and drops string as an [[item]] when:
*[[Water]] flows into its space
* A [[piston]] pushes it or moves a [[block]] into its space
Tripwire is destroyed without dropping string if [[lava]] flows into its space.

A [[cobweb]] drops string when it is broken in these ways (see also {{section link|Cobweb|Usage}}):
*Breaking a cobweb with a [[sword]]
*Pushing a cobweb with a [[piston]]
*[[Water]] breaking a cobweb by flowing over it (flowing [[lava]] destroys cobwebs without leaving string)

===Natural generation===
Five pieces of tripwire generate naturally in every [[jungle temple]]. 

===Mob loot ===
[[Spider]]s and [[cave spider]]s drop 0–2 string upon death. The maximum is increased by 1 per level of [[Looting]], for a maximum of 0–5 string with Looting III.

[[Strider]]s drop 2–5 string upon death. The maximum is increased by 1 per level of [[Looting]], for a maximum of 2–8 string with Looting III.{{only|Java|short=1}}

[[Cat]]s drop 0–2 string upon death, unaffected by Looting.<ref>{{bug|MC-200707||Looting does not increase drops for iron golems and cats}}</ref>

===Chest loot===
{{LootChestItem|string}}

===Fishing===
String has a 0.6% ({{frac|3|500}}) chance of being caught when [[fishing]] with an unenchanted fishing rod. The chance decreases to 0.5% ({{frac|1|200}}), 0.4% ({{frac|1|250}}), and 0.3% ({{frac|3|1000}}) if the fishing rod is enchanted with [[Luck of the Sea]] at enchantment levels I, II, and III, respectively.

===Cat gifts===
{{main|Cat#Gifts}}

Tamed [[cat]]s have a 70% chance of giving the [[player]] a gift when they wake up from a [[bed]], and the gift has a 16.13% chance to be a string.

===Bartering ===
[[Piglin]]s may [[barter]] 3-9 string when given a [[gold ingot]].

== Usage==
String can be used as a crafting ingredient and tripwire can be used as a [[redstone circuit]] component. It can also be used to keep [[player]]s from ender-pearling through that space.

=== Crafting ingredient===
{{crafting usage}}

===Redstone component===
{{redirect|Tripwire|tripwire hooks|Tripwire Hook}}
{{see also|Redstone circuits}}

String can be placed as tripwire, which can be used to detect [[entity|entities]] as part of a tripwire circuit. [[Observer]]s can also be used with a tripwire to generate redstone signals. 

;Placement

To place tripwire, {{control|use}} string while pointing at a surface facing the space the tripwire should occupy.

{{Schematic | caption =
'''Tripwire Circuit'''
|SB|th-$w|tw-$ew|th-$e|SB
}}
:In order to activate [[tripwire hook]]s, tripwire must be part of a "tripwire circuit": a straight line of [[block]]s consisting of a block with a tripwire hook attached to it, a "tripwire line" (1 to 40 blocks of tripwire), and a second tripwire hook attached to another block. 

;Activation
Tripwire activates if almost any [[entity]] ([[player]]s, [[mob]]s, [[minecart]]s, [[boat]]s, [[item]]s, [[arrow]]s, etc.) intersects its collision mask. The tripwire remains active until there are no entities intersecting its collision mask. Thrown [[potion]]s, some arrows, thrown [[ender pearl]]s, and thrown [[eyes of ender]] do not activate tripwire.

;Behavior
An active tripwire updates adjacent [[block]]s (for example, it can activate a [[Tutorials/Block update detector|BUD circuit]]). Additionally, active tripwires that are part of valid tripwire circuits cause the attached tripwire hooks to activate (producing [[redstone]] power). Active tripwires do ''not'' themselves produce redstone power.

When tripwire is broken (including by being washed away by spreading [[water]] {{in|java}}) after being part of a valid tripwire circuit, it activates the attached tripwire hooks. {{IN|JE}}, it activates for 5 redstone ticks (10 game [[tick]]s, or 0.5 seconds barring lag). {{IN|BE}}, it activates for 6 redstone ticks (14 game [[tick]]s, or 0.6 seconds barring lag). It does not produce the signal if it is broken using [[shear]]s.

===Trading===
Novice-level fisherman [[villager]]s have a 50% chance to buy 20 string as part of their first-tier trade.

Journeyman-level fletcher villagers buy 14 string for 1 [[emerald]] as part of their trade.

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

===Unique===
{{edition|java}}:
{{Sound table
|rowspan=3
|sound=Click.ogg
|subtitle=Tripwire attaches
|source=block
|description=When a tripwire line is completed
|id=block.tripwire.attach
|translationkey=subtitles.block.tripwire.attach
|volume=0.4
|pitch=0.7
|distance=16}}
{{Sound table
|subtitle=Tripwire clicks
|source=block
|description=When a tripwire line deactivates
|id=block.tripwire.click_off
|translationkey=subtitles.block.tripwire.click
|volume=0.4
|pitch=0.5
|distance=16}}
{{Sound table
|subtitle=Tripwire clicks
|source=block
|description=When a tripwire line activates
|id=block.tripwire.click_on
|translationkey=subtitles.block.tripwire.click
|volume=0.4
|pitch=0.6
|distance=16}}
{{Sound table
|sound=Arrow hit1.ogg
|sound2=Arrow hit2.ogg
|sound3=Arrow hit3.ogg
|sound4=Arrow hit4.ogg
|subtitle=Tripwire detaches
|source=block
|description=When a tripwire hook in a tripwire line is destroyed
|id=block.tripwire.detach
|translationkey=subtitles.block.tripwire.detach
|volume=0.4
|pitch={{frac|12|11}}-{{frac|4|3}}
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|rowspan=3
|sound=Click.ogg
|source=block
|description=When a tripwire line is completed
|id=block.click
|volume=0.2
|pitch=0.7}}
{{Sound table
|type=bedrock
|source=block
|description=When a tripwire line deactivates
|id=random.click
|volume=0.2
|pitch=0.5}}
{{Sound table
|source=block
|description=When a tripwire line activates
|id=random.click
|volume=0.2
|pitch=0.6}}
{{Sound table
|sound=Arrow hit1.ogg
|sound2=Arrow hit2.ogg
|sound3=Arrow hit3.ogg
|sound4=Arrow hit4.ogg
|source=block
|description=When a tripwire hook in a tripwire line is destroyed
|id=block.bowhit
|volume=0.4
|pitch=1.1-1.33
|foot=1}}

==Data values==
===ID===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Tripwire
|spritetype=block
|nameid=tripwire
|blocktags=wall_post_override
|form=block}}
{{ID table
|displayname=String
|spritetype=item
|nameid=string
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showaliasids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Tripwire
|spritetype=block
|nameid=trip_wire
|aliasid=tripWire
|id=132
|form=block
|itemform=trip_wire
|translationkey=tile.tripWire.name}}
{{ID table
|displayname=String
|spritetype=item
|nameid=string
|id=326
|form=item
|foot=1}}

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

{{/BS}}

==Video==
<div style="text-align:center">
<span style="display:inline-block">{{yt|WUlhmu3JbcQ}}</span>
<span style="display:inline-block">{{yt|-7jEtrETxwc}}</span>
</div>

==History==
{{History|java indev}}
{{History||0.31|snap=20100129|[[File:String JE1 BE1.png|32px]] Added string.}}
{{History|||snap=20100130|[[Bow]]s can now be [[crafting|crafted]] using string.}}
{{History|||snap=20100201-2|[[Wool|Cloth]] can now be crafted using nine string.}}
{{History||20100219|[[Spider]]s now [[drops|drop]] string.}}
{{History|java infdev}}
{{History||20100625-2|String can now be found inside [[chest]]s in the new [[dungeon]]s.}}
{{History|java alpha}}
{{History||v1.1.1|String can now be used to craft [[fishing rod]]s.}}
{{History|java beta}}
{{History||1.5|Introduced [[cobweb]]s, which [[drops|drop]] string when [[breaking|broken]] with a [[sword]].}}
{{History||1.6.6|Wool is now crafted from four string rather than nine.}}
{{History||1.7|Cobwebs now drop string when broken using [[shears]].}}
{{History||1.8|snap=Pre-release|Cobwebs now generate naturally, making them a viable method to obtain string.}}
{{History|java}}
{{History||May 28, 2012|link=none|Tripwire was first revealed on [[Dinnerbone]]'s [[wikipedia:Twitter|Twitter]].<ref>{{tweet|Dinnerbone|207154562711289856|It's a tripwire, yeah.|May 28, 2012}}</ref><ref>{{tweet|Dinnerbone|207155073023868928|You place it yourself. String is now placeable|May 28, 2012}}</ref> Dinnerbone released a [{{ytl|mWuvXIzYcTc}} video] showing him experimenting with tripwire before its release.}}
{{History||1.3.1|snap=12w22a|String can now be placed on the ground as tripwire.}}
{{History|||snap=12w23a|Tripwire can now activated by most [[entity|entities]] (including [[arrow]]s).
|The max distance of tripwire has now been increased from 18 to 40 [[block]]s.
|Tripwire now has a translucent texture.}}
{{History||1.6.1|snap=13w18a|String can now be used to craft [[lead]]s.}}
{{History||1.8|snap=14w02a|String can now be [[trading|sold]] to fletcher and fisherman [[villager]]s, at 15–20 string for 1 [[emerald]].}}
{{History|||snap=release|Tripwire is now translucent.}}
{{History||1.9|snap=15w44a|String now generates in [[desert temple]] [[chest]]s.
|The average yield of string in [[dungeon]] chests has now more than doubled.}}
{{History|||snap=15w49a|The <code>suspended</code> block state has now been removed from tripwire.}}
{{History||1.11|snap=16w39a|String can now be found in [[woodland mansion]] [[chest]]s.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 132 and the [[item]]'s was 287.
|Tripwire can now be disarmed.}}
{{History||1.14|snap=18w43a|String can now be used to craft [[crossbow]]s and a [[loom]].
|[[File:String JE2 BE2.png|32px]] The texture of string has now been changed.}}
{{History|||snap=18w44a|[[Cat]]s now drop 0-2 string upon death.
|Cats now offer string as [[Cat#Gifts|gift]]s.}}
{{History|||snap=18w45a|String can now be used to craft [[scaffolding]].}}
{{History|||snap=18w47a|String can now be found inside [[pillager outpost]] [[chest]]s.}}
{{History||1.16|snap=20w09a|String can now be obtained through [[bartering]] with [[piglin]]s.}}
{{History|||snap=20w13a|[[Strider]]s now [[drops|drop]] string upon [[death]].}}
{{History|||snap=20w16a|String now generates in [[bastion remnant]] chests.}}
{{History||1.17|snap=20w45a|String can now be used to craft [[bundle]]s and [[candle]]s.}}
{{History|||snap=21w13a|The model of the tripwire has been tweaked that the underside texture is mirrored.}}
{{History|||snap=21w19a|String can no longer be used to craft bundles and candles.}}
{{History|||snap=Pre-release 1|String can once again used to craft candles.}}
{{History||1.18|snap=Experimental Snapshot 1|String can now once again be used to craft bundles.}}
{{History|||snap=21w37a|String once again can no longer be used to craft bundles.}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|String can now once again be used to craft bundles.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w07a|String can now be used to craft [[brush]]es.}}
{{History|||snap=1.19.4-pre1|String can no longer be used to craft [[brush]]es.}}
{{History||1.20|snap=23w12a|String can now be found in [[suspicious gravel]] and [[suspicious sand]] in [[trail ruins]].}}
{{History|||snap=23w16a|String no longer generates in [[suspicious sand]] in [[trail ruins]].|Due to the split of the archaeological loot tables for the suspicious gravel within the [[trail ruins]]; string now is in the common loot.}}

{{History|pocket alpha}}
{{History||v0.2.0|[[File:String JE1 BE1.png|32px]] Added string. It is currently unobtainable and serves no purpose.}}
{{History||v0.3.3|Added spiders, which drop string when they die.
|String can now be used to [[crafting|craft]] [[bow]]s.}}
{{History||v0.4.0|String can now be crafted into [[wool]].}}
{{History||v0.11.0|snap=build 1|String can now be used to craft [[fishing rod]]s.
|String can now be caught as a junk [[item]] from [[fishing]].}}
{{History||v0.13.0|snap=build 1|String can now be placed on the ground as a tripwire.
|String can now be found in [[desert temple]] [[chest]]s.}}
{{History||v0.15.0|snap=build 1|String can now be used to craft [[lead]]s.
|Tripwire now generates in [[jungle temple]]s.}}
{{History|pocket}}
{{History||1.0.4|snap=alpha 1.0.4.0|15-20 String can now be [[trading|sold]] to fletcher and fisherman [[villager]]s for an [[emerald]].}}
{{History||1.1.0|snap=alpha 1.1.0.0|String can now be found in [[woodland mansion]] [[chest]]s.
|[[Cobweb]]s can now be used to [[crafting|craft]] 9 string.}}
{{History|bedrock}}
{{History||1.8.0|snap=beta 1.8.0.8|Tamed [[cat]]s can now give the [[player]] string as gifts.
|String can now be used to craft [[scaffolding]].
|[[Cat]]s now [[drops|drop]] 0–2 string.}}
{{History|||snap=beta 1.8.0.10|String can now be used to craft [[crossbow]]s.}}
{{History||1.9.0|snap=beta 1.9.0.0|Tripwire string that is broken now activates, unless broken with [[shears]].}}
{{History||1.10.0|snap=beta 1.10.0.3|String can now be found in [[pillager outpost]] chests.
|String can now be used to craft a [[loom]].
|[[File:String JE2 BE2.png|32px]] The texture of string has now been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|[[Trading]] has now been changed, fisherman [[villager]]s now have a 50% chance to [[trading|buy]] 20 string as part of their first-tier trade.
|Fletcher villagers now buy 14 string for an [[emerald]] as their third-tier trade.}}
{{History||1.16.0|snap=beta 1.16.0.57|String can now be obtained through [[bartering]] with [[piglin]]s.
|Added [[strider]]s, which [[drops|drop]] string upon [[death]].
|String can now be found in [[bastion remnant]] chests.}}
{{History||1.17.10|snap=beta 1.17.10.22|String can now be used to craft [[candles]].}}
{{History||1.18.30|snap=beta 1.18.30.26|The ID of tripwire block is changed from <code>tripWire</code> to <code>trip_wire</code>}}
{{History||1.20.10|snap=beta 1.20.10.20|String can no longer be crafted from cobwebs.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:String JE1 BE1.png|32px]] Added string.}}
{{History||xbox=TU14|ps=1.04|String can now be placed on the ground as [[tripwire]].}}
{{History||xbox=none|xbone=none|ps=1.88|wiiu=none|switch=none|Tripwires are now activated when [[breaking|broken]], unless broken with [[shears]].}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:String JE2 BE2.png|32px]] The texture of string has now been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:String JE1 BE1.png|32px]] Added string.}}
{{History|foot}}

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

== Issues ==
{{Issue list}}

== Gallery ==
<gallery>
Tripwire (NS).png|
Tripwire (N).png|
Tripwire (E).png|
Tripwire (S).png|
Tripwire (W).png|
Tripwire (EW).png|
Tripwire (NE).png|
Tripwire (ES).png|
Tripwire (SW).png|
Tripwire (NW).png|
Tripwire (ESW).png|
Tripwire (NSW).png|
Tripwire (NEW).png|
Tripwire (NES).png|
</gallery>

=== Screenshots ===
<gallery>
DinnerboneTripwireDev3.png|The first image of tripwires [[dinnerbonetweet:207154292593917952|released]] by Mojang.
DinnerboneTripwireDev4.png|An image [[dinnerbonetweet:207294114398605312|released]] by Mojang testing visibility of tripwires from a distance at night.
DinnerboneTripwireDev5.png|The same room viewed from the same angle, in daytime.
Dinnerbone String.png|Power lines made of suspended string blocks.
</gallery>

==References==
{{Reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--string Taking Inventory: String] – Minecraft.net on May 14, 2020

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

[[Category:Redstone mechanics]]
[[Category:Mechanics]]
[[Category:Mechanisms]]
[[Category:Generated structure blocks]]
[[Category:Non-solid blocks]]

[[cs:Vlákno]]
[[de:Faden]]
[[es:Hilo]]
[[fr:Ficelle]]
[[hu:Fonál]]
[[it:Cordicella]]
[[ja:糸]]
[[ko:실]]
[[nl:Draad]]
[[pl:Nić]]
[[pt:Linha]]
[[ru:Нить]]
[[th:เส้นใย]]
[[uk:Нитка]]
[[zh:线]]</li></ul>
The Far Lands ceiling is unchanged as Beta 1.6 eliminates ability to normally place blocks at Y of 127.
1.8
{{Extension DPL}}<ul><li>[[Boat with Chest|Boat with Chest]]<br/>{{ItemEntity
|image=Oak Boat with Chest.png
|extratext = View [[#Gallery|all renders]]
|stackable=No
|renewable=Yes
|flammable=Yes
|size='''{{IN|Java}}:'''<br>
Height: 0.5625 Blocks<br>Width: 1.375 Blocks<br>
'''{{IN|Bedrock}}:'''<br>
Height: 0.455 Blocks<br>Width: 1.4 Blocks

|networkid='''[[JE]]''': 1
}}
{{for|other kinds of boats|Boat (disambiguation)}}

A '''boat with chest''' is a single [[chest]] occupying the passenger seat of a [[boat]], and functions as such. As it can still be driven it can be used to transport [[item]]s over bodies of water.

== Obtaining ==
A boat with chest can be directly retrieved by attacking it, as it drops itself in item form, along with its contents.

[[Tool]]s and [[weapon]]s with damage above 4 can instantly destroy a boat with chest in one hit.{{only|Java}}

=== Crafting ===
{{Crafting
|head= 1
|Chest
|Matching Boat
|Output= Matching Boat with Chest
|type= Transportation
|foot= 1
}}

== Usage ==
A boat with chest can be used for the transportation of players, mobs and items, or as fuel when [[smelting]].

=== Fuel ===
A boat with chest can be used as fuel in a [[furnace]], it lasts 60 seconds, smelting up to 6 items.

=== Transportation ===
{{main|Boat#Transportation}}

Boats with chests can carry only one entity while regular boats can carry up to two.

== Behavior ==
[[File:All boats with chests.png|alt=This photo shows all the types of boats with chests.|thumb|240px|All types of boats with chests.]]
{{main|Boat#Behavior}}
Boats with chests share most behaviors with boats.

=== Item storage ===
[[File:Boat with Chest GUI.png|thumb|176px|The GUI of a boat with chest.]]
The inventory of the boat with chest has the same amount of slots as a single chest. Its inventory can be accessed by {{Control|Sneak|text=sneaking}} and {{Control|interact|text=interacting}} with the boat with chest, {{control|interact|text=interacting}} with the part of the boat with chest that actually contains the chest while another player or entity is inside the boat, or by opening the player's {{Control|inventory}} while inside the boat. This means that the player cannot access armor slots without exiting the boat.

When a boat with chest moves above, underneath, or beside a [[hopper]], its inventory is filled or drained accordingly. Due to the size of its hitbox, a boat with chest can be placed above up to 9 hoppers, allowing it to evenly split its items nine ways.

=== Naming ===
{{IN|java}}, unlike most other storage devices, a boat with chest renamed in an [[anvil]] does not display the custom name in its GUI.<ref>{{bug|MC-249408||Boats with Chests lose their name when placed}}</ref>

=== Piglin ===
As with other chests, opening or breaking a boat with chest causes nearby piglin(s) to attack the player.

== Sounds ==
{{Edition|Java}}:
Boats with chests use the Friendly Creatures sound category for entity-dependent sound events.
{{Sound table
|sound=Boat paddle land1.ogg
|sound2=Boat paddle land2.ogg
|sound3=Boat paddle land3.ogg
|sound4=Boat paddle land4.ogg
|sound5=Boat paddle land5.ogg
|sound6=Boat paddle land6.ogg
|subtitle=Rowing
|source=neutral
|description=While a boat with chest is rowed on land
|id=entity.boat.paddle_land
|translationkey=subtitles.entity.boat.paddle_land
|volume=1.0
|pitch=0.8-1.2
|distance=16}}
{{Sound table
|sound=Boat paddle water1.ogg
|sound2=Boat paddle water2.ogg
|sound3=Boat paddle water3.ogg
|sound4=Boat paddle water4.ogg
|sound5=Boat paddle water5.ogg
|sound6=Boat paddle water6.ogg
|sound7=Boat paddle water7.ogg
|sound8=Boat paddle water8.ogg
|subtitle=Rowing
|source=neutral
|description=While a boat with chest is rowed in water
|id=entity.boat.paddle_water
|translationkey=subtitles.entity.boat.paddle_water
|volume=0.8
|pitch=0.8-1.2
|distance=16
|foot=1}}

{{Edition|Bedrock}}:
{{Sound table
|type=bedrock
|sound=Swim1.ogg
|sound2=Swim2.ogg
|sound3=Swim3.ogg
|sound4=Swim4.ogg
|source=player
|description=While a boat with chest is rowed in water
|id=random.swim
|pitch=0.6-1.4
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Oak Boat with Chest
|spritetype=item
|spritename=oak-boat with chest
|nameid=oak_chest_boat
|itemtags=chest_boats
|form=item}}
{{ID table
|displayname=Spruce Boat with Chest
|spritetype=item
|spritename=spruce-boat with chest
|nameid=spruce_chest_boat
|itemtags=chest_boats
|form=item}}
{{ID table
|displayname=Birch Boat with Chest
|spritetype=item
|spritename=birch-boat with chest
|nameid=birch_chest_boat
|itemtags=chest_boats
|form=item}}
{{ID table
|displayname=Jungle Boat with Chest
|spritetype=item
|spritename=jungle-boat with chest
|nameid=jungle_chest_boat
|itemtags=chest_boats
|form=item}}
{{ID table
|displayname=Acacia Boat with Chest
|spritetype=item
|spritename=acacia-boat with chest
|nameid=acacia_chest_boat
|itemtags=chest_boats
|form=item}}
{{ID table
|displayname=Dark Oak Boat with Chest
|spritetype=item
|spritename=dark-oak-boat with chest
|nameid=dark_oak_chest_boat
|itemtags=chest_boats
|form=item}}
{{ID table
|displayname=Mangrove Boat with Chest
|spritetype=item
|spritename=mangrove-boat with chest
|nameid=mangrove_chest_boat
|itemtags=chest_boats
|form=item}}
{{ID table
|displayname=Cherry Boat with Chest
|spritetype=item
|spritename=cherry-boat with chest
|nameid=cherry_chest_boat
|itemtags=chest_boats
|form=item}}
{{ID table
|displayname=Bamboo Raft with Chest
|spritetype=item
|spritename=bamboo-raft with chest
|nameid=bamboo_chest_raft
|itemtags=chest_boats
|form=item
|foot=1}}
{{ID table
|edition=java
|firstcolumnname=Boat with Chest
|generatetranslationkeys=y
|displayname=Entity
|spritetype=entity
|spritename=boat-with-chest
|nameid=chest_boat
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showitemtags=y
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Oak Boat with Chest
|spritetype=item
|nameid=oak_chest_boat
|aliasid=chest_boat / 0
|id=646
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.oak.name}}
{{ID table
|displayname=Spruce Boat with Chest
|spritetype=item
|nameid=spruce_chest_boat
|aliasid=chest_boat / 1
|id=649
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.spruce.name}}
{{ID table
|displayname=Birch Boat with Chest
|spritetype=item
|nameid=birch_chest_boat
|aliasid=chest_boat / 2
|id=647
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.birch.name}}
{{ID table
|displayname=Jungle Boat with Chest
|spritetype=item
|nameid=jungle_chest_boat
|aliasid=chest_boat / 3
|id=648
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.jungle.name}}
{{ID table
|displayname=Acacia Boat with Chest
|spritetype=item
|nameid=acacia_chest_boat
|aliasid=chest_boat / 4
|id=650
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.acacia.name}}
{{ID table
|displayname=Dark Oak Boat with Chest
|spritetype=item
|nameid=dark_oak_chest_boat
|aliasid=chest_boat / 5
|id=651
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.big_oak.name}}
{{ID table
|displayname=Mangrove Boat with Chest
|spritetype=item
|nameid=mangrove_chest_boat
|aliasid=chest_boat / 6
|id=652
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.mangrove.name}}
{{ID table
|displayname=Cherry Boat with Chest
|spritetype=item
|nameid=cherry_chest_boat
|aliasid=chest_boat / 8
|id=658
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.cherry.name}}
{{ID table
|displayname=Bamboo Raft with Chest
|spritetype=item
|nameid=bamboo_chest_raft
|aliasid=chest_boat / 7
|id=662
|form=item
|itemtags=minecraft:chest_boat
|translationkey=item.chest_boat.bamboo.name
|foot=1}}
{{ID table
|edition=bedrock
|firstcolumnname=Form
|shownumericids=y
|generatetranslationkeys=y
|displayname=Entity
|spritetype=entity
|spritename=boat-with-chest
|nameid=chest_boat
|id=218
|foot=1}}

=== Entity data ===
Boat with chests have entity data associated with them that contain various properties of the entity.

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

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

== History ==
{{History||September 23, 2019|link={{ytl|Anv-lZc0pIM}}|The [[swamp]] was announced as a contender for the Biome Vote at [[MINECON Live 2019]]. Frogs, boats with chests, and mangrove trees were announced.}}
{{History||September 28, 2019|link={{ytl|UHoz0Q-LwUU}}|The swamp comes in second place in the Biome Vote, setting the release date of new swamp content further than new mountain content.}}
{{History||October 16, 2021|link={{ytl|w6zLprHHZOk|t=7085}}|[[File:Jungle Boat with Chest (pre-release).png|32px]] [[File:Dark Oak Boat with Chest (pre-release).png|32px]] Boats with chests were announced at [[Minecraft Live 2021]]. Only jungle and dark oak variants were shown.}}
{{History|java}}
{{History||1.19|snap=22w12a|[[File:Oak Boat with Chest JE1.png|32px]] [[File:Spruce Boat with Chest JE1.png|32px]] [[File:Birch Boat with Chest JE1.png|32px]] [[File:Jungle Boat with Chest JE1.png|32px]] [[File:Acacia Boat with Chest JE1.png|32px]] [[File:Dark Oak Boat with Chest JE1.png|32px]] [[File:Mangrove Boat with Chest JE1.png|32px]]<br>[[File:Oak Boat with Chest (item) JE1 BE1.png|32px]] [[File:Spruce Boat with Chest (item) JE1.png|32px]] [[File:Birch Boat with Chest (item) JE1 BE1.png|32px]] [[File:Jungle Boat with Chest (item) JE1 BE1.png|32px]] [[File:Acacia Boat with Chest (item) JE1 BE1.png|32px]] [[File:Dark Oak Boat with Chest (item) JE1 BE1.png|32px]] [[File:Mangrove Boat with Chest (item) JE1 BE1.png|32px]] Added boats with chests.
|Knob on chest is placed incorrectly 1 pixel up.}}
{{History|||snap=22w13a|[[File:Oak Boat with Chest JE2 BE1.png|32px]] [[File:Spruce Boat with Chest JE2 BE1.png|32px]] [[File:Birch Boat with Chest JE2 BE1.png|32px]] [[File:Jungle Boat with Chest JE2 BE1.png|32px]] [[File:Acacia Boat with Chest JE2 BE1.png|32px]] [[File:Dark Oak Boat with Chest JE2 BE1.png|32px]] [[File:Mangrove Boat with Chest JE2 BE1.png|32px]] Changed knob on chest position 1 pixel down to match [[Bedrock Edition]].
|Boats with chests can now be placed by [[dispenser]]s.}}
{{History|||snap=22w14a|Due to the addition of the [[mangrove tree]] and [[mangrove swamp]], make mangrove boat with chest obtainable and renewable.}}
{{History|||snap=22w15a|[[File:Oak Boat with Chest (item) JE2.png|32px]] [[File:Spruce Boat with Chest (item) JE2.png|32px]] [[File:Birch Boat with Chest (item) JE2.png|32px]] [[File:Jungle Boat with Chest (item) JE2.png|32px]] [[File:Acacia Boat with Chest (item) JE2.png|32px]] [[File:Dark Oak Boat with Chest (item) JE2.png|32px]] [[File:Mangrove Boat with Chest (item) JE2.png|32px]] Changed all boat with chest item textures.
|Now, the inventory can be accessed by {{control|using}} it directly when there is already a passenger inside of it.}}
{{History||October 15, 2022|link={{ytl|yZRXmHiEh7U&t}}|[[File:Bamboo Raft with Chest JE1 BE1.png|32px]] Bamboo rafts with chests were announced at [[Minecraft Live 2022]].}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|[[File:Bamboo Raft with Chest JE1 BE1.png|32px]] [[File:Bamboo Raft with Chest (item) JE1.png|32px]] Added bamboo rafts with chests behind the [[Java Edition 1.20|Update 1.20 experimental datapack]].}}
{{History|||snap=22w45a|[[File:Bamboo Raft with Chest (item) JE2 BE2.png|32px]] The item texture of the bamboo raft with chest has been changed.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w07a|[[File:Cherry Boat with Chest JE1.png|32px]] [[File:Cherry Boat with Chest (item) JE1.png|32px]] Added cherry boats with chests behind the [[Java Edition 1.20|Update 1.20 experimental datapack]].}}
{{History|||snap=1.19.4 Pre-release 2|[[File:Cherry Boat with Chest (item) JE2.png|32px]] The item texture of cherry boats with chests has now been changed.}}
{{History||1.20|snap=23w12a|Bamboo rafts with chests and cherry boats with chests are now available without using the "Update 1.20" experimental datapack.}}

{{History|bedrock}}
{{History||Wild Update<br>(Experimental)|link=Bedrock Edition 1.19.0|snap=beta 1.18.30.28|[[File:Oak Boat with Chest JE2 BE1.png|32px]] [[File:Spruce Boat with Chest JE2 BE1.png|32px]] [[File:Birch Boat with Chest JE2 BE1.png|32px]] [[File:Jungle Boat with Chest JE2 BE1.png|32px]] [[File:Acacia Boat with Chest JE2 BE1.png|32px]] [[File:Dark Oak Boat with Chest JE2 BE1.png|32px]]<br>[[File:Oak Boat with Chest (item) JE1 BE1.png|32px]] [[File:Spruce Boat with Chest (item) BE1.png|32px]] [[File:Birch Boat with Chest (item) JE1 BE1.png|32px]] [[File:Jungle Boat with Chest (item) JE1 BE1.png|32px]] [[File:Acacia Boat with Chest (item) JE1 BE1.png|32px]] [[File:Dark Oak Boat with Chest (item) JE1 BE1.png|32px]] Added boats with chests, missing mangrove type.
|Added unused translation keys for mangrove boat with chest.}}
{{History||1.19.0|snap=beta 1.19.0.20|Boats with chests are now available without enabling experimental gameplay.|[[File:Mangrove Boat with Chest JE2 BE1.png|32px]] [[File:Mangrove Boat with Chest (item) JE1 BE1.png|32px]] Added mangrove boats with chests.}}
{{History||1.19.0|snap=beta 1.19.0.26|[[File:Oak Boat with Chest (item) JE2.png|32px]] [[File:Spruce Boat with Chest (item) JE2.png|32px]] [[File:Birch Boat with Chest (item) JE2.png|32px]] [[File:Jungle Boat with Chest (item) JE2.png|32px]] [[File:Acacia Boat with Chest (item) JE2.png|32px]] [[File:Dark Oak Boat with Chest (item) JE2.png|32px]] [[File:Mangrove Boat with Chest (item) JE2.png|32px]] Changed all boat with chest item textures.}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.50|snap=beta 1.19.50.21|[[File:Bamboo Raft with Chest JE1 BE1.png|32px]] [[File:Bamboo Raft with Chest (item) BE1.png|32px]] Added bamboo rafts with chests behind the "[[Bedrock Edition 1.20|Next Major Update]]" [[experimental]] toggle.}}
{{History|||snap=beta 1.19.60.20|[[File:Bamboo Raft with Chest (item) JE2 BE2.png|32px]] The item texture of the bamboo raft with chest has been changed to match ''[[Java Edition]]''.}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.20|[[File:Cherry Boat with Chest JE1.png|32px]] [[File:Cherry Boat with Chest (item) JE2.png|32px]] Added cherry boats with chests behind the "[[Bedrock Edition 1.20|Next Major Update]]" [[experimental]] toggle.}}
{{History||1.20.0|snap=beta 1.20.0.21|Bamboo rafts with chests and cherry boats with chests are now available without using the "Next Major Update" experimental toggle.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* A [[chest]] is short enough that a boat with chest falls onto it rather than crashes into it.
* The chest texture is 12×12 pixels, rather than the 14×14 pixel texture the block uses. This is not the case with the [[minecart with chest]].
* Despite the minecart with chest using the Christmas texture, the boat with chest still uses the default chest texture during Christmas time.<ref>{{bug|MC-249378}}</ref>

== Gallery ==
=== Renders ===
<gallery>
Oak Boat with Chest.png|Oak Boat with Chest
Spruce Boat with Chest.png|Spruce Boat with Chest
Birch Boat with Chest.png|Birch Boat with Chest
Jungle Boat with Chest.png|Jungle Boat with Chest
Acacia Boat with Chest.png|Acacia Boat with Chest
Dark Oak Boat with Chest.png|Dark Oak Boat with Chest
Mangrove Boat with Chest.png|Mangrove Boat with Chest
Cherry Boat with Chest.png|Cherry Boat with Chest
Bamboo Raft with Chest.png|Bamboo Raft with Chest
Oak Boat with Chest (item) JE2.png|Oak Boat with Chest (item)
Spruce Boat with Chest (item) JE2.png|Spruce Boat with Chest (item)
Birch Boat with Chest (item) JE2.png|Birch Boat with Chest (item)
Jungle Boat with Chest (item) JE2.png|Jungle Boat with Chest (item)
Acacia Boat with Chest (item) JE2.png|Acacia Boat with Chest (item)
Dark Oak Boat with Chest (item) JE2.png|Dark Oak Boat with Chest (item)
Mangrove Boat with Chest (item) JE2.png|Mangrove Boat with Chest (item)
Cherry Boat with Chest (item) JE2.png|Cherry Boat with Chest (item)
Bamboo Raft with Chest (item) JE2 BE2.png|Bamboo Raft with Chest (item)
</gallery>

=== Concept Art ===
<gallery>
Bamboo Raft and Raft with Chest Concept Art.png|Ditto.
</gallery>

== References ==
{{reflist}}

{{Items}}
{{Entities}}


[[de:Boot mit Truhe]]
[[es:Barca con cofre]]
[[ja:チェスト付きのボート]]
[[ru:Лодка с сундуком]]
[[uk:Човен зі скринею]]
[[zh:运输船]]</li><li>[[Cooked Salmon|Cooked Salmon]]<br/>{{Dungeons hatnote|type=consumable}}
{{Item
| title = Cooked Salmon
| image = Cooked Salmon.png
| renewable = Yes
| heals = {{hunger|6}}
| stackable = Yes (64)
}}
'''Cooked salmon''' is a [[food]] item obtained by cooking [[raw salmon]].

== Obtaining ==

=== Mob loot ===

====Salmon====
[[Salmon]] always drops 1 raw salmon when killed, unaffected by Looting.<ref>{{bug|MC-212795||Salmon & Fish mobs are not affected by Looting}}</ref> If it is killed while on [[fire]], it drops 1 [[Cooked Salmon|cooked salmon]] instead.
====Guardians and elder guardians====
[[Guardian|Guardians]] and [[Elder Guardian|elder guardians]] have a 2.5% chance to drop a random fish, with 25% of them being raw salmon, which drops as cooked if the guardian was on fire. The chance of getting the fish drop is increased by 1% per level with [[Looting]] (for a maximum of 5.5% with Looting III), but the type of fish is not affected.
====Polar bears ====
[[Polar bear]]s have a 25% chance of dropping 0–2 raw salmon when killed. The maximum amount can be increased by 1 per level of Looting, for a maximum of 0-5 with Looting III. If killed while on fire, they drop cooked salmon instead.
=== Cooking ===

Cooked salmon can be obtained by cooking raw salmon in a [[furnace]], [[smoker]], or on a [[campfire]]. Each piece of cooked salmon removed from a furnace output slot gives 0.35 [[experience]] (22.4 experience per stack).

{{smelting|Raw Salmon|Cooked Salmon|0,35}}

=== Chest loot ===
{{LootChestItem|cooked-salmon}}

=== Trading ===

Apprentice-level fishermen villagers have a 50%{{only|bedrock}} or {{frac|2|3}}{{only|java}} chance to sell 6 cooked salmon for 6 raw salmon and an [[emerald]].

== Usage ==

=== Food ===

To eat cooked salmon, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|6}} and 9.6 [[Hunger#Mechanics|saturation]], the same as [[cooked mutton]].

=== Wolves ===

{{IN|Bedrock}}, cooked salmon can be fed to [[wolves]] only if they are not at full health, healing them by {{hp|6|mob=1}}. Cooked salmon does not accelerate the growth of baby wolves and cannot be used to [[breed]] them.

==Sounds==
{{Sound table/Entity/Food}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Cooked Salmon
|spritetype=item
|nameid=cooked_salmon
|itemtags=fishes
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Cooked Salmon
|spritetype=item
|nameid=cooked_salmon
|id=269
|form=item
|foot=1}}

== Achievements ==

{{load achievements|Lion Hunter}}

== Advancements ==
{{load advancements|Husbandry;A Balanced Diet;Fishy Business}}

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

== History ==

{{History|java}}
{{History||1.7.2|snap=13w36a|[[File:Cooked Salmon JE1 BE1.png|32px]] Added cooked salmon.}}
{{History||1.8|snap=14w02a|Cooked salmon can no longer be [[trading|traded]] by [[villager]]s.}}
{{History||1.13|snap=17w47a|The different data values for the <code>cooked_fish</code> IDs have been split up into their own IDs.
|Prior to [[1.13/Flattening|''The Flattening'']], these [[item]]s' numeral IDs were 349 and 250.}}
{{History|||snap=18w08b|Salmon has been added as a [[mob]], which drops raw salmon when killed (cooked while on [[fire]]).
|[[File:Cooked Salmon JE2 BE2.png|32px]] The texture of cooked salmon has been changed.}}
{{History|||snap=18w10a|Cooked salmon now generates in [[buried treasure]] [[chest]]s.}}
{{History|||snap=19w11a|Fisherman [[villager]]s can now convert raw salmon to cooked salmon, if [[trading|paid]] with emeralds.}}

{{History|pocket alpha}}
{{History||v0.11.0|snap=build 1|[[File:Cooked Salmon JE1 BE1.png|32px]] Added cooked salmon.}}
{{History||v0.12.1|snap=build 1|Salmon now restores [[hunger]] instead of [[health]].}}
{{History||v0.16.0|snap=build 1|Salmon is now dropped by [[guardian]]s and [[elder guardian]]s.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Salmon has been added as a [[mob]], which drops raw salmon when killed (cooked while on [[fire]]).
|[[File:Cooked Salmon JE2 BE2.png|32px]] The texture of cooked salmon has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Cooked salmon can now be obtained from [[trading]] with fishermen [[villager]]s.}}
{{History||1.16.100|snap=beta 1.16.100.52|Salmon now drops cooked salmon when killed on [[fire]].}}

{{History|console}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|[[File:Cooked Salmon JE1 BE1.png|32px]] Added cooked salmon.}}
{{History||xbox=TU69|ps=1.76|wiiu=Patch 38|[[File:Cooked Salmon JE2 BE2.png|32px]] The texture of cooked salmon has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Cooked Salmon JE1 BE1.png|32px]] Added cooked salmon.}}
{{History|foot}}

== Issues ==

{{issue list}}

== See also ==

* [[Fishing]]
* [[Cooked Cod]]

{{items}}

[[Category:Food]]
[[Category:Renewable resources]]

[[de:Gebratener Lachs]]
[[es:Salmón ahumado]]
[[pt:Salmão assado]]
[[ko:익힌 연어]]
[[zh:熟鲑鱼]]
[[ru:Жареный лосось]]</li></ul>
The Far Lands were removed.
pa
0.9.0
{{Extension DPL}}<ul><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><li>[[Tag (item)|Tag (item)]]<br/>{{About|the April Fools item|the standard item used to rename mobs|Name Tag}}
{{wip}}
{{joke feature}}
{{exclusive|java}}
{{Item
| title = Tag
| image = Tag.png
| renewable = Yes
| stackable = Yes (64)
}}
Tags and Bits are items exclusive to the [[Java Edition 23w13a or b|23w13a_or_b]] [[Easter eggs#April Fools|April Fools' joke]] snapshot from 2023. They are used to craft in-game representations of [[NBT format|NBT tags]].

==Obtaining==
A [[stonecutter]] can be used to cut a [[Name Tag|name tag]] into either 16 "Name" or 16 "Tag" items. These can be cut into 16 Bit items each.

{{Stonecutting
|head=1
|showdescription=1
|Name Tag
|Name, 16; Tag, 16
|description=The resulting "Name" items must be named in an [[anvil]].
}}
{{Stonecutting
|showdescription=
|Name; Tag
|Bit, 16
|foot=1
}}

To be able to proceed from here the <code>nbt_crafting</code> vote must be approved. Bits can be used in a crafting table to craft Left Curly, Right Curly, Left Square, and Right Square. In appears like these are the only tag items that can be crafted from Bits.

A [[Crafting Table|crafting table]] can be used to convert a "Tag" item into a "Byte Tag." The amount of [[stick]]s added to the crafting recipe specifies the value of the Byte, as a [[wikipedia:Signed number representations#Two's complement|signed 8-bit value]]. For example, a "Tag" and a full stack of sticks make a Byte with the value <code>64b</code>, while 255 sticks result in <code>-1b</code>. Only one of the sticks is consumed. Two Bytes can be crafted into a "Short Tag" (equivalent to 16 bit), two Shorts into an "Int Tag" (equivalent to 32 bit), and two Ints into a "Long Tag" (equivalent to 64 bit). Many other combinations that form either 16, 32, or 64 bit are possible. For example, two Shorts and an Int make a Long. When combining values, their digits are stuck together in the given order, e.g. <code>1b</code> and <code>0b</code> make <code>256s</code> (equivalent to 0100<sub>16</sub> in [[wikipedia:Hexadecimal|hexadecimal]]). Undoing any of these crafting actions in e.g. a stonecutter is not possible.

"Float" and "Double Tags" can be crafted by adding one or two [[boat]]s to any numeric tag. A "String Tag" is crafted with a "Tag" and a piece of [[string]].

{{Crafting
|head=1
|showdescription=1
|A1= Bit;    ; Bit; Bit |B1=    ; Bit; Bit; Bit
|A2=    ; Bit; Bit;     |B2= Bit;    ;    ; Bit
|A3= Bit;    ; Bit; Bit |B3=    ; Bit; Bit; Bit
|Output= Right Curly; Left Curly; Left Square; Right Square
|ignoreusage=1
}}
{{Crafting
|Tag
|String
|Output= String Tag
|description=String tags must be named in an [[anvil]] to set their value.
|ignoreusage=1
}}
{{Crafting
|Tag; Tag;   Tag
|;    Stick; Stick, 64
|;    ;      Stick, 63
|Output= Byte Tag; Byte Tag; Byte Tag
|description=Only 1 stick is consumed. 128 and more sticks make [[wikipedia:Signed number representations#Two's complement|two's complements]]:
128 sticks = <code>-128b</code><br>
129 sticks = <code>-127b</code><br>
⋮<br>
254 sticks = <code>-2b</code><br>
255 sticks = <code>-1b</code>
|ignoreusage=1
}}
{{Crafting
|Byte Tag; Byte Tag; Byte Tag
|Byte Tag; Byte Tag; Byte Tag
|        ; Byte Tag; Byte Tag
|        ; Byte Tag; Byte Tag
|        ;         ; Byte Tag
|        ;         ; Byte Tag
|        ;         ; Byte Tag
|        ;         ; Byte Tag
|Output= Short Tag; Int Tag; Long Tag
|description=Shorts and Ints can be combined the same way, even mixed.

Digits are appended, e.g. two <code>1b</code> tags make <code>257b</code> (0101<sub>16</sub> in [[wikipedia:Hexadecimal|hexadecimal]]).
|ignoreusage=1
}}
{{Crafting
|Byte Tag; Short Tag; Int Tag; Long Tag
|Any Boat; Any Boat; Any Boat; Any Boat
|Output= Float Tag; Float Tag; Float Tag; Float Tag
|ignoreusage=1
}}
{{Crafting
|Byte Tag; Short Tag; Int Tag; Long Tag
|Any Boat; Any Boat; Any Boat; Any Boat
|Any Boat; Any Boat; Any Boat; Any Boat
|Output= Double Tag; Double Tag; Double Tag; Double Tag
|ignoreusage=1
}}
{{Crafting
|Left Curly;  Left Curly
|Name;        Name
|Byte Tag;    Byte Tag
|Right Curly; Name |; Byte Tag | |; Name |; Byte Tag |; Right Curly
|Output= Compound Tag; Compound Tag
|description=Instead of Bytes any other tag can be used, including other compound tags.
|ignoreusage=1
}}
{{Crafting
|Left Square;  Left Square
|Byte Tag;     Byte Tag
|Right Square; Byte Tag |; Byte Tag |; Byte Tag |; Byte Tag |; Byte Tag |; Byte Tag |; Right Square
|Output= List Tag; List Tag
|description=Instead of Bytes any other tag can be used, including other list tags.
|ignoreusage=1
}}
{{Crafting
|Compound Tag; List Tag
|Compound Tag; List Tag
|Output= Compound Tag; List Tag
|description=Up to 9 can be combined.

When compound tags contain identical names, only the latest of the corresponding values is used.
|ignoreusage=1
|foot=1
}}

"Name" and "String Tags" must be named in an [[anvil]] before they can be used. Unnamed Names and Strings always produce a "Sssyntax Error". None of the other tag items can be named.

All these items can be combined in a crafting table to form a short sequence of JSON code, as long as the resulting syntax is valid. For example: 
*A pair of Curlies that enclose a named "Name" item and some value, e.g. a Byte, create a "Compound Tag" with the content <code>{Example:0b}</code>.
**Because of the limited size of the crafting table only 3 name-value pairs can be put between Curlies at a time. Compound Tags of any length can be created by concatenating two or more Compound Tags.
**An empty pair of Curlies produces an empty Compound Tag with the content <code>{}</code>.
*A pair of Square brackets that enclose any number of values, e.g. 7 Bytes, create a "List Tag" with the content <code>[0b,0b,0b,0b,0b,0b,0b]</code>.
**Because of the limited size of the crafting table only 7 values can be put between Square brackets at a time. List Tags of any length can be created by concatenating two or more List Tags.
**An empty pair of Square brackets produces an empty List with the content <code>[]</code>.
**"Name" items cannot be used in a List.

The resulting Compound and List Tags can be used as values in other Compound and List Tags, as deeply nested as you want.

==Usage==
Tags appear to have no further functionality. They cannot be eaten or placed in the world, except in an item frame, as each other item can. However, Compound Tags with values like <code>{Enchantments:[{id:"minecraft:sharpness",lvl:127b}]}</code> will show the [[Enchanting|enchantment]] glint and actually act accordingly when used.<ref>https://www.reddit.com/r/Minecraft/comments/129xdyl/i_figure_out_how_the_nbtcrafting_in_the_vote/</ref> This appears to work with many weapon and tool [[Enchanting#Summary of enchantments by item|enchantments]].

In theory, an extremely lucky <code>replace_recipe_output</code> vote can change the crafting recipe for compound tags to output something else. When cheats are enabled you can test this with a command like <code>/vote rule minecraft:replace_recipe_output approve {key:"minecraft:compound_tag",value:"minecraft:netherite_sword"}</code>. However, as long as this vote is approved no other compound tag can be crafted. Use <code>/vote rule minecraft:replace_recipe_output repeal *</code> to undo all recipe replacements.

In combination with the <code>midas_touch</code> vote tag items can be converted into [[Gold Ingot|gold ingots]]. These retain their NBT data. When the world is loaded in another version of the game tag items disappear, but gold ingots persist.

==Trivia==
*This implies that a [[Name Tag|name tag]] is 128 bit.
*Compound and list tags are special in so far that the value they show in their [[tooltip]] is not merely a property of the item, but their ''actual'' [[NBT format|NBT data]]. This is also the reason why naming them is disabled as that would mess up the NBT data.
*The snapshot also contains an [[History of textures/Unused textures|unused texture]] for an {{ItemLink|End Tag}}.

==History==
{{History|java}}
{{History||23w13a_or_b|[[File:Tag.png|32px]] Added tags.}}
{{History|foot}}

==Gallery==
<gallery>
Tag.png|Tag
Bit.png|Bit
Byte Tag.png|Byte Tag
Double Tag.png|Double Tag
End Tag.png|End Tag
Float Tag.png|Float Tag
Int Tag.png|Int Tag
Left Curly.png|Left Curly
Left Square.png|Left Sqaure
List Tag.png|List Tag
Long Tag.png|Long Tag
Name (23w13a or b).png|Name
Right Curly.png|Right Curly
Right Square.png|Right Square
Short Tag.png|Short Tag
Sssyntax Error.png|Sssyntax Error
String Tag.png|String Tag
</gallery>

== References ==
{{reflist}}

{{items}}
{{jokes}}

[[pt:Tag (item)]]
[[Category:Joke items]]</li></ul>
First appearance of the Far Lands.

Trivia

  • A world has 12 Chunk overflows in the code that creates at a certain distance a "Chunk Overflow", how do these overflows accomplish? well if you do 2,147,483,647 / 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048 and 4096. If you teleport to the coordinates you get when you calculate these numbers with each other, the chunk will overflow and will get "fake chunk" terrain
  • There is a chance of walking into a “bad chunk" that has such corrupt and unreadable data that it will cause huge lag spikes and possibly crash the game.
  • When at the Far Lands, fences either have a thin wall collision box on one side, or no collision with mobs or the player.
  • Even though Beta 1.6 made it impossible to place solid blocks at layer 128, the Far Lands' flat “ceiling" still gets generated there.
  • Because of the debates over renaming endermen to "Far Landers," Notch jokingly suggested to rename the Far Lands to The End instead. This then became the name for the dimension where the Ender Dragon resides.[9]
  • The Far Lands can cause a major decrease in FPS, freezing, and crashing, due to a high amount of internal errors, as well as the client having to deal with immense amounts of entities, both monsters and glitched sand/gravel entities. In addition, there is extra lag caused by the very high X/Z coordinates that the Far Lands exist at. This is also one of the main reasons that the Far Lands after X/Z ±32,000,000 would sometimes lag, despite the absence of any entities.
    • Sand and gravel don't fall from generating in Pocket Edition. This results in relatively stable performance.
  • Minecarts with chests will sometimes appear in phantom chunks, but as entities, they fall into the void shortly after they are generated.
  • One of the random splashes read: "Check out the far lands!". Ironically, the splash was added to the game after the Far Lands were fixed.
  • In 1.8, sometimes there is a chance that you can see stationary lava outside the end generation zone, placed with even space between.
  • In Beta 1.7.3 and below:
    • At excessive X/Z values, the corner lands are all flat.
    • At X: 268,435,456, a terrain glitch causes normal terrain to generate for a few chunks before generating distorted terrain again. This is the only occurrence where trees generate beyond X/Z: ±32,000,000, the limit at which block physics fail to function correctly and lighting ceases to work.
    • At around and after X/Z: ±3,500,000,000, clouds become severely stretched out in one direction (Fast graphics only, Fancy graphics clouds are not affected by the Far Lands).
    • Between X/Z: ±25,769,803,000 and X/Z: ±25,769,804,000 clouds stop rendering (Varies between maps, but they disappear somewhere in between these distances).
    • It is very dangerous to reach X/Z ±4,000,000,000 or higher, as the chances of crashing (assuming you have 64-bit Java) are extremely high, and get higher the farther you go.
    • If one makes it to X/Z ±34,359,738,368 (chunk offset limit), chunks will start getting overwritten. As a result, this is the end of chunk generation in Minecraft. As soon as this limit is approached, the game will freeze and crash, resulting in a Out of memory screen. However in some cases the player may be able to move past this limit for a few seconds before Minecraft crashes.
    • The highest value for 64-bit machines is X/Z ±9,223,372,036,854,775,807. However, despite this being the limit any machine can go, it may not be possible to reach anywhere near this point, since the vast majority of people experience instant client freeze, followed by the client crashing. If teleported there, the screen will display completely black with no sun and oddly glowing clouds.

Gallery

Features

Offset bugs

Generation

Pocket Edition

Old versions

See also

References