Minecraft Wiki
Register
(→‎Sounds: surprised that no one has put the source of the sound)
Line 71: Line 71:
   
 
These are dropped with an 8.5% chance and random durability.
 
These are dropped with an 8.5% chance and random durability.
  +
You may also put any armour type on a piglin by dropping a specific armour on one.
   
 
=== Experience ===
 
=== Experience ===

Revision as of 21:44, 4 December 2020

For the upcoming mob in Minecraft Dungeons, see MCD:Piglin.
This article is about the neutral mob native to the Nether. For the zombified variant, see Zombified Piglin. For the hostile variant found in bastion remnants, see Piglin Brute. For other pig-like mobs, see Pig (disambiguation).

Piglins are neutral mobs found in the Nether. Unless equipped with a piece of golden armor, they attack players on sight. Players can use gold ingots to barter with them for various items.

Spawning

Piglins spawn in groups of 4 in nether wastes and crimson forest biomes, and within bastion remnants, at a light level of 11 or less in Java Edition, or 7 or less in Bedrock Edition, even in Peaceful mode. Each piglin has a 20%‌[Java Edition only] or 5%‌[Bedrock Edition only] chance of spawning as a baby.

Drops

Adults have an 8.5% chance of dropping the held item (a golden sword or crossbow with random durability). Each Looting level increases this chance by 1%.

Babies spawn without equipment.

A picked up item always drops with the same durability as when picked up. Piglins do not drop picked-up gold ingots, raw porkchops, or cooked porkchops.

Armor

Adults sometimes spawn with 1-4 pieces, which are normal or enchanted and may be:

These are dropped with an 8.5% chance and random durability. You may also put any armour type on a piglin by dropping a specific armour on one.

Experience

Adults drop five points and more 1–3 per armor piece if killed by a player or tamed wolf. Baby piglins drop 1.

Behavior

Piglins snort enviously while watching players holding a gold-related item.

Piglins can open and close wooden doors, like villagers. Also like villagers, they are unable to open gates, trapdoors, iron doors, and iron trapdoors.

Piglins cannot swim and drown if submerged; this is intentional behavior.[1] They are not naturally immune to fire or lava.

Piglins pick up raw porkchops and cooked porkchops that are within 1 block from them, unless they've done so within the last 10 seconds.

Idle piglins retreat from zombified piglins, zoglins, soul fire, soul torches, soul lanterns, and lit soul campfires. Piglins ignore Soul Fire items when pursuing the player, but still run from Zombified Piglins no matter what. Baby piglins additionally retreat from wither skeletons and withers.

Baby piglins are passive and play with baby hoglins, running around and riding upon them. Up to 3 baby piglins may stack on top of each other while riding a baby hoglin.

Baby piglins can be given gold, but they do not give anything in return.

Baby piglins never grow up; this is intentional behavior.[2]

Hostility

Piglins will become hostile if the player attacks the piglin or another, nearby piglin or opens a chest, barrel, shulker box, or an ender chest. They will also become hostile if the player mines a gold-related block. They attack on sight if the player doesn’t wear golden armor. The much stronger piglin brute is always hostile, regardless if the player wears golden armor. Baby piglins are considered passive and will never attack the player.

Aggravation

Adult piglins are neutral if the player is wearing at least one piece of golden armor. Piglins are provoked when:

Piglins remain hostile for 30 seconds after provoked.

Piglins can detect the breaking and opening of blocks within a range of 16 blocks in a straight line from the player (this can be altered with the Invisibility effect). The block interacted with does not require a line of sight to anger the piglin.

Piglins do not react to the opening or breaking of furnace, blast furnace, smoker, dropper, dispenser or brewing stand. Opening or breaking a hopper does not provoke the piglins, which is intended.[6] Breaking a bell does not provoke them either, despite piglins admiring them as gold, which is also intended.[7]

Attacking

When a piglin is attacking, it holds its dominant arm and sword in front of it, similar to a vindicator.

Adults immediately attack wither skeletons and withers. Adult piglins do not immediately attack adult hoglins on sight, but a piglin has a random chance to make the decision to hunt a hoglin (this decision almost never happens if the piglin recently hunted)[verify]. Once that piglin attacks the hoglin, all other piglins become hostile to the hoglin. If outnumbered by hoglins, the piglins flee. After defeating a hoglin, piglins have a 10% chance to do a "victory dance" by bobbing their heads and sticking out their arms like a "T-pose."

Adult piglins congregate within 16 blocks and attack in hordes.

When attacking with a crossbow, piglins shoot arrows every 2 seconds. In Java Edition, they walk backward (stopping if at the edge of a drop) as soon as the target is close. Their crossbows can break if it runs out of durability, making the piglins use their fists. Unlike mobs armed with bows, they do not strafe from left to right while shooting. Piglins with swords and other items rush at the player.

If a group of Piglins successfully defeat their target, they gather at the site of their target's demise, and emit "celebration sounds". However, piglins do not have a chance of dancing unless their target was a hoglin.

Iron golems attack both adult and baby piglins; however, piglins do not attack iron golems without provocation.

Being distracted

Piglins briefly stop attacking when given gold items. If the player offers a gold ingot, bartering then takes place as it normally would. They resume attacking once the barter is complete. If the player distracts them with a gold item and equips a piece of gold armor while the piglin is examining the item, then the piglin ceases hostility. They may also cease hostility if distracted enough times. If the player breaks any gold-related block and then distracts the piglin up to 5 times while being equipped with a piece of gold armor, the piglin ceases hostility entirely.

Bartering

Main article: Bartering

Piglins trade gold ingots for certain items, when a gold ingot is dropped or the player uses it while looking at them. The piglin "examines" the ingot for six‌[JE only] or eight‌[BE only][8]seconds, then drop a random item from the chart. However, baby piglins examine the ingot and then run away without dropping an item.

Picking up items

Piglins can pick up and equip any items on their way, and prefer gold-related items, actively seeking them out. A piglin inspects any gold-related item before equipping, holding or putting that item in its inventory for six seconds after picking it up. However, items not related to gold are held or equipped (if the piglin does not have any gold equipments) instantly. Piglins do not pick up any items if the MobGriefing gamerule is set to false.

Piglins have eight hidden inventory slots in which they can stack items. Piglins with full inventories do not attempt to pick up gold related items, except gold ingots. Baby piglins attempt to pick up any item and can steal from players. Adult piglins can pick up gold nuggets (which do not help to obtain better items from bartering) and porkchops (they do not actively seek out and contemplate porkchops) and if either of those items is nearby, they instantly place it in their inventory. Piglins drop any of these items upon death aside from gold ingots, raw porkchops, and cooked porkchops.

If a piglin is killed in one hit while admiring a gold ingot, the ingot does get dropped upon the piglin’s death.

Piglins with crossbows can pick up normal or enchanted crossbows and equip them.

Like other mobs capable of picking up items, piglins pick up armor and weapons. Piglins pick up armor that is better than the armor they are already wearing, although they prefer gold over stronger armor. For example, a piglin does not pick up leather boots if it is already wearing diamond boots, but may discard a netherite chestplate to pick up a golden chestplate. However, they are unable to lift the Curse of Binding, if the netherite chestplate has curse of binding, the piglin is unable to discard it.

Piglins that have picked up items or equipment do not despawn naturally.

Items piglins want

These items are listed in the name:data/minecraft/tags/items/piglin_loved.json.

Gold-related items not wanted by piglins
Gold-like items not wanted by piglins

Zombification

Piglin being zombified

A piglin turning into a zombified piglin.

When in the Overworld or the End, piglins transform into zombified piglins after 15 seconds, retaining their armor and held items. However, they cannot shoot a crossbow, using it instead as a melee weapon. Upon transformation, the spawned zombified piglin has the Nausea effect for 10 seconds; this is just a cosmetic effect. When piglins transform into zombified piglins, they drop anything except equipped arms and armor in their inventories and their inventories disappear.

Sounds

SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
Piglin snortsHostile Creatures?entity.piglin.ambientsubtitles.entity.piglin.ambient0.7??
Piglin snorts angrilyHostile Creatures?entity.piglin.angrysubtitles.entity.piglin.angry0.7??
Piglin celebratesHostile Creatures?entity.piglin.celebratesubtitles.entity.piglin.celebrate60.350.0?
Piglin converts to Zombified PiglinHostile Creatures?entity.piglin.converted_to_zombifiedsubtitles.entity.piglin.converted_to_zombified1.0??
Piglin hurtsHostile Creatures?entity.piglin.hurtsubtitles.entity.piglin.hurt0.7??
Piglin diesHostile Creatures?entity.piglin.deathsubtitles.entity.piglin.death0.7-0.8??
Piglin retreatsHostile Creatures?entity.piglin.retreatsubtitles.entity.piglin.retreat0.7??
Piglin stepsHostile Creatures?entity.piglin.stepsubtitles.entity.piglin.step0.75??
Piglin snorts enviouslyHostile Creatures?entity.piglin.jealoussubtitles.entity.piglin.jealous0.8??
Piglin admires itemHostile Creatures?entity.piglin.admiring_itemsubtitles.entity.piglin.admiring_item0.8-0.85??

Data values

ID

Java Edition:

NameIdentifierTranslation key
Piglinpiglinentity.minecraft.piglin

Bedrock Edition:

NameIdentifierNumeric ID Translation key
Piglinpiglin123entity.piglin.name

Entity data

See also: Chunk format

Piglins have entity data associated with them that contains various properties.

  • Entity data
    • Tags common to all entities
    • Tags common to all mobs
    •  CannotHunt: 1 or 0 (true/false) – if true, the piglin does not attack hoglins. Set to true for piglins spawned as a part of bastion remnants.
    •  Inventory: Each compound tag in this list is an item in the piglin's inventory. It can hold a maximum of 8 items.
      • An item in the inventory, excluding the Slot tag.
        • Tags common to all items
    •  IsBaby: 1 or 0 (true/false) – true if the piglin is a baby. May not exist.
    •  IsImmuneToZombification: 1 or 0 (true/false) – if true, the piglin does not transform to a zombified piglin when in the Overworld.
    •  TimeInOverworld: The number of ticks that the piglin has existed in the Overworld; the piglin converts to a zombified piglin when this is greater than 300.

Achievements

Icon Achievement In-game description Actual requirements (if different) Gamerscore earned Trophy type (PS4)
PS4 Other
Oooh, shiny!Distract a Piglin using goldGive a piglin a gold item while it is aggressive toward the player.30GSilver

Advancements

Icon Advancement In-game description Parent Actual requirements (if different) Resource location
Advancement-plain-rawStone Age
Mine Stone with your new Pickaxe MinecraftHave one of these 3 stones in the #stone_tool_materials item tag: in your inventory.story/mine_stone
Advancement-plain-rawSuit Up
Protect yourself with a piece of iron armor Acquire HardwareHave any type of iron armor in your inventory.story/obtain_armor
Advancement-plain-rawNot Today, Thank You
Deflect a projectile with a Shield Suit UpBlock any projectile with a shield.story/deflect_arrow
Advancement-plain-rawIce Bucket Challenge
Obtain a block of Obsidian Hot StuffHave a block of obsidian in your inventory.story/form_obsidian
Advancement-plain-rawWho is Cutting Onions?
Obtain Crying Obsidian NetherHave a block of crying obsidian in your inventory.nether/obtain_crying_obsidian
Advancement-plain-rawOh Shiny
Distract Piglins with gold NetherWhile aggravated, give a piglin one of these 25 gold-related items in the #piglin_loved item tag: Other gold-related items do not distract the piglin and do not trigger this advancement.nether/distract_piglin
Advancement-plain-rawAdventure
Adventure, exploration and combat Kill any entity, or be killed by any entity.adventure/root
Advancement-plain-rawMonster Hunter
Kill any hostile monster AdventureKill one of these 34 mobs: Only the riders of the chicken jockeys and skeleton horsemen are counted in this advancement. Other mobs may be killed, but are ignored for this advancement.adventure/kill_a_mob
Advancement-fancy-rawMonsters Hunted
Kill one of every hostile monster Monster HunterKill each of these 34 mobs: Other mobs may be killed, but are ignored for this advancement. Only the riders of the chicken jockeys and skeleton horsemen are counted in this advancement.adventure/kill_all_mobs

History

Missing Model JE3
This section would benefit from the addition of more images. 
Please remove this notice once you've added suitable images to the article.
The specific instructions are:
  • Bedrock 1.16.0.63 - "Gold ingots now render properly in piglin's hands at all times." (Before and After)
  • Java Pre-release 3 - The helmet model now uses the player helmet model on the piglins instead of a unique one for them. (Before and After)
October 26, 2010Pigman Miclee suggests the concept of pigmen, the predecessor to piglins, resulting in him receiving the Bacon Cape as a reward.
alpha
v1.2.0
{{Extension DPL}}<ul><li>[[Knowledge Book|Knowledge Book]]<br/>{{exclusive|java}}
{{Item
| image = Knowledge Book.png
| renewable = No
| stackable = No
| rarity = Epic
}}
A '''knowledge book''' is a utility item that reveals available [[crafting]] recipes to the player when {{control|used|use}}.

== Obtaining ==
Knowledge books can be obtained only by using [[commands]], as it is not found in the [[creative]] inventory; therefore, it is impossible to obtain in other modes such as [[survival]] and [[adventure]] except with commands.

For example, to give oneself a knowledge book that reveals the recipes for [[bucket]]s and [[flower pot]]s, use: {{cmd|give @s minecraft:knowledge_book{Recipes:["minecraft:bucket", "minecraft:flower_pot"]} }}.

== Usage ==
Knowledge books are used to reveal recipes to the player who uses it, by adding it to their [[recipe book]]. Using a knowledge book consumes it, removing it from the player's inventory.

Knowledge books are especially useful to mapmakers in conjunction with {{cmd|gamerule doLimitedCrafting true}}, because then any item is craftable only if its recipe is unlocked first.

== Sounds ==
{{Sound table
|sound=Chiseled bookshelf insert1.ogg
|sound2=Chiseled bookshelf insert2.ogg
|sound3=Chiseled bookshelf insert3.ogg
|sound4=Chiseled bookshelf insert4.ogg
|subtitle=Book placed
|source=block
|description=When a knowledge book is placed in a chiseled bookshelf
|id=block.chiseled_bookshelf.insert
|translationkey=subtitles.chiseled_bookshelf.insert
|volume=0.8
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.85, or 1.1 for each sound</ref>
|distance=16}}
{{Sound table
|sound=Chiseled bookshelf pickup1.ogg
|sound2=Chiseled bookshelf pickup2.ogg
|sound3=Chiseled bookshelf pickup3.ogg
|subtitle=Book taken
|source=block
|description=When a knowledge book is removed from a chiseled bookshelf
|id=block.chiseled_bookshelf.pickup
|translationkey=subtitles.chiseled_bookshelf.take
|volume=0.8
|pitch=''varies'' <ref group=sound>Can be 1.0, 0.8, or 1.1 for each sound</ref>
|distance=16
|foot=1}}

== Data values ==
=== ID ===
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Knowledge Book
|spritetype=item
|nameid=knowledge_book
|form=item
|foot=1}}

=== Item data ===
Recipe books use the NBT tag <code>Recipes</code> to indicate the recipes they contain.

''The following NBT structure is provided to show how the <code>Recipes</code> tag is organized, and is not comprehensive above the <code>tag</code> tag. The full NBT for an item can be found [[Chunk format#Items and XP Orbs|here]].''

<div class="treeview" style="margin-top: 0;">
* {{nbt|compound}} Entity data
** {{nbt|compound|Item}}: The item
*** {{nbt|compound|tag}}: Additional information about the item. This tag is optional for most items.
**** {{nbt|list|Recipes}}: The list of recipes this book contains.
***** {{nbt|string}} the name of a recipe, for instance <code>minecraft:gold_nugget</code> or <code>minecraft:gold_ingot_from_nuggets</code>
</div>

== History ==
{{History|java}}
{{History||1.12|snap=17w13a|[[File:Knowledge Book JE1.png|32px]] Added knowledge books.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 453.}}
{{History||1.14|snap=18w43a|[[File:Knowledge Book JE2.png|32px]] The texture of knowledge books has now been changed.}}
{{History||1.20|snap=1.20 Release Candidate 1|Knowledge books can now be placed in [[chiseled bookshelf|chiseled bookshelves]].}}
{{History|Foot}}

== Issues ==
{{Issue list}}

== See also ==
* [[Book]]
* [[Enchanted Book]]
* {{cmd|recipe}} command

{{Items}}

[[Category:Non-renewable resources]]

[[de:Buch des Wissens]]
[[es:Enciclopedia]]
[[fr:Livre des connaissances]]
[[ja:知恵の本]]
[[ko:지식의 책]]
[[lzh:天工開物]]
[[pl:Księga wiedzy]]
[[pt:Enciclopédia]]
[[ru:Книга знаний]]
[[zh:知识之书]]</li><li>[[Sword|Sword]]<br/>{{For|the item in ''Minecraft Dungeons''|MCD:Sword|MCD:Diamond Sword}}
{{Item
| image = <gallery>
Wooden Sword.png | Wooden
Stone Sword.png | Stone
Iron Sword.png | Iron
Golden Sword.png | Golden
Diamond Sword.png | Diamond
Netherite Sword.png | Netherite
</gallery>
| rarity = Common
| renewable = 
* '''Netherite''': No
* '''All others''': Yes
| durability = 
'''Java Edition'''<br>
Golden: 32<br>
Wood: 59<br>
Stone: 131<br>
Iron: 250<br>
Diamond: 1561<br>
Netherite: 2031<br>
'''Bedrock Edition'''<br>
Golden: 33<br>
Wood: 60<br> 
Stone: 132<br>
Iron: 251<br>
Diamond: 1562<br>
Netherite: 2032
| stackable = No
}}
The '''sword''' is a melee [[weapon]] that is mainly used to deal [[damage]] to [[entity|entities]] or for breaking certain blocks faster than by hand. A sword is made from one of six materials, in order of increasing quality and expense: wood, gold, stone, iron, diamond and netherite.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

== Issues ==
{{issue list}}

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

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

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

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

== References ==
{{reflist}}

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

[[de:Schwert]]
[[es:Espada]]
[[fr:Épée]]
[[hu:Kard]]
[[ja:剣]]
[[ko:검]]
[[nl:Zwaard]]
[[pl:Miecz]]
[[pt:Espada]]
[[ru:Меч]]
[[tr:Kılıç]]
[[uk:Меч]]
[[zh:剑]]</li></ul>
previewPigman (texture) JE1 The texture of pigmen has been added to mobs/pigman.png.[13]
beta
April 25, 2011It is suggested that pigmen may be the inhabitants of the then-to-be-implemented villages.
Java Edition
1.6.2
{{Extension DPL}}<ul><li>[[Balloon|Balloon]]<br/>{{exclusive|bedrock|education}}
{{education feature}}
{{ItemEntity
|image=White Balloon.png
|extratext = View [[#Gallery|all renders]]
|invimage=White Balloon
|invimage2=Orange Balloon
|invimage3=Magenta Balloon
|invimage4=Light Blue Balloon
|invimage5=Yellow Balloon
|invimage6=Lime Balloon
|invimage7=Pink Balloon
|invimage8=Gray Balloon
|invimage9=Light Gray Balloon
|invimage10=Cyan Balloon
|invimage11=Purple Balloon
|invimage12=Blue Balloon
|invimage13=Brown Balloon
|invimage14=Green Balloon
|invimage15=Red Balloon
|invimage16=Black Balloon
|renewable=No
|stackable=Yes
|size=Height: 0.4 Blocks<br>Width: 0.4 Blocks
}}

'''Balloons''' are [[entities]] that float upward when placed.

== Obtaining ==
Balloons are not available in the [[Creative]] inventory or [[commands]].

=== Crafting ===

{{Crafting
|A1= Latex
|B1= Matching Dye
|C1= Latex
|A2= Latex
|B2= Helium
|C2= Latex
|A3= Latex
|B3= Lead
|C3= Latex
|Output= Matching Balloon
|description={{only|bedrock|education}}
|type= Miscellaneous
|head=1
}}
{{Crafting
|A1= Latex
|B1= Bone Meal; Lapis Lazuli; Cocoa Beans; Ink Sac
|C1= Latex
|A2= Latex
|B2= Helium
|C2= Latex
|A3= Latex
|B3= Lead
|C3= Latex
|Output= White Balloon; Blue Balloon; Brown Balloon; Black Balloon
|description={{only|bedrock|education}}
|type= Miscellaneous
|foot=1
}}

== Usage ==

When {{control|used}} on a [[mob]], a [[fence]], or a [[wall]], balloons attach to the mob or block, similarly to a [[lead]]. Balloons float into the air faster than the speed the [[player]] flies up, but remain grounded if tied to a fence. If tied to a mob, the balloon floats away and carries the mob into the air, before both eventually [[despawn]] or disappear.
{| class="wikitable sortable" style="text-align: left;"
|+ Balloon-attachable mobs
! Mob
! Mass
|-
| {{EntityLink|Chicken}} 
| 0.6
|-
| {{EntityLink|Cow}} 
| 1.0
|-
| {{EntityLink|Donkey}} 
| 1.0
|-
| {{EntityLink|Horse}} 
| 1.0
|-
| {{EntityLink|Iron Golem}} 
| 2.0
|-
| {{EntityLink|Llama}} 
| 1.0
|-
| {{EntityLink|Mule}} 
| 1.0
|-
| {{EntityLink|Mooshroom}}
| 1.0
|-
| {{EntityLink|Panda}}
| 1.5
|-
| {{EntityLink|Pig}}
| 0.75
|-
| {{EntityLink|Sheep}}
| 0.75
|-
| {{EntityLink|Snow Golem}}
| 1.0
|-
| {{EntityLink|Fox}}
| 0.6
|}

When a balloon is shot by an [[arrow]] or a [[trident]], or floats into a solid block, it pops, summons [[particles]], and is destroyed. It drops nothing. A balloon tied to a fence post bursts when a player strikes it in any direction.

== Sounds ==
{{Sound table
|type=bedrock
|sound=Balloon pop1.ogg
|sound2=Balloon pop2.ogg
|source=neutral
|description=When a balloon collides with a block from above
|id=balloon.pop
|volume=10.0
|pitch=1.75/2.0
|foot=1}}

== Data values ==
=== ID ===
{{ID table
|edition=bedrock
|firstcolumnname=Balloon
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Item
|spritename=balloons
|spritetype=item
|nameid=balloon
|id=598
|form=item
|translationkey=item.balloon.black.name,item.balloon.red.name,item.balloon.green.name,item.balloon.brown.name,item.balloon.blue.name,item.balloon.purple.name,item.balloon.cyan.name,item.balloon.silver.name,item.balloon.gray.name,item.balloon.pink.name,item.balloon.lime.name,item.balloon.yellow.name,item.balloon.lightBlue.name,item.balloon.magenta.name,item.balloon.orange.name,item.balloon.white.name
|foot=1}} 
{{ID table
|edition=bedrock
|firstcolumnname=Balloon
|shownumericids=y
|generatetranslationkeys=y
|displayname=Entity
|spritename=balloons
|spritetype=entity
|nameid=balloon
|id=107
|foot=1}}

=== Metadata ===
In ''Bedrock Edition'', balloon items use the following data values:

{{/DV}}

== History ==

{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.20.1|[[File:White Balloon BE1.png|32px]] [[File:Orange Balloon BE1.png|32px]] [[File:Magenta Balloon BE1.png|32px]] [[File:Light Blue Balloon BE1.png|32px]] [[File:Yellow Balloon BE1.png|32px]] [[File:Lime Balloon BE1.png|32px]] [[File:Pink Balloon BE1.png|32px]] [[File:Gray Balloon BE1.png|32px]] [[File:Silver Balloon BE1.png|32px]] [[File:Cyan Balloon BE1.png|32px]] [[File:Purple Balloon BE1.png|32px]] [[File:Blue Balloon BE1.png|32px]] [[File:Brown Balloon BE1.png|32px]] [[File:Green Balloon BE1.png|32px]] [[File:Red Balloon BE1.png|32px]] [[File:Black Balloon BE1.png|32px]] <br> [[File:White Balloon (item) BE1.png|32px]] [[File:Orange Balloon (item) BE1.png|32px]] [[File:Magenta Balloon (item) BE1.png|32px]] [[File:Light Blue Balloon (item) BE1.png|32px]] [[File:Yellow Balloon (item) BE1.png|32px]] [[File:Lime Balloon (item) BE1.png|32px]] [[File:Pink Balloon (item) BE1.png|32px]] [[File:Gray Balloon (item) BE1.png|32px]] [[File:Silver Balloon (item) BE1.png|32px]] [[File:Cyan Balloon (item) BE1.png|32px]] [[File:Purple Balloon (item) BE1.png|32px]] [[File:Blue Balloon (item) BE1.png|32px]] [[File:Brown Balloon (item) BE1.png|32px]] [[File:Green Balloon (item) BE1.png|32px]] [[File:Red Balloon (item) BE1.png|32px]] [[File:Black Balloon (item) BE1.png|32px]] Added balloons.}}
{{History||1.18.10|snap=beta 1.18.10.24|[[Bee]]s, [[boat]]s, tamed [[cat]]s, [[dolphin]]s, [[glow squid]]s, [[goat]]s, [[hoglin]]s, [[ocelot]]s, [[panda]]s, [[parrot]]s, [[polar bear]]s, [[squid]]s, [[strider]]s, tamed [[wolves]] and [[zoglin]]s can now be leashed.}}
{{History||1.18.30|snap=beta 1.18.30.28|Added the [[boat with chest]], which can be leashed.}}

{{History|education}}
{{History||1.0.27|[[File:White Balloon BE1.png|32px]] [[File:Orange Balloon BE1.png|32px]] [[File:Magenta Balloon BE1.png|32px]] [[File:Light Blue Balloon BE1.png|32px]] [[File:Yellow Balloon BE1.png|32px]] [[File:Lime Balloon.png|32px]] [[File:Pink Balloon BE1.png|32px]] [[File:Gray Balloon BE1.png|32px]] [[File:Silver Balloon BE1.png|32px]] [[File:Cyan Balloon BE1.png|32px]] [[File:Purple Balloon BE1.png|32px]] [[File:Blue Balloon.png|32px]] [[File:Brown Balloon BE1.png|32px]] [[File:Green Balloon BE1.png|32px]] [[File:Red Balloon BE1.png|32px]] [[File:Black Balloon BE1.png|32px]] <br> [[File:White Balloon (item) BE1.png|32px]] [[File:Orange Balloon (item) BE1.png|32px]] [[File:Magenta Balloon (item) BE1.png|32px]] [[File:Light Blue Balloon (item) BE1.png|32px]] [[File:Yellow Balloon (item) BE1.png|32px]] [[File:Lime Balloon (item) BE1.png|32px]] [[File:Pink Balloon (item) BE1.png|32px]] [[File:Gray Balloon (item) BE1.png|32px]] [[File:Silver Balloon (item) BE1.png|32px]] [[File:Cyan Balloon (item) BE1.png|32px]] [[File:Purple Balloon (item) BE1.png|32px]] [[File:Blue Balloon (item) BE1.png|32px]] [[File:Brown Balloon (item) BE1.png|32px]] [[File:Green Balloon (item) BE1.png|32px]] [[File:Red Balloon (item) BE1.png|32px]] [[File:Black Balloon (item) BE1.png|32px]] Added balloons.}}
{{History||1.18.32|snap=1.18.10.04|[[Bee]]s, [[boat]]s, tamed [[cat]]s, [[dolphin]]s, [[glow squid]]s, [[goat]]s, [[hoglin]]s, [[ocelot]]s, [[panda]]s, [[parrot]]s, [[polar bear]]s, [[squid]]s, [[strider]]s, tamed [[wolves]] and [[zoglin]]s can now be leashed.}}
{{History|foot}}
==Gallery==

=== Colors ===
<gallery>
Orange Balloon.png
Magenta Balloon.png
Light Blue Balloon.png
Yellow Balloon.png
Lime Balloon.png
Pink Balloon.png
Gray Balloon.png
Light Gray Balloon.png
Cyan Balloon.png
Purple Balloon.png
Blue Balloon.png
Brown Balloon.png
Green Balloon.png
Red Balloon.png
Black Balloon.png
</gallery>

=== [[Event servers]] ===
<gallery>
File:Legends Balloon.png|Differently designed balloons featured in the ''[[Minecraft Legends Live Event]]''.
File:Sniffer Balloon (Trails and Tales Summer Event) Render.png|A [[Sniffer]] balloon, featured in the [[Trails & Tales Event]].
File:Camel Balloon (Trails and Tales Summer Event) Render.png|A balloon of a [[Camel]], featured in the Trails & Tales Event.
File:Balloon Bundle (Trails and Tales Summer Event) Render.png|Bundle of balloons from the Trails & Tales Event.
</gallery>{{Items}}
{{Entities}}
{{Education Edition}}

[[Category:Education Edition entities]]
[[Category:Education Edition items]]

[[de:Ballon]]
[[it:Palloncino]]
[[ja:風船]]
[[ko:풍선]]
[[pl:Balon]]
[[pt:Balão]]
[[ru:Воздушный шар]]
[[zh:气球]]</li><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></ul>
Pigman's texture file has been removed.
September 28, 2019Piglins are announced at MINECON Live 2019.
Piglin targeting BE1 Footage shown at MINECON Live shows that angered piglins raise their arms in a manner similar to zombies, a behavior not reflected in the final version.
December 5, 2019A video shows a piglin with a baby hoglin.
December 14, 2019An image of a hoglin and piglins is released.
January 14, 2020A video shows piglins picking up gold thrown by the player and throwing back a placeholder diamond.
March 4, 2020An official post on Crowdin[14] explains that the piglin was named such because it is a gender-neutral form of the word pigman.
1.16
{{Extension DPL}}<ul><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><li>[[Diamond|Diamond]]<br/>{{For}}
{{redirect|Diamonds|the achievement|Achievements#DIAMONDS!|the advancement|Advancements#Diamonds!}}
{{Item
| image = Diamond.png
| renewable = No
| stackable = Yes (64)
| rarity = Common}}
A '''diamond''' is a mineral that can only be obtained from [[Diamond Ore|diamond ore]], [[chest loot|loot chests]] and [[Suspicious Block|suspicious blocks]]. It is required to craft diamond [[tool]]s and [[armor]] (and therefore obtain [[obsidian]] to access the [[The Nether|Nether]]), [[enchanting table]]s, [[jukebox]]es and duplicate [[smithing template]]s.

== Obtaining ==
{{see also|Tutorials/Diamonds}}
=== Mining ===
{{see also|Diamond Ore#Natural generation}}
[[Diamond ore]] can be mined using an iron [[pickaxe]] or stronger. An ore drops a single diamond. If mined by any other tool, it drops nothing. If the pickaxe is enchanted with [[Fortune]], it can drop an extra diamond per level of Fortune, allowing for a maximum of 4 diamonds with Fortune III. If the ore is mined using a pickaxe enchanted with [[Silk Touch]], it drops an ore block rather than a diamond. The ore is found at level 15 or lower, most commonly between -50 and -64; levels -58 and -59 are the preferred levels to mine at since they don't contain [[bedrock]], as it starts spawning at -60.

=== Chest loot ===
{{LootChestItem|diamond}}

=== Suspicious sand ===

When brushing [[suspicious sand]] in [[desert pyramid]]s, they have a {{frac|1|7}} chance to drop a diamond.

=== Crafting ===
{{Crafting
|Block of Diamond
|Output= Diamond,9
|type= Material
}}

=== Smelting ===
{{Smelting
|showname=1
|Diamond Ore; Deepslate Diamond Ore
|Diamond
|1
}}

== Usage ==

Diamonds are mainly used to craft high-tier armor and equipment, which in turn are also used in making [[netherite]] armor and equipment. 

=== Crafting ingredient ===

{{crafting usage}}

=== Trading ===

{{IN|bedrock}}, expert-level armorer, toolsmith, and weaponsmith villagers buy one diamond for an emerald as part of their trades.

{{IN|java}}, journeyman-level armorer villagers have a 40% chance of offering to buy one diamond for one emerald. Expert-level toolsmith villagers have {{frac|2|3}} chance of offering to buy one diamond for one emerald. Expert-level weaponsmith villagers always offer to buy one diamond for one emerald.

=== Repairing ===

Diamonds are the repair items for the diamond [[tier]] and [[armor material]], and thus can be used to [[item repair|repair]] the following items in an [[anvil]] or [[grindstone]]:
* {{ItemLink|Diamond Helmet}}
* {{ItemLink|Diamond Chestplate}}
* {{ItemLink|Diamond Leggings}}
* {{ItemLink|Diamond Boots}}
* {{ItemLink|Diamond Sword}}
* {{ItemLink|Diamond Pickaxe}}
* {{ItemLink|Diamond Axe}}
* {{ItemLink|Diamond Shovel}}
* {{ItemLink|Diamond Hoe}}

=== Beacons ===

Diamonds can be used to select powers from a [[beacon]]. The player must select one of the available powers then insert a diamond into the item slot. 

A diamond can be substituted for an [[iron ingot]], a [[gold ingot]], an [[emerald]] or a [[netherite ingot]].

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

;Trim color palette
The following color palettes are shown on the designs on trimmed armor:
*{{TrimPalette|diamond}}
*{{TrimPalette|diamond|darker=1}} (a darker color palette is used when a diamond armor piece is trimmed using a diamond).

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Diamond
|spritetype=item
|nameid=diamond
|itemtags=beacon_payment_items
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Diamond
|spritetype=item
|nameid=diamond
|id=304
|form=item
|foot=1}}

== Achievements ==

{{load achievements|DIAMONDS!;Diamonds to you!;Enchanter}}

== Advancements ==

{{load advancements|Diamonds!}}

== History ==

{{History|java indev}}
{{History||0.31|snap=20100128|[[File:Diamond JE1 BE1.png|32px]] Added diamonds. Initially, they were referred to as "emeralds".
|A stack of 100 diamonds can be found inside the  [[Indev house]] [[chest]]s.}}
{{History|||snap=20100129|Diamond can be used to craft [[diamond block]]s and diamond [[sword]]s, [[shovel]]s, [[pickaxe]]s and [[axe]]s.
|Diamonds can no longer be found inside the Indev House due to all items having been removed from its chests.
|Diamond can be obtained by smelting diamond blocks.}}
{{History|||snap=20100130|[[Emerald]]s from the previous version are now officially known as "diamonds", though this has no actual effect as item names are not yet displayed in-game.
|[[Diamond block]]s now require 9 diamonds (3×3) instead of 4 (2×2) to be [[crafting|crafted]], making them much more expensive.}}
{{History||20100206|Diamonds are now used to craft diamond [[hoe]]s.}}
{{History||20100212-1|Diamonds are now used to craft diamond [[helmet]]s, [[chestplate]]s, [[leggings]] and [[boots]].}}
{{History|java alpha}}
{{History||v1.0.14|Diamonds are now used to craft [[jukebox]]es.}}
{{History|java beta}}
{{History||1.8|snap=Pre-release|Diamonds are now found in [[mineshaft]] [[chest]]s.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 2|[[Diamond ore]] can now be [[smelting|smelted]] into diamonds.}}
{{History|||snap=Beta 1.9 Prerelease 3|Diamonds are now used to craft [[enchantment table]]s.
|Diamonds are now found in [[stronghold]] altar [[chest]]s.}}
{{History||1.1|snap=12w01a|Diamonds are now found in [[village]] [[villager|blacksmith]] [[chest]]s.}}
{{History||1.3.1|snap=12w21a|Diamonds can now be [[trading|traded]] to blacksmith [[villager]]s in quantities of 3–5 for 1 [[emerald]].
|Added [[desert temple]]s, with a hidden [[chest]] room and loot containing diamonds.}}
{{History|||snap=12w21b|Diamonds have been changed in the game code from "emerald" to "diamond", due to actual [[emerald]]s being added. Diamond's original name during [[Indev]], as stated above, was emerald in the code, and was kept this way until this snapshot.}}
{{History|||snap=12w22a|Added [[jungle temple]]s, which contain loot [[chest]]s with diamonds.}}
{{History|||snap=1.3|[[File:Diamond JE2 BE2.png|32px]] The texture of diamonds has been changed.}}
{{History||1.4.6|snap=12w49a|Diamonds can now be used to [[crafting|craft]] a [[firework star]] with a trail.}}
{{History||1.6.1|snap=13w16a|Diamond is now used to craft diamond [[horse armor]].}}
{{History|||snap=13w18a|Diamond is no longer used to craft diamond [[horse armor]].|Diamonds are now found in [[nether fortress]] [[chest]]s.}}
{{History||1.8|snap=14w02a|Diamonds can now be [[traded]] to any black apron [[villager]] in quantities of 3–4 for 1 [[emerald]], as their tier III trade.}}
{{History||1.9|snap=15w31a|Diamonds now generate in [[end city]] [[chest]]s.}}
{{History|||snap=15w43a|The average yield of diamonds have been slightly decreased in [[nether fortress]] chests.}}
{{History|||snap=15w44a|The average yield of diamonds in [[desert temple]] and [[mineshaft]] chests have been decreased.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 264.}}
{{History|||snap=18w10a|Diamonds now generate in [[buried treasure]] [[chest]]s.}}
{{History|||snap=18w11a|Diamonds now generate in [[shipwreck]] treasure chests.}}
{{History||1.14|snap=18w43a|[[File:Diamond JE3 BE3.png|32px]] The texture of diamonds has been changed.}}
{{History|||snap=18w50a|Diamonds can now be found in [[chest]]s in [[village]] toolsmith houses.}}
{{History||1.16|snap=20w16a|Diamonds now generate in bastion remnants chests.}}
{{History||1.16.2|snap=20w30a|The chance of finding diamonds in bastion remnant chests is increased from 8.6% to 15.8%.}}
{{History||1.17|snap=21w08a|Diamonds can now drop and be smelted from [[deepslate diamond ore]].}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w04a|Diamonds can now be used to craft [[smithing template]]s.
|Diamonds can now be used as an armor trim material.}}
{{History|||snap=23w07a|Diamonds now drop when brushing [[suspicious sand]] in [[desert pyramid]]s.}}
{{History||1.20|snap=23w12a|The probability for the diamond to generate in the [[suspicious sand]] in [[desert temple]] has been changed from 1/7 to 1/8.}}

{{History|pocket alpha}}
{{History||v0.2.0|[[File:Diamond JE1 BE1.png|32px]] Added diamonds. They are currently unobtainable and serve no purpose.}}
{{History||v0.3.2|Diamonds can be collected and used to craft [[blocks of diamond]] and diamond [[axe]]s, [[pickaxe]]s, [[sword]]s and [[shovel]]s.}}
{{History||v0.4.0|Diamonds are now used to [[crafting|craft]] diamond [[hoe]]s.}}
{{History||v0.5.0|Diamonds are now used to craft [[nether reactor core]]s.}}
{{History||v0.6.0|Diamonds are now used to craft diamond [[armor]].}}
{{History||v0.8.0|snap=build 1|[[File:Diamond JE2 BE2.png|32px]] The texture of diamonds has been changed.}}
{{History||v0.12.1|snap=build 1|Diamonds are now used to craft [[enchanting table]]s.
|Diamonds are no longer used to craft [[nether reactor core]]s and are now instead dropped by it.
|Diamonds now generate in [[nether fortress]] [[chest]]s.}}
{{History||v0.13.0|snap=build 1|Diamonds now have a chance to generate in [[desert temple]] chests.}}
{{History||v0.14.0|snap=build 1|Diamonds are now found in [[minecart with chest]]s in [[mineshaft]]s.}}
{{History||v0.15.0|snap=build 1|Diamonds can now be found in [[jungle temple]] [[chest]]s.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Diamonds can now be found in altar [[chest]]s in [[stronghold]]s, [[dungeon]] chests and [[end city]] chests.}}
{{History|||snap=alpha 1.0.0.0|Diamonds can now be found in [[villager|blacksmith]] [[chest]]s in [[village]]s.}}
{{History||1.0.4|snap=alpha 1.0.4.0|3-4 diamonds can now be traded to blacksmith [[villager]]s for an [[emerald]] as part of their third tier trades.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Diamonds can now be used to [[crafting|craft]] a [[firework star]] with a trail. 
|Diamonds can now be used to craft [[jukebox]]es.}}
{{History||1.4.0|snap=beta 1.2.14.2|Diamonds can now be found inside [[buried treasure]] [[chest]]s and [[shipwreck]]s.}}
{{History||1.10.0|snap=beta 1.10.0.3|Diamonds can now be found in [[plains]] [[village]] weaponsmith chests.
|[[File:Diamond JE3 BE3.png|32px]] The texture of diamonds has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Diamonds can now be found in village toolsmith chests and in [[savanna]], [[desert]], [[taiga]], and [[snowy taiga]] village weaponsmith chests.}}
{{History|||snap=beta 1.11.0.4|Armorer, toolsmith, and weaponsmith [[villager]]s now [[trading|buy]] one diamond for an [[emerald]] as part of their fourth tier [[trading|trades]].}}
{{History||1.16.0|snap=beta 1.16.0.57|Diamonds can now be found in [[bastion remnant]] chests.}}
{{History||1.17.0|snap=beta 1.16.230.52|Diamonds can now drop and be smelted from [[deepslate diamond ore]].}}
{{History||1.20.0<br>(Experimental)|link=Bedrock Edition 1.19.70|snap=beta 1.19.70.23|Diamonds now drop when brushing [[suspicious sand]] in [[desert pyramid]]s.}}
{{History||1.20.0<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.21|Diamonds can now be used to craft [[smithing template]]s.
|Diamonds can now be used as an armor trim material.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Diamond JE1 BE1.png|32px]] Added diamonds.}}
{{History||xbox=TU5|Diamonds are now found in the new [[mineshaft]] [[chest]]s.}}
{{History||xbox=TU7|Diamonds are now used to craft [[enchantment table]]s.}}
{{History||xbox=TU9|Diamonds are now found in [[village]] [[villager|blacksmith]] [[chest]]s.}}
{{History||xbox=TU14|ps=1.04|Diamonds can now be [[trading|traded]] to blacksmith [[villager]]s in quantities of 3–5 for 1 [[emerald]].
|Added [[desert temple]]s, with a hidden [[chest]] room and loot containing diamonds.|Added [[jungle temple]]s, which contain loot [[chest]]s with diamonds.|[[File:Diamond JE2 BE2.png|32px]] The texture of diamonds has been changed.}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|Diamonds can now be used to [[crafting|craft]] a [[firework star]] with a trail|Diamonds are now found in the new [[nether fortress]] [[chest]]s.}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|Diamonds can now be [[traded]] to any black apron [[villager]] in quantities of 3–4 for 1 [[emerald]], as their tier III trade.}}
{{History||xbox=TU46|xbone=CU36|ps=1.36|wiiu=Patch 15|Diamonds now generate in [[end city]] [[chest]]s.}}
{{History||xbox=TU69|xbone=none|ps=1.76|wiiu=Patch 38|switch=none|Diamonds now generate in [[buried treasure]] [[chest]]s.|Diamonds now generate in [[shipwreck]] treasure chests.}}
{{History||xbox=none|ps=1.90|wiiu=none|[[File:Diamond JE3 BE3.png|32px]] The texture of diamonds has been changed.}}

{{History|new3DS}}
{{History||0.1.0|[[File:Diamond JE2 BE2.png|32px]] Added diamonds.}}
{{History|foot}}

==Issues==
{{issue list}}

==Trivia==
*Unlike in ''Minecraft'', newly mined [[Wikipedia:Diamond|diamond]]s in real life are rough, cloudy stones. The largest, purest ones are polished into crystal-clear gemstones, while the rest are used in industry for cutting and grinding.
*Although diamonds themselves are not renewable, all tools, weapons, and armor made from diamonds can be acquired through [[trading]], and are therefore renewable. Other items crafted from diamonds are not renewable.
*In the April fools version [[Java Edition 2.0]], [[Diamond Chicken|diamond chickens]] can lay diamonds. This does not exist in newer versions, as this was a joke.
*The item forms of diamonds and [[Turtle Egg|turtle eggs]] have the same shape.

==Gallery==
<gallery>
File:DiamondOre.png|Naturally occurring diamonds.
File:MultipleOreBlobs.png|Multiple ore blobs.
File:Lava Diamond.png|Diamond ore near Lava.
File:Diamond ore blob.png|Another Diamond ore blob near Lava.
File:10 ore diamond blob.png|10 ore diamond blob.
File:Trading a diamond for an emerald.png|A blacksmith offering an [[emerald]] for a diamond.
File:Diamond Pendant Necklace JINX.jpg|Official diamond pendant made by [https://www.jinx.com JINX].
File:All Mine JINX.jpg|Official t-shirt artwork "All Mine" which features a diamond. Made by JINX
File:4 ways of viewing 12 diamonds in stone form.png|4 ways of viewing 12 diamonds in stone form
</gallery>

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory--diamond Taking Inventory: Diamond] – Minecraft.net on February 20, 2019

{{items}}

[[cs:Diamant]]
[[de:Diamant]]
[[el:Διαμάντι]]
[[es:Diamante]]
[[fr:Diamant]]
[[hu:Gyémánt]]
[[it:Diamante]]
[[ja:ダイヤモンド]]
[[ko:다이아몬드]]
[[nl:Diamant]]
[[pl:Diament]]
[[pt:Diamante]]
[[ru:Алмаз]]
[[th:เพชร]]
[[tr:Elmas]]
[[uk:Діамант]]
[[zh:钻石]]
[[Category:Non-renewable resources]]</li></ul>
20w07aPiglin Baby Piglin Added piglins and baby piglins.
Piglin with Crossbow Piglins can hold crossbows.
Piglins can be converted into zombie pigmen in the Overworld.
The player can barter with Piglins.
20w09aPiglins now have an IsImmuneToZombification data value that, when set, prevents them from zombifying in the Overworld.
The loot table of items that can be bartered from piglins has been modified.
Baby Piglin Riding a Baby Hoglin Baby piglins can now ride on the back of baby hoglins.
20w10aThe loot table of items that can be bartered from piglins has been modified again.
20w11aEnchanted books and iron boots with Soul Speed have been added to the items that can be bartered from piglins.
20w12aThree Baby Piglins climbing a Baby Hoglin Baby piglins can now ride on top of each other on a baby hoglin, up to three baby piglins can climb on at once.
20w14aPiglins now avoid zoglins, the same way they avoid zombified piglins.
Baby piglins no longer have a weapon when they turn into a zombie.
The texture size has changed from 128x64 to 64x64, and the layout of the parts of the ears of piglins has been changed.
20w16aPiglins now spawn in bastion remnants.
20w19aPiglins now become zombified piglins when in the End.
20w21aPiglins no longer walk around when admiring gold.
If a piglin is hurt while admiring an gold ingot, the ingot now disappears.
20w22aPiglin celebrate hunt Revision 1 Piglins now occasionally dance after defeating a hoglin.
Piglin Attacking with melee weapon Piglins now have the vindicator attacking animation when melee attacking.
pre3The position of the head of piglins when they are dancing has been changed from Piglin celebrate hunt Revision 1 to Piglin celebrate hunt Revision 2.
pre6Adult piglins now may spawn with enchanted gears.
1.16.2
{{Extension DPL}}<ul><li>[[Minecart with TNT|Minecart with TNT]]<br/>{{ItemEntity
|image=Minecart with TNT.png
|renewable=Yes
|stackable=No
|size=Height: 0.7 Blocks<br>Width: 0.98 Blocks
|networkid='''[[JE]]:''' 10
|drops=
;If not exploded
: 1 {{ItemLink|Minecart with TNT}}
|health={{hp|6}}
}}

A '''minecart with TNT''' is a block of [[TNT]] inside a [[minecart]]. Unlike normal TNT it can detonate instantly under certain conditions and its damage and blast radius is increased by its speed when it detonates.

== Obtaining ==

=== Crafting ===

{{Crafting
|Output= Minecart with TNT
|type= Transportation
|TNT|Minecart}}
Minecarts with TNT can be retrieved by attacking them, and by doing so it drops as an [[item]].

== Usage ==
[[File:TNT minecart and powered activator rail.png|thumb|right|When the TNT minecart passes over the powered activator rail, it explodes after four seconds.]]
[[File:Simple TNT minecart detonator setup.png|thumb|right|Placing two TNT minecarts on the rail and powering it (here, by flicking the lever) creates an instant explosion.]]
[[File:TNT minecart roof trap.png|thumb|right|Destroying the gold block causes the TNT minecart to fall down and instantly explode.]]

A minecart with TNT detonates after a delay on these conditions:
* It moves over a powered [[activator rail]].
* It is destroyed while in motion (except by a player in Creative mode).
* It is destroyed by fire, lava, or an explosion.
*{{IN|java}}, it is hit by a [[fire charge]].

The delay is {{convert|4|seconds|ticks}} for an activator rail, like the TNT block. For other causes there is a random delay between 0 and 1.9 seconds, but more likely to be close to 1.

It detonates instantly on these conditions:

* It hits the ground with a downward velocity of it falling more than three blocks, unless landing on any form of rail.
* It turns on a curved track too fast, with a solid block or entity located beside the track (in the previous movement direction).
* It is hit by a flaming arrow.
* It is pressed into a block or entity and has velocity.

Upon detonation it acts as normal TNT, [[exploding]] and damaging nearby blocks, players, and entities. Upon detonation after activating on activator rail, it does not destroy its rails and the blocks the rail is on, however other nearby carts can.{{only|java}} More than one minecart can be placed on the same rail block, allowing many of them to fit into a single block. They explode when touched, dealing large amounts of damage.

The explosion has a base [[Explosion#Explosion strength|power]] of 4, the same as regular TNT, but the game also adds a random bonus value up to 1.5 times velocity, but no higher than 7.5. This means that with a speed of 5 or higher the power will be a random value between 4 and 11.5. When triggered by an activator rail or by damage, the bonus value is calculated using the horizontal velocity of the minecart. When hit by a flaming arrow the velocity of the arrow is used instead. When triggered by fall damage, the fall distance divided by 10 is used.

Minecarts with TNT bounce off of other minecarts and cannot be linked to [[minecarts with furnace]]s.

== Sounds ==
{{Edition|Java}}:<br>
Minecarts with TNT use the Friendly Creatures sound category for entity-dependent sound events.<ref group=sound name=rollsource>{{bug|MC-42132}}</ref>
{{Sound table
|sound=Minecart rolling.ogg
|subtitle=Minecart rolls
|source=Friendly Creatures <ref group=sound name=rollsource/>
|overridesource=1
|description=While a minecart with TNT is moving
|id=entity.minecart.riding
|translationkey=subtitles.entity.minecart.riding
|volume=0.0-0.35 <ref group=sound>Relates linearly with horizontal velocity (max 0.5)</ref>
|pitch=0.0-1.0 <ref group=sound>Will increase by 0.0025 per tick if the minecart's horizontal velocity is more than 0.01</ref>
|distance=16}}
{{Sound table
|sound=Fuse.ogg
|subtitle=TNT fizzes
|source=block
|description=When a minecart with TNT is primed
|id=entity.tnt.primed
|translationkey=subtitles.entity.tnt.primed
|volume=1.0
|pitch=1.0
|distance=16}}
{{Sound table
|sound=Explosion1.ogg
|sound2=Explosion2.ogg
|sound3=Explosion3.ogg
|sound4=Explosion4.ogg
|subtitle=Explosion
|source=block
|description=When a minecart with TNT explodes
|id=entity.generic.explode
|translationkey=subtitles.entity.generic.explode
|volume=4.0
|pitch=0.56-0.84
|distance=16
|foot=1}}

{{Edition|Bedrock}}:<ref group=sound>{{Bug|MCPE-35778||Minecart with tnt does not have the sound of tnt being ignited when we use flint and steel, fire charge or activator rail}}</ref>
{{Sound table
|type=bedrock
|sound=Minecart rolling.ogg
|source=neutral
|description=While a minecart with TNT is moving
|id=minecart.base}}
{{Sound table
|sound=Explosion1.ogg
|sound2=Explosion2.ogg
|sound3=Explosion3.ogg
|sound4=Explosion4.ogg
|source=block
|description=When a minecart with TNT explodes
|id=random.explode
|volume=4.0
|pitch=1.0
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|firstcolumnname=Item
|showforms=y
|generatetranslationkeys=y
|displayname=Minecart with TNT
|spritetype=item
|nameid=tnt_minecart
|form=item
|foot=1}}
{{ID table
|edition=java
|firstcolumnname=Entity
|generatetranslationkeys=y
|displayname=Minecart with TNT
|spritetype=entity
|nameid=tnt_minecart
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Item
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Minecart with TNT
|spritetype=item
|nameid=tnt_minecart
|id=525
|form=item
|foot=1}}
{{ID table
|edition=bedrock
|firstcolumnname=Entity
|shownumericids=y
|generatetranslationkeys=y
|displayname=Minecart with TNT
|spritetype=entity
|nameid=tnt_minecart
|id=97
|foot=1}}

=== Entity data ===
Minecarts with TNT 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]].

== Video ==

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

== History ==
{{History|java}}
{{History||1.5|snap=13w02a|[[File:Minecart_with_TNT_JE1_BE1.png|32px]] [[File:Minecart_with_TNT_(item)_JE1_BE1.png|32px]] Added minecart with TNT.}}
{{History|||snap=13w03a|Minecart with TNT no longer destroys nearby [[rail]]s and rail supports during [[explosion]].<ref>{{bug|MC-6833}}</ref>}}
{{History||1.8|snap=14w11a|Minecart with TNT explosions no longer stack.<!--reverted in 17a like other changes in 11a?-->}}
{{History|||snap=14w26a|Minecart with TNT can now be detonated using [[arrow]]s on fire.}}
{{History||1.11|snap=16w32a|The [[entity]] ID for minecart with TNT has been changed from <code>MinecartTNT</code> to <code>tnt_minecart</code>.}}
{{History||1.12|snap=1.12-pre6|No longer instantly explode when hit with [[fire charge]]s; instead, they explode as if primed by an [[activator rail]].}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 407.}}
{{History||1.14|snap=18w43a|[[File:Minecart with TNT JE2 BE2.png|32px]] [[File:Minecart with TNT (item) JE2 BE2.png|32px]] The textures of minecart with TNT have been updated.}}
{{History|||snap=19w11a|Minecart with TNT explosions now have a 100% drop rate.}}
{{History||1.15|snap=19w38a|[[File:Minecart with TNT 19w38a.png|32px]] The TNT now appear dark, same as suffocating mobs.}}
{{History|||snap=19w39a|The TNT texture now colored correctly.}}
{{History||1.15|snap=Pre-release 1|[[File:Minecart with TNT JE3.png|32px]] The [[model]] of minecart with TNT has been changed.<ref>{{bug|MC-165971}}</ref>}}
{{History|||snap=Pre-release 3|[[File:Minecart with TNT JE2 BE2.png|32px]] The model of minecart with TNT has been changed back to the [[Java Edition 18w43a|18w43a]] model.}}
{{History||1.19|snap=22w13a|The crafting recipe for a minecart with TNT is now shapeless.
|Breaking a minecart with TNT will now drop the item instead of the minecart and TNT separately.<ref>{{bug|MC-249493|||Fixed}}</ref>}}

{{History|pocket alpha}}
{{History||v0.14.0|snap=build 1|[[File:Minecart with TNT JE1 BE1.png|32px]] [[File:Minecart with TNT (item) JE1 BE1.png|32px]] Added minecart with TNT.}}
{{History|pocket}}
{{History||1.1.0|snap=alpha 1.1.0.0|The [[entity]] ID has been changed from <code>minecarttnt</code> to <code>tnt_minecart</code>.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Minecart with TNT JE2 BE2.png|32px]] [[File:Minecart with TNT (item) JE2 BE2.png|32px]] The textures of minecart with TNT have been updated.}}
{{History||1.19.0|snap=beta 1.19.0.30|Breaking a minecart with TNT will now drop the item instead of the minecart and TNT separately.}}

{{History|console}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Minecart with TNT JE1 BE1.png|32px]] [[File:Minecart with TNT (item) JE1 BE1.png|32px]] Added minecart with TNT.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Minecart with TNT JE2 BE2.png|32px]] [[File:Minecart with TNT (item) JE2 BE2.png|32px]] The textures of minecart with TNT have been updated.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Minecart with TNT JE1 BE1.png|32px]] [[File:Minecart with TNT (item) JE1 BE1.png|32px]] Added minecart with TNT.
|Minecart with TNT emits smoke [[particle]]s when destroyed.}}
{{History|foot}}

== Issues ==

{{issue list}}

== Trivia ==

* A direct hit from three merged [[minecart]]s with [[TNT]] can reduce a fully [[diamond]] [[armor]]ed player to half a heart.<ref>{{tweet|dinner|289532985340993536|Haha, oops... Nuclear minecarts! (mature language)|January 10, 2013}}</ref> However, if the TNT minecarts explode, they do not destroy any [[rail]]s.

== Gallery ==

<gallery>
File:First TNT Minecart Image.jpg|The first image of minecarts with TNT, released by Dinnerbone.<ref>{{tweet|dinner|288302629803683840|Those blasted pigs have taken the village. We've ran out of options; we must stop them from spreading further!|January 7, 2013}}</ref><ref>{{tweet|dinner|288304442560880643|(Mirror: <nowiki>[imgur link])|January 7, 2013}}</ref> (One can be seen in the lower-left corner.)
File:First TNT Minecart Image ZOOM.jpg|A more zoomed in image.
File:Minecart-with-tnt.png|Minecart with TNT and activator rail for detonation.
File:13w02a Banner.png|The 13w02a banner, with a minecart with TNT and a [[hopper]].
File:Dinnerbone safe boom1.jpg|Dinnerbone showing how minecarts with TNT have controlled explosions.<ref>{{tweet|dinner|291212723755307009|What's the point of properly activating TNT carts if they just blow up your tracks? Let me answer that with an album!|January 15, 2013}}</ref>
File:Dinnerbone safe boom 2.png|Primed minecart with TNT.
File:Dinnerbone safe boom 3.jpg|Explosion from a minecart with TNT. (The "bridge" of rails is left undestroyed by the explosion.)
</gallery>

== References ==

{{reflist}}

{{items}}
{{entities}}

[[Category:Mechanics]]

[[cs:Vozík s TNT]]
[[de:TNT-Lore]]
[[es:Vagoneta con dinamita]]
[[fr:Wagonnet à TNT]]
[[it:Carrello da miniera]]
[[ja:TNT付きのトロッコ]]
[[ko:TNT가 실린 광산 수레]]
[[nl:Mijnkar met TNT]]
[[pl:Wagonik z TNT]]
[[pt:Carrinho de mina com dinamite]]
[[ru:Вагонетка с ТНТ]]
[[uk:Вагонетка з динамітом]]
[[zh:TNT矿车]]</li><li>[[Enchanted Book|Enchanted Book]]<br/>{{About|the book that can give items enchantments when used on an anvil|the artifact that can enchant allied mobs in Minecraft Dungeons|Enchanter's Tome}}
{{Item
| image = Enchanted Book.gif
|imagesize=160px
| stackable = No
| renewable =  '''Swift Sneak''': No<br>'''All others''': Yes
| rarity = Uncommon 
}}

An '''enchanted book''' is an [[item]] that lets players add [[enchantments]] to certain items using an [[anvil]].

== Obtaining ==

=== Chest loot ===

==== Level-30 books ====
{{LootChestItem|enchanted-book}}

==== Random enchantment books ====
{{LootChestItem|enchanted-book-rnd}}

==== Soul Speed books ====
{{LootChestItem|enchanted-book-rnd-soul-speed}}

==== Swift Sneak books ====
{{LootChestItem|enchanted-book-rnd-swift-sneak}}

===Fishing===
Enchanted books can be obtained as a "treasure" item from [[fishing]] with a [[fishing rod]] as part of the "treasure" category. The book has the equivalent of a level 30 enchantment from an enchantment table, but treasure enchantments are available and the chance of multiple enchantments is not reduced.

=== Trading ===

{{IN|bedrock}}, librarian [[villager]]s have a 50% chance to sell enchanted books as part of their trades at novice, apprentice, and journeyman-level, and have {{frac|1|3}} chance to sell enchanted books at expert-level as part of their trades, meaning each librarian villager can sell up to four books. The price ranges between 5-64 [[emerald]]s per book. Based on the level of the enchantment and whether it is classified as a "[[Enchanting mechanics|treasure enchantment]]" (meaning they are not obtainable by enchanting, e.g. [[Mending]]), which doubles the cost, or not a price is determined.

{{IN|java}}, librarian villagers have a {{frac|2|3}} chance to sell an enchanted book as part of their trades at the novice, apprentice, and journeyman level, and have a 50% chance to sell an enchanted book at the expert level, meaning each librarian can sell up to four books. The price ranges from 5-64 [[emerald]]s per book, depending on the enchantment's level as well as whether or not it is a [[Enchanting mechanics|treasure enchantment]].
{| class="fandom-table"
|+Cost of Enchanted Books based on their level
!Level
!Lowest Price
!Highest Price
|-
|I (1)
|5
|19
|-
|II (2)
|8
|32
|-
|III (3)
|11
|45
|-
|IV (4)
|14
|58
|-
|V (5)
|17
|71 (capped at 64)
|}
They may contain any available enchantment (except Soul Speed and Swift Sneak) at any available level. See [[Trading#cite_note-enchanted-book-10|trading notes]] for more information on enchantments and prices.

===Drops ===
Vindicators and pillagers that spawn from raids have a small chance to drop an enchanted book with a level 30 enchantment, which may be a treasure enchantment.{{only|bedrock}}

===Enchanting===

[[File:Enchanted Book 4x.png|thumb|An enchanted book with multiple high level enchantments.]]
[[File:Similar enchantments.png|thumb|An enchanted book with multiple enchantments that can be applied to the same item.]]

Players can create an enchanted book by enchanting a [[book]] on an [[enchantment table]]. Books have a decreased chance of getting multiple enchantments (specifically, if multiple enchantments would be added, then one is removed at random), and have a lower "enchantability level" than most other items. Treasure enchantments such as Mending cannot be obtained from an enchantment table.

=== Bartering ===
Players can barter with [[piglin]]s by using or throwing [[gold ingot]]s, and doing so has a {{frac|5|459}} chance for piglins to give the player an enchanted book with any level of [[Soul Speed]]. Soul Speed enchanted books are only obtainable through [[bartering]], [[chest]] loot inside a bastion remnant, and [[fishing]]. They cannot be obtained through [[enchanting]] or [[trading]].

== Usage ==
{{see also|Anvil mechanics}}

In Survival, enchanted books are the only method to obtain certain enchantments on certain tools, such as Unbreaking on [[shield]]s. Enchanted books have a shine effect on their sprite.

To use an enchanted book, the player must place an item in the first slot in an [[anvil]], and a book in the next. In order to complete the enchantment, the player must have the required amount of [[experience]]. Note that using an enchanted book gets significant discounts at the anvil. Enchanted books themselves can be combined to create a single book with increased or multiple enchantments, similar to combining tools or weapons.  

When combining items, the compatible enchantments from the book in the second slot are transferred to the item from the first slot, keeping the highest level of any type. If two enchantments have the same level and a higher level is available, they combine into the next level. If a book is applied to an item that can't take all of its spells, the appropriate spells are transferred, while the unusable ones are lost. Enchanted books are single-use. 

Enchanted books do not exhibit their enchantment. For example, a book with Sharpness IV as an enchantment does no more damage than an un-enchanted book, or any non-weapon item, would when used as a weapon. An exception is the Fire Aspect book which can ignite TNT and light campfires and the Mending book if the block mined can be broken by fist.{{only|bedrock}}

=== Available items ===
{{See also|Enchantments}}

Enchanted books can enchant the usual items that can be enchanted at an [[enchanting table]], but ''unlike an enchanting table'', they are able to boost enchantments such as Sharpness or Thorns to their maximum power, and may apply the following enchantments to items (the table displays only netherite tools and armor, but any type can be enchanted):
<!-- do not change the items listed in this table. It is supposed to show the items that can receive these enchantments from an enchanted book, but are NOT possible through an enchanting table. -->
{| class="wikitable" style="text-align: center;" data-description="Secondary enchantments"
|-
!Enchantment
!Items not enchantable<br>at an enchanting table
!Note
|-
|[[Efficiency]]
|{{simpleGrid|Shears}}{{simpleGrid|Netherite Pickaxe}}{{simpleGrid|Netherite Shovel}}{{simpleGrid|Netherite Axe}}{{simpleGrid|Netherite Hoe}}
|Increases mining speed
|-
|[[Thorns]]||{{simpleGrid|Netherite Helmet}}{{simpleGrid|Netherite Chestplate}}{{simpleGrid|Netherite Leggings}}{{simpleGrid|Netherite Boots}}
|Inflicts damage on attacker
|-
|[[Unbreaking]]
|{{simpleGrid|Shears}}{{simpleGrid|Flint and Steel}}{{simpleGrid|Fishing Rod}}{{simpleGrid|Carrot on a Stick}}{{simpleGrid|Warped Fungus on a Stick}}{{simpleGrid|Trident}}{{simpleGrid|Shield}}{{simpleGrid|Elytra}}<br>
{{simpleGrid|Netherite Pickaxe}}{{simpleGrid|Netherite Shovel}}{{simpleGrid|Netherite Axe}}{{simpleGrid|Netherite Hoe}}{{simpleGrid|Netherite Sword}}{{simpleGrid|Bow}}{{simpleGrid|Crossbow}}<br>
{{simpleGrid|Netherite Helmet}}{{simpleGrid|Netherite Chestplate}}{{simpleGrid|Netherite Leggings}}{{simpleGrid|Netherite Boots}}
|Increasing durability on enchanted tools/armors
|-
|[[Frost Walker]]
|{{simpleGrid|Netherite Boots}}
|Creates walkable ice layer over water

|-
|[[Mending]]
|{{simpleGrid|Netherite Helmet}}{{simpleGrid|Netherite Chestplate}}{{simpleGrid|Netherite Leggings}}{{simpleGrid|Netherite Boots}}<br>
{{simpleGrid|Netherite Pickaxe}}{{simpleGrid|Netherite Shovel}}{{simpleGrid|Netherite Axe}}{{simpleGrid|Netherite Hoe}}{{simpleGrid|Netherite Sword}}{{simpleGrid|Bow}}{{simpleGrid|Crossbow}}<br>
{{simpleGrid|Shears}}{{simpleGrid|Flint and Steel}}{{simpleGrid|Fishing Rod}}{{simpleGrid|Carrot on a Stick}}{{simpleGrid|Warped Fungus on a Stick}}{{simpleGrid|Trident}}{{simpleGrid|Shield}}{{simpleGrid|Elytra}}
|Uses XP Orbs to repair damaged tools/weapons/armors
|-
|[[Curse of Binding]]
|{{simpleGrid|Netherite Helmet}}{{simpleGrid|Netherite Chestplate}}{{simpleGrid|Netherite Leggings}}{{simpleGrid|Netherite Boots}}<br>{{simpleGrid|Elytra}}{{simpleGrid|Carved Pumpkin}}{{simpleGrid|Head}}
|Prevents removal of cursed item
|-
|[[Curse of Vanishing]]
|{{simpleGrid|Netherite Helmet}}{{simpleGrid|Netherite Chestplate}}{{simpleGrid|Netherite Leggings}}{{simpleGrid|Netherite Boots}}<br>
{{simpleGrid|Netherite Pickaxe}}{{simpleGrid|Netherite Shovel}}{{simpleGrid|Netherite Axe}}{{simpleGrid|Netherite Hoe}}{{simpleGrid|Netherite Sword}}{{simpleGrid|Bow}}{{simpleGrid|Crossbow}}<br>
{{simpleGrid|Shears}}{{simpleGrid|Flint and Steel}}{{simpleGrid|Fishing Rod}}{{simpleGrid|Carrot on a Stick}}{{simpleGrid|Warped Fungus on a Stick}}{{simpleGrid|Trident}}{{simpleGrid|Shield}}<br>{{simpleGrid|Elytra}}{{simpleGrid|Carved Pumpkin}}{{simpleGrid|Head}}<br>{{simpleGrid|Compass}}{{simpleGrid|Recovery Compass}}
|Cursed item is destroyed upon death
|-
|[[Soul Speed]]
|{{simpleGrid|Netherite Boots}}
|The wearer's speed is increased when walking on [[soul sand]] or [[soul soil]].
|-
|[[Swift Sneak]]
|{{simpleGrid|Netherite Leggings}}
|The wearer's sneaking speed is increased.
|}

=== Creative mode ===

The player can enchant any item with any enchantment in [[Creative]] mode, allowing any applied effects to exhibit themselves.{{only|java}} For example, a [[stick]] can be enchanted with [[Silk Touch]] to allow the player to successfully dig [[grass block]]s. The enchanted item can still be used in Survival mode without any loss of enchantments.

Enchantments that are normally incompatible are still incompatible; for example, Piercing and Multishot cannot be both applied to the same item, even in Creative mode.

If a block is enchanted, it loses the enchantment upon being placed in the world.

=== Disenchanting ===
Disenchanting an enchanted book at a [[grindstone]] yields a normal [[book]] and some experience depending on the quality of the book.

=== Chiseled bookshelf ===
{{control|Use|text=Using}} the [[chiseled bookshelf]] while having an enchanted book in the main hand will put the book inside the chiseled bookshelf.

== Sounds ==
{{edition|java}}:
{{Sound table
|sound=Chiseled bookshelf insert enchanted1.ogg
|sound2=Chiseled bookshelf insert enchanted2.ogg
|sound3=Chiseled bookshelf insert enchanted3.ogg
|sound4=Chiseled bookshelf insert enchanted4.ogg
|subtitle=Enchanted Book placed
|source=block
|description=When an enchanted book is placed in a chiseled bookshelf
|id=block.chiseled_bookshelf.insert.enchanted
|translationkey=subtitles.chiseled_bookshelf.insert_enchanted
|volume=0.8
|pitch=''varies'' <ref group=sound name=insertvaries>Can be 1.0, 0.85, or 1.1 for each sound</ref>
|distance=16}}
{{Sound table
|sound=Chiseled bookshelf pickup enchanted1.ogg
|sound2=Chiseled bookshelf pickup enchanted2.ogg
|sound3=Chiseled bookshelf pickup enchanted3.ogg
|subtitle=Enchanted Book taken
|source=block
|description=When an enchanted book is removed from a chiseled bookshelf
|id=block.chiseled_bookshelf.pickup.enchanted
|translationkey=subtitles.chiseled_bookshelf.take_enchanted
|volume=0.8
|pitch=''varies'' <ref group=sound name=pickupvaries>Can be 1.0, 0.8, or 1.1 for each sound</ref>
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|sound=Chiseled bookshelf insert enchanted1.ogg
|sound2=Chiseled bookshelf insert enchanted2.ogg
|sound3=Chiseled bookshelf insert enchanted3.ogg
|sound4=Chiseled bookshelf insert enchanted4.ogg
|source=block
|description=When an enchanted book is placed in a chiseled bookshelf
|id=insert_enchanted.chiseled_bookshelf
|volume=0.8
|pitch=''varies'' <ref group=sound name=insertvaries>Can be 1.0, 0.85, or 1.1 for each sound</ref>}}
{{Sound table
|sound=Chiseled bookshelf pickup enchanted1.ogg
|sound2=Chiseled bookshelf pickup enchanted2.ogg
|sound3=Chiseled bookshelf pickup enchanted3.ogg
|source=block
|description=When an enchanted book is removed from a chiseled bookshelf
|id=pickup_enchanted.chiseled_bookshelf
|volume=0.8
|pitch=''varies'' <ref group=sound name=pickupvaries>Can be 1.0, 0.8, or 1.1 for each sound</ref>
|foot=1}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showitemtags=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Enchanted Book
|spritetype=item
|nameid=enchanted_book
|id=521
|itemtags=minecraft:bookshelf_books</code>
|form=item
|foot=1}}

=== Item data ===

{{el|java}}:
{{main|Player.dat format}}
Enchanted books use an NBT tag <code>StoredEnchantments</code> to indicate the enchantment. 
The allowed sub-tags are <code>id</code> and <code>lvl</code>, equivalent to the format of the <code>Enchantments</code> tag that is used for enchantments applied to items.

''The following NBT structure is provided to show how the <code>StoredEnchantments</code> tag is organized, and is not comprehensive above the <code>tag</code> tag. The full NBT for an item can be found [[Chunk format#Items_and_XP_Orbs|here]].''

<div class="treeview" style="margin-top: 0;">
*{{nbt|compound|tag}}: The tag tag.
**{{nbt|list|StoredEnchantments}}: The list of enchantments on this book.
***{{nbt|compound}} An enchantment
****{{nbt|string|id}}: The enchantment name ID
****{{nbt|short|lvl}}: The enchantment level
</div>

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

==Advancements==
{{load advancements|Enchanter}}

==History==
{{History|java}}
{{History||November 24, 2012|link=none|[[Dinnerbone]] stated that he wanted to add a way to [[enchanting|enchant]] items in an [[anvil]] using [[paper]] at [[MINECON 2012]].}}
{{History||December 6, 2012|link={{tweet|Dinnerbone|276777823996366848}}|Dinnerbone released the first image of enchanting a diamond [[sword]] using an enchanted book that has [[Looting]] II for 6 levels. He also stated that "this is the reason I originally added the anvil."}}
{{History||1.4.6|snap=12w49a|[[File:Enchanted Book JE1 BE1.png|32px]] Added enchanted books. 
|The enchantments of enchanted books can be applied to any [[item]].}}
{{History|||snap=12w50a|In [[Survival]] mode, enchanted books can now be used with limited kind of items. In [[Creative]] mode, they can still be used with any item. It was stated that the remaining functionality in Creative mode is intentional.<ref>{{Tweet|Dinnerbone|277084371146665984|Also enchanted books + items they're not intended for are a little broken and I kindly ask you to not exploit it too badly thanks.|December 7, 2012}}</ref><ref>{{bug|MC-4203}}</ref>
|Librarian [[villager]]s now [[trading|sell]] enchanted books at a cost of 1 [[book]] at 5–64 [[emerald]]s. The cost depends on the [[enchanting|enchantment]] level, and the cost can occasionally go above 64 emeralds; see [[Trading/Before 1.8]] for more details.
|Enchanted books now spawn in [[dungeon]], [[mineshaft]], [[desert temple|desert]] and [[jungle temple|jungle]] temple, [[stronghold]] and [[village]] blacksmith [[chest]]s.}}
{{History|||snap=pre|Enchanted books have been added to the [[Creative inventory]]. All levels for each enchanted book can be found in the search tab, and only the maximum level in the ''Tools'' and ''Combat'' tabs.}}
{{History||1.5.1|snap=13w11a|The [[player]] can now combine enchanted books of the same level to create a higher level variation.}}
{{History||1.7.2|snap=13w36a|Enchanted books can now be obtained by [[fishing]] as a "treasure" [[item]]. It is possible for the book to have multiple enchantments.}}
{{History|||snap=13w39a|When [[enchanting]] books, [[book]]s can now gain multiple enchantments.}}
{{History||1.8|snap=14w02a|[[Trading]] for enchanted books has been changed: the [[emerald]] cost has been doubled for [[treasure enchantment]]s, and cost has been capped at 64.}}
{{History|||snap=14w25a|Enchanted book [[Depth Strider]] added, which can go up to Level III and allows for faster underwater moving.}}
{{History||1.9|snap=15w42a|Enchanted book [[Frost Walker]] added, which can go up to Level II and turns water into [[frosted ice]].
|Enchanted book [[Mending]] added, which repairs [[tools]]/[[armor]] upon receiving [[experience]].}}
{{History|||snap=15w43a|The average yield of enchanted books found in [[stronghold]] library [[chest]]s has now more than tripled.}}
{{History|||snap=15w44a|The average yield from [[desert temple]], [[mineshaft]] and [[dungeon]] chests has been substantially increased. The enchantments on these books are now fully random, rather than enchanted only at level 30.}}
{{History||1.11|snap=16w39a|Enchanted books are now found in the new [[woodland mansion]] chests, with fully random enchantments.
|Enchanted book [[Curse of Binding]] added, which prevents removal of cursed [[armor]].
|Enchanted book [[Curse of Vanishing]] added, which destroys cursed items upon [[death]].}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 403.}}
{{History|||snap=18w09a|Enchanted books now have a chance of generating in [[underwater ruins]] chests.}}
{{History||1.14|snap=18w43a|[[File:Enchanted Book JE2 BE2.png|32px]] The texture of enchanted books has been changed.}}
{{History|||snap=18w47a|Enchanted books now have a chance of generating in [[pillager outpost]] chests.}}
{{History||1.16|snap=20w11a|Added [[Soul Speed]] enchanted book, which increases player's speed on [[soul sand]] and [[soul soil]]. It can be obtained only via the [[bartering]].}}
{{History|||snap=20w16a|Soul Speed enchanted books now generate in [[bastion remnants]] chests.}}
{{History||1.19|snap=Deep Dark Experimental Snapshot 1|Added [[Swift Sneak]] enchanted book, which increases player's speed while sneaking. It can be obtained only in [[ancient city]] chests.
|Enchanted books now generate in [[ancient city]] chests.}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|Enchanted books can now interact with [[chiseled bookshelves]].}}

{{History|pocket alpha}}
{{History||v0.12.1|snap=build 1|[[File:Enchanted Book JE1 BE1.png|32px]] Added enchanted books. 
|All levels of each enchanted book can be obtained in the Creative inventory.}}
{{History||v0.13.0|snap=build 1|Enchanted books now generate in [[desert temple]]s.}}
{{History||v0.14.0|snap=build 1|Enchanted books now generate in [[mineshaft]]s.}} 
{{History||v0.15.0|snap=build 1|Enchanted books now generate in [[jungle pyramid]]s.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Enchanted books now generate in [[end city|end cities]].}}
{{History||1.0.4|snap=alpha 1.0.4.0|Enchanted books can now be [[trading|bought]] from librarian villagers for 5-64 emeralds as part of their tier 1, 4 and 5 trades.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Enchanted books now generate in [[woodland mansion]]s.
|Enchanted books [[Mending]] and [[Frost Walker]] added.}}
{{History|bedrock}}
{{History||1.2.13|snap=beta 1.2.13.5|Added Curse of Binding and Curse of Vanishing [[enchanting|enchantments]], but they are obtainable only via [[trading]] with librarian [[villager]]s.}}
{{History||1.4.0|snap=beta 1.2.20.1|Enchanted books can now be found in [[underwater ruins]].}}
{{History||1.4.0|snap=beta 1.2.20.2|Curse enchantments are no longer obtainable via trading.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Enchanted Book JE2 BE2.png|32px]] The texture of enchanted books has been changed.
|Enchanted books can now be found in [[pillager outpost]]s.}}
{{History||1.11.0|snap=beta 1.11.0.4|[[Vindicator]]s and [[pillager]]s that spawn in [[raid]]s can now [[drops|drop]] enchanted books.
|[[Trading]] has been changed, enchanted books [[trading|bought]] from librarian [[villager]]s now cost 15-64 [[emerald]]s.
|Librarian villagers now have a 50% chance to [[trading|sell]] enchanted books as part of their first, second, and third tier trade, and {{frac|1|3}} chance to sell enchanted books as part of their fourth tier trades.}}
{{History||1.16.0|snap=beta 1.16.0.57|Added [[Soul Speed]] enchanted book, which can be obtained only via [[bartering]] and at [[bastion remnants]] chests.}}
{{History||1.20.0<br>(Experimental)|link=Bedrock Edition 1.19.50|snap=beta 1.19.50.21|Enchanted books can now interact with [[chiseled bookshelves]].}}

{{History|console}}
{{History||xbox=TU14|xbone=CU1|ps=1.04|wiiu=Patch 1|[[File:Enchanted Book JE1 BE1.png|32px]] Added enchanted books.
|Only the maximum level of each enchanted book can be obtained within the Creative inventory.}}
{{History|PS4}}
{{History||1.90|[[File:Enchanted Book JE2 BE2.png|32px]] The texture of enchanted books has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Enchanted Book JE1 BE1.png|32px]] Added enchanted books.
|All levels of each enchanted book can be obtained in the Creative inventory.}}
{{History|foot}}

== Issues ==

{{Issue list}}

==Trivia==

*When obtained through the {{cmd|give}} command with no stored enchantments, the enchanted book has no attached enchantments, but still shines as if it is enchanted.
*A book enchanted with [[Unbreaking]] III appears in both the tools tab and combat tab of the [[Creative]] [[inventory]].

==Gallery==

<gallery>
File:Dinnerbones_enchanted_Books.png|First image of an enchanted book, released by Dinnerbone.
File:DungeonBook.png|An enchanted book found in a dungeon chest.
File:Enchanted_Book.gif|An animation of an enchanted book.
</gallery>

==References ==

{{reflist}}

{{Items}}

[[Category:Renewable resources]]

[[de:Verzaubertes Buch]]
[[es:Libro encantado]]
[[fr:Livre enchanté]]
[[hu:Varázskönyv]]
[[ja:エンチャントの本]]
[[ko:마법이 부여된 책]]
[[nl:Betoverd boek]]
[[pl:Zaklęta książka]]
[[pt:Livro encantado]]
[[ru:Зачарованная книга]]
[[th:หนังสือร่ายมนตร์]]
[[uk:Зачарована книга]]
[[zh:附魔书]]</li></ul></nowiki>
Pre-release 1Piglins now become angry with players who open or destroy a minecart with chest or a minecart with hopper.
1.16.3
{{Extension DPL}}<ul><li>[[Cooked Rabbit|Cooked Rabbit]]<br/>{{Item
| title = Cooked Rabbit
| image = Cooked Rabbit.png
| heals = {{hunger|5}}
| renewable = Yes
| stackable = Yes (64)
}}

'''Cooked rabbit''' is a [[food]] item that can be eaten by the [[player]].

== Obtaining ==

=== Mob loot ===

{{IN|Bedrock}}, adult [[rabbit]]s drop 0–1 cooked rabbit if killed while on fire. The maximum amount is increased by 1 per level of [[Looting]], for a maximum of 0–4 with Looting III.

{{IN|Java}}, adult [[rabbit]]s drop 1 cooked rabbit if killed while on fire. The maximum amount is increased by 1 per level of [[Looting]], for a maximum of 1–4 with Looting III.

=== Cooking ===

Cooked rabbit can be obtained by cooking [[raw rabbit]] in a [[furnace]], [[smoker]], or [[campfire]].
{{Smelting
  |showname=1
  |Raw Rabbit
  |Cooked Rabbit
  |0,35
}}

=== Villagers ===
{{IN|java}}, butcher villagers may give players with the [[Hero of the Village]] effect cooked rabbit.

{{IN|bedrock}}, apprentice-level butcher villagers have 25% chance to sell 5 cooked rabbit for an emerald.

== Usage ==

=== Food ===

To eat a cooked rabbit, press and hold {{control|use}} while it is selected in the [[hotbar]]. Eating one restores {{hunger|5}} [[hunger]] and 6 hunger [[Hunger#Mechanics|saturation]].

=== Crafting ingredient ===
Cooked rabbit can be used to craft rabbit stew.

{{crafting usage}}

=== Wolves ===

Cooked rabbit 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=Cooked Rabbit
|spritetype=item
|nameid=cooked_rabbit
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Cooked Rabbit
|spritetype=item
|nameid=cooked_rabbit
|id=289
|form=item
|foot=1}}

== Achievements ==

{{load achievements|Rabbit Season}}

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

== History ==

{{History|java}}
{{History||1.8|snap=June 30, 2014|slink=https://twitter.com/TheMogMiner/status/483636993780232192|[[Ryan Holtz]] tweeted images of cooked rabbits and some other new [[item]]s.}}
{{History|||snap=14w27a|[[File:Cooked Rabbit JE1.png|32px]] Added cooked rabbit. It is used to craft [[rabbit stew]].}}
{{History|||snap=14w33b|[[File:Cooked Rabbit JE2 BE1.png|32px]] The texture of cooked rabbit has been changed. The new texture was created by [[wikipedia:Reddit|Reddit]] user [http://www.reddit.com/u/zeldahuman zeldahuman].<ref>{{reddit|2bjzes/a_reminder_of_the_blocks_and_items_added_in_18_so|cj69zie|context=3}}</ref><ref>{{reddit|2c5f35/minecraft_snapshot_14w31a_has_been_released|cjct7gb}}</ref>}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 412.}}
{{History||1.14|snap=18w43a|[[File:Cooked Rabbit JE3 BE2.png|32px]] The texture of cooked rabbit has been changed.}}
{{History|||snap=19w13a|Butcher [[villager]]s now give cooked rabbit to players under the [[Hero of the Village]] effect.}}
{{History||1.19.3|snap=22w42a|Rabbits now always drop at least 1 coooked rabbit when killed while on fire.}}

{{History|pocket alpha}}
{{History||v0.13.0|snap=build 1|[[File:Cooked Rabbit JE2 BE1.png|32px]] Added cooked rabbit.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Cooked Rabbit JE3 BE2.png|32px]] The texture of cooked rabbit has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.4|Cooked rabbit can now be [[trading|bought]] from butcher [[villager]]s.}}
{{History||1.12.0|snap=beta 1.12.0.3|The [[trading]] price of cooked rabbit has been lowered to one [[emerald]].}}

{{History|console}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|[[File:Cooked Rabbit JE2 BE1.png|32px]] Added cooked rabbit.}}
{{History|PS4}}
{{History||1.90|[[File:Cooked Rabbit JE3 BE2.png|32px]] The texture of cooked rabbit has been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Cooked Rabbit JE2 BE1.png|32px]] Added cooked rabbit.}}
{{History|foot}}

== Issues ==

{{issue list}}

== Gallery ==
<gallery>
File:Rabbit Items 2 Ryan Holtz.png|First image of the item by [[Ryan Holtz]].
</gallery>

== References ==
{{reflist}}

{{items}}

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

[[de:Gebratenes Kaninchen]]
[[es:Conejo asado]]
[[it:Coniglio cotto]]
[[fr:Lapin cuit]]
[[ja:焼き兎肉]]
[[ko:익힌 토끼고기]]
[[nl:Gebraden konijnenvlees]]
[[pl:Pieczony królik]]
[[pt:Coelho assado]]
[[ru:Жареная крольчатина]]
[[zh:熟兔肉]]</li><li>[[Redstone Comparator|Redstone Comparator]]<br/>{{Block
| image = 
| image2 = 
| transparent = Yes
| light = No
| tool = any
| renewable = Yes
| stackable = Yes (64)
| flammable = No
| lavasusceptible = No
| group = Redstone Comparator
| group2 = Subtracting
| group3 = Powered
| group4 = Powered+Subtracting
| 1-1 = Redstone Comparator.png
| 2-1 = Subtracting Redstone Comparator.png
| 3-1 = Powered Redstone Comparator.png
| 4-1 = Powered Subtracting Redstone Comparator.png
}}
{{Many images}}
A '''redstone comparator''' is a [[block]] that can produce an [[Redstone Dust|output signal]] from its front by reading [[chest]]s, [[lectern]]s, [[beehive]]s and similar blocks, or repeat a signal without changing its strength. It can also be set to either stop outputting a signal when its side input recieves a stronger one (front torch off), or subtract its side input's signal strength from its output (front torch on).

== Obtaining ==
=== Natural generation ===
Redstone comparators generate in [[Ancient City|ancient cities]].

=== Breaking ===
A redstone comparator can be broken instantly with any [[tool]], or by hand, and drops itself as an item.

{{Breaking row|Redstone Comparator|horizontal=y}}

A redstone comparator is removed and dropped as an item if:
* its attachment block is moved, removed, or destroyed;
* [[water]] flows into its space;{{only|java}}
* a [[piston]] tries to push it or moves a block into its space.

If [[lava]] flows into a redstone comparator's space, the redstone comparator is destroyed without dropping as an item.

=== Crafting ===
{{Crafting
|B1=Redstone Torch
|A2=Redstone Torch
|B2=Nether Quartz
|C2=Redstone Torch
|A3=Stone
|B3=Stone
|C3=Stone
|Output= Redstone Comparator
|type=Redstone
}}

== Usage ==
A redstone comparator can be placed on the top of any [[opaque]] block with a solid full-height top surface (including upside-down [[slab]]s and upside-down [[stairs]]). {{IN|be}}, a comparator can also be placed on [[wall]]s and fences. For more information about placement on transparent blocks, see [[Opacity/Placement]].

The redstone comparator has a front and a back — the arrow on the top of the comparator points to the front. When placed, the comparator faces away from the player. The comparator has two miniature redstone torches at the back and one at the front. The back torches turn on when the comparator's output is greater than zero (the arrow on top also turns red). The front torch has two states that can be toggled by {{control|using}} the comparator:
* Down and unpowered (indicating the comparator is in "comparison mode")
* Up and powered (indicating the comparator is in "subtraction mode")

The redstone comparator can take a signal strength input from its rear as well as from both sides. Side inputs are accepted only from [[redstone dust]], [[block of redstone]], [[redstone repeater]]s, other comparators, and [[observer]]s in specific scenarios. The redstone comparator's front is its output.

It takes 1 [[redstone tick]] (2 game ticks, or 0.1 seconds barring lag) for signals to move through a redstone comparator, either from the rear or from the sides. This applies to changing signal strengths as well as simply to turning on and off. 

Redstone comparators check their power state before their scheduled ticks update. This results in redstone comparators not usually responding to 1-tick fluctuations of power or signal strength — for example, a [[clock circuit|1-clock]] input is treated as always off from the side, and always on from the rear. This happens because the signal changes back to its original state before the redstone comparator checks its input states. However, certain setups such as powering any input with two separate observer pulses at the same time will cause a redstone comparator to respond to 2 gametick pulses.

The redstone comparator has four functions: maintain signal strength, compare signal strength, subtract signal strength, and measure certain block states (primarily the fullness of containers).

=== Maintain signal strength ===
A redstone comparator with no powered sides outputs the same signal strength as its rear input.

=== Compare signal strength ===
[[File:Comparators Explained.png|Comparators in comparison mode.|thumb]]
A redstone comparator in comparison mode (front torch down and unpowered) compares its rear input to its two side inputs. If either side input is greater than the rear input, the comparator output turns off. If neither side input is greater than the rear input, the comparator outputs the same signal strength as its rear input.

The formula for calculating the output signal strength is as follows:

<code>output = rear × [[Wikipedia:Iverson bracket|[]]'''''left''''' ≤ '''''rear''''' AND '''''right''''' ≤ '''''rear'''''[[Wikipedia:Iverson bracket|<nowiki>]]]</code>
{{-}}

=== Subtract signal strength ===
[[File:Redstone comparator.png|thumb|The greatest of the side inputs A and C is subtracted from the rear input B, outputting 1. If either A or C were greater than B, it would output 0.]]
A redstone comparator in subtraction mode (front torch up and powered) subtracts the signal strength of the higher side input from the signal strength of the rear input.

<code>output = max('''''rear''''' − max('''''left''', '''right'''''), 0)</code>

For example: if the signal strength is 6 at the left input, 7 at the right input and 4 at the rear, the output signal has a strength of ''max(4 − max(6, 7), 0) = max(4−7, 0) = max(−3, 0) = 0''.

If the signal strength is 9 at the rear, 2 at the right input and 5 at the left input, the output signal has a strength of ''max(9 − max(2, 5), 0) = max(9−5, 0) = 4''.

=== Measure block state ===
{{Schematic | caption = A redstone comparator can measure the fullness of a chest, as well as other block states, even through an opaque block.
 |rd-ew!|rc-w!|ch|SB|rc-e!|rd-ew!
}}
A redstone comparator treats certain blocks behind it as power sources and outputs a signal strength proportional to the block's state. The comparator may be separated from the measured block by an opaque block. However, {{in|je}}, if the opaque block is powered to signal strength 15, then the comparator outputs 15 no matter the fullness of the container.<ref>{{bug|MC-64394}} (resolved as "Works As Intended")</ref>
[[Category:Java Edition specific information]]
{{-}}

==== Fullness of containers ====
{| class="wikitable floatright" style="margin-left: 0.5em; margin-right: 0; text-align: center;"
|+ Minimum Items for Container Signal Strength
|-
!Containers
!{{BlockSprite|Furnace|link=Furnace}}<br>{{BlockSprite|Blast Furnace|link=Blast Furnace}}<br>{{BlockSprite|Smoker|link=Smoker}}
!{{BlockSprite|Hopper|link=Hopper}}<br>{{EntitySprite|Minecart with Hopper|link=Minecart with Hopper}}<br>{{BlockSprite|Brewing Stand|link=Brewing Stand}}
!{{BlockSprite|Dispenser|link=Dispenser}}<br>{{BlockSprite|Dropper|link=Dropper}}
!{{BlockSprite|Chest|link=Chest}}<br>{{EntitySprite|Minecart with Chest|link=Minecart with Chest}}<br>{{BlockSprite|Shulker Box|link=Shulker Box}}<br>{{BlockSprite|Barrel|link=Barrel}}
![[Double Chest|{{Schematic|size=16|ch-s|-|ch-n}}
]]
!{{BlockSprite|Jukebox|link=Jukebox}}
|-
!Total Slots
!3!!5!!9!!27!!54!!1
|-
!Power Level
! colspan="5" |Number of Items
!Music Disc
|-
|0||0||0||0||0||0||No disc
|-
|1||1||1||1||1||1||"13"
|-
|2||14||23||42||1s 60||3s 55||"cat"
|-
|3||28||46||1s 19||3s 55||7s 46||"blocks"
|-
|4||42||1s 5||1s 60||5s 51||11s 37||"chirp"
|-
|5||55||1s 28||2s 37||7s 46||15s 28||"far"
|-
|6||1s 5||1s 51||3s 14||9s 42||19s 19||"mall"
|-
|7||1s 19||2s 10||3s 55||11s 37||23s 10||"mellohi"
|-
|8||1s 32||2s 32||4s 32||13s 32||27s||"stal"
|-
|9||1s 46||2s 55||5s 10||15s 28||30s 55||"strad"
|-
|10||1s 60||3s 14||5s 51||17s 23||34s 46||"ward"
|-
|11||2s 10||3s 37||6s 28||19s 19||38s 37||"11"
|-
|12||2s 23||3s 60||7s 5||21s 14||42s 28||"wait"
|-
|13||2s 37||4s 19||7s 46||23s 10||46s 19||"Pigstep"
|-
|14||2s 51||4s 42||8s 23||25s 5||50s 10||"Otherside"<br>"Relic"
|-
|15||3s||5s||9s||27s||54s||"5"
|}
A redstone comparator can output a signal indicating how full a container is. (0 for empty, 15 for full, etc.) The table on the right is described more in detail, later in this section.

Containers that can be measured by a comparator include:
* {{BlockLink|Furnace}}
* {{BlockLink|Blast Furnace}}
* {{BlockLink|Smoker}}
* {{BlockLink|Brewing Stand}}
* {{BlockLink|Hopper}}
* {{ItemLink|Minecart with Hopper}} on top of a [[detector rail]]
* {{BlockLink|Dispenser}}
* {{BlockLink|Dropper}}
* {{BlockLink|Chest}}
* {{BlockLink|Trapped Chest}}
* {{ItemLink|Minecart with Chest}} on top of a [[detector rail]]
* {{BlockLink|Barrel}}
* {{SchematicSprite|size=16|ch-e}}{{SchematicSprite|size=16|ch-w}} Large chest
* {{SchematicSprite|size=16|ch-e}}{{SchematicSprite|size=16|ch-w}} Large trapped chest
* {{BlockLink|Shulker Box}} (any color)

Generally speaking, the comparator output signal strength represents the average fullness of the slots, based on how many of that item form a full stack (64, 16, or 1 for non-stackable items).

The ''Minimum Items for Container Signal Strength'' table (right) shows the minimum '''''full-stack-equivalent (FSE)''''' to produce different signal strengths from common containers. A '''''full-stack-equivalent''''' quantifies how many normal 64-stackable items are needed to output a corresponding signal strength. The 's' is a constant 64, with the additional amount needed following after.

One may also consider the terms: '''c''umulative-weight''''' or '''''weighted-sum''''' instead of '''''full-stack-equivalent'''''.

Items that stack to a max of 16  ([[snowball]]s, [[sign]]s, [[ender pearl]]s, etc.), contribute +4 to the ''full-stack-equivalent'' for each unity (count of 1 item). Similarly, items that stack to 1 ([[minecart]], [[boat]], etc.) contribute +64, and items that stack to 64 contribute +1.

Example 1: 3 ender pearls will contribute a 3 x 4 = 12 ''full-stack-equivalent''.

Example 2: 16 ender pearls and 60 redstone dust contributes a 16x4 + 60x1 = 124 ''full-stack-equivalent''.

Example 3: 1 minecart and 60 redstone dust contributes a 1x64 + 60x1 = 124 ''full-stack-equivalent''.

Example 4: To produce a signal strength of 10 from a hopper, one requires a ''full-stack-equivalent'' of at least 3s + 14 = 206 but strictly less than than 3s + 37 = 229. This can be done with 3 minecarts, and 14 dirt.

When a comparator measures a large chest or large trapped chest, it measures the entire large chest (54 slots), not just the half directly behind the comparator. A chest or trapped chest that cannot be opened (either because it has an opaque block, [[ocelot]], or [[cat]] above it) always produces an output of 0 no matter how many items are in the container — shulker boxes can always be measured, even if they cannot open.

;Calculating signal strength from items

:When a container is empty, the output is off.

:When it is not empty, the output signal strength is calculated as follows:

:<code>'''''signal strength''''' = floor(1 + (('''''sum of all slots' fullnesses''''') / ('''''number of slots in container''''')) × 14)</code>

:<code>fullness of a slot = '''''number of items in slot''''' / '''''max stack size for this type of item'''''</code>

:''Example:'' 300 blocks in a dispenser (which has 9 slots), where each block stacks to a maximum of 64 has a 300 ''full-stack-equivalent.'' This produces an output with a signal strength of 8:
<blockquote>
1 + ((300 items / 64 items per slot) / 9 slots) × 14 = 8.292, floored is 8
</blockquote>

;Calculating items from signal strength

:It can be useful in redstone circuits to use containers with comparators to create signals of a specific strength. The number of items required in a container to produce a signal of desired strength is calculated as follows:

:<code>items required = max('''''desired signal strength''''', roundup(('''''total slots in container''''' × 64 / 14) × (desired signal strength − 1)))</code>

:''Example:'' To use a furnace (which has 3 slots) to create a strength 9 signal, players need 110 items:
<blockquote>
max(9, (3×64/14) × (9−1)) = 109.714, rounded up is 110
</blockquote>
{{-}}

==== Miscellaneous ====
[[File:Comparator storage.png|Comparators used to measure containers.|thumb]]
Some non-container blocks can also be measured by a redstone comparator:

;{{BlockLink|Beehive}} and {{BlockLink|Bee nest}}

: A hive or nest outputs a signal strength equal to the amount of honey in the hive/nest.

;{{BlockLink|Cake}}

: A cake outputs a signal strength relative to the amount of cake remaining.  Each slice is worth 2 signal strength, with 7 total slices, for an output of 14 for a full cake.

[[File:Cauldron Redstone Strength Values.png|Cauldron signal strength|thumb]]
;{{BlockLink|Cauldron}}

: A cauldron outputs different signal strengths depending on how much water or powdered snow is inside. From completely empty to completely full, the output values are 0, 1, 2, and 3. If lava or powder snow is inside, the strength is always 3.

[[File:Composter Redstone Strength Values.png|Composter signal strength|thumb]]
;{{BlockLink|Composter}}

: A composter outputs different signal strengths depending on the level inside. From completely empty to completely full, the output values are 0, 1, 2, 3, 4, 5, 6, 7 and 8.

;{{Anchor|CommandBlock}}{{BlockLink|Command Block}}

: A command block stores the "success count" of the last command executed, which represents the number of times the most recently used command of this command block succeeded. A "success" is defined by the [[command]]'s success conditions: if a red error message is returned in the chat, the command was not successful.

: Most commands can succeed once per execution, but certain commands (such as those that accept players as arguments) can succeed multiple times, and the comparator outputs the number of times it succeeded (maximum 15 when sent to redstone dust, but in the code it is able to go up to the 32-bit integer limit, and can be used in contraptions with no redstone dust with those values).

: A command block continues to store the success count of the last command executed until it executes its command again, thus the comparator continues to output the same signal strength even after the command block is no longer being activated (it doesn't turn off when the signal to the command block turns off).

;{{BlockLink|End Portal Frame}}

: An end portal frame outputs a full signal of 15 if it contains an [[eye of ender]] and zero otherwise.

[[File:Item frame and comparator.png|A comparator can measure the presence and rotation of an item frame's contents.|thumb]]

;{{EntityLink|Item Frame}}

: A comparator can measure the state of an [[item frame]]'s contents. An item frame comparator outputs 0 if the item frame is empty, or 1 to 8 for any item depending on its rotation: 1 at initial placement, plus 1 for each 45° of rotation for a maximum of 8.

: For an item frame that holds a map, a unit of rotation is 90° instead of 45°, but a comparator still outputs power levels 1 to 8. It takes two full rotations to cycle through all comparator outputs, and each orientation of the map corresponds to two output levels that differ by 4.

: The comparator must be placed behind the block the item frame is attached to, facing away from the item frame. The block must be a full block, and the item frame cannot be submerged in water. Having a sign in the same block as the item frame will prevent the frame from sending a signal as well.{{only|java}}

;{{BlockLink|Jukebox}}

: A jukebox outputs a signal strength indicating which music disc is currently playing. See the ''Minimum Items for Container Signal Strength'' table above.

;{{BlockLink|Lectern}}

: A lectern outputs a signal strength that depends on what page the player is currently on. The calculation used is:
:<code>'''''signal strength''''' = floor(1 + (('''''current page''''' - 1) / ('''''number of pages in book''''' - 1)) × 14)</code>
:This results in page 1 having a signal strength of 1, and the last page having a signal strength of 15. The exception is a single page book, which will output a signal strength of 15.
:For example, a book with 15 pages will output a signal equal to the current page number.  A book with 5 pages will output signal strengths of 1, 4, 8, 11 and 15 for the different pages. A book with 100 pages will have the signal strength increase to the next level on pages 1, 9, 16, 23, 30, 37, 44, 51, 58, 65, 72, 79, 86, 93 and 100.
:

;{{BlockLink|Respawn Anchor}}

: A respawn anchor outputs a signal strength of 0, 3, 7, 11, or 15, depending on the "charged" value.

;{{BlockLink|Sculk Sensor}}

: A sculk sensor outputs a signal strength depending on the type of vibration that is detected.

;{{BlockLink|Chiseled Bookshelf}}

: A chisled bookshelf outputs a signal strength between 1 and 6 indicating the last slot interacted with. When no slot has been interacted with yet, it outputs 0.
{{-}}

== Sounds ==
=== Generic ===
{{Edition|Java}}:
{{Sound table/Block/Stone/JE}}
{{Edition|Bedrock}}:
{{Sound table/Block/Wood/BE}}

=== Unique ===
{{edition|java}}:
{{Sound table
|rowspan=2
|sound=Click.ogg
|subtitle=Comparator clicks
|source=block
|description=When a comparator is set to subtraction mode
|id=block.comparator.click
|translationkey=subtitles.block.comparator.click
|volume=0.3
|pitch=0.55
|distance=16}}
{{Sound table
|subtitle=Comparator clicks
|source=block
|description=When a comparator is set to comparison mode
|id=block.comparator.click
|translationkey=subtitles.block.comparator.click
|volume=0.3
|pitch=0.5
|distance=16
|foot=1}}

{{edition|bedrock}}:
{{Sound table
|type=bedrock
|rowspan=2
|sound=Click.ogg
|source=block
|description=When a comparator is set to subtraction mode
|id=block.click
|volume=0.2
|pitch=0.55}}
{{Sound table
|source=block
|description=When a comparator is set to comparison mode
|id=block.click
|volume=0.2
|pitch=0.5
|foot=1}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Redstone Comparator
|spritetype=block
|nameid=comparator
|foot=1}}
{{ID table
|displayname=Block entity
|spritename=redstone-comparator
|spritetype=block
|nameid=comparator
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|firstcolumnname=Redstone Comparator
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Unpowered block
|spritename=unpowered-comparator
|spritetype=block
|nameid=unpowered_comparator
|id=149
|form=block
|translationkey=-}}
{{ID table
|displayname=Powered block
|spritename=powered-comparator
|spritetype=block
|nameid=powered_comparator
|id=150
|form=block
|translationkey=-}}
{{ID table
|displayname=Item
|spritename=redstone-comparator
|spritetype=item
|nameid=comparator
|id=522
|form=item
|foot=1}}
{{ID table
|notnamespaced=y
|displayname=Block entity
|spritename=redstone-comparator
|spritetype=block
|nameid=Comparator
|foot=1}}

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

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

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

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

== Advancements ==
{{Load advancements|the power of books}}

== Video ==

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

== History ==
{{info needed section|If {{bug|MC-50242}} also affected comparators?}}
''For a more in-depth breakdown of changes to repeater textures and models, including a set of renders for each state combination, see [[/Asset history]]''
{{History|java}}
{{History||November 24, 2012|link=https://youtube.com/watch?v=YG9RNyRhIow&t=6m56s|[[Jeb]] stated that there may be a "capacitor" in [[Minecraft]]. }}
{{History||December 27, 2012|link={{tweet|Dinnerbone|284388625595125760}}|[[Dinnerbone]] released [https://web.archive.org/web/20190710120115/https://imgur.com/a/FBKed pictures] of the first version of the "comparator", stating it was a replacement for the "capacitor" idea that has variable, alternate inputs.}}
{{History||January 2, 2013|link={{tweet|Dinnerbone|286428595423965184}}|Dinnerbone released one more [http://dinnerbone.com/media/uploads/2013-01/screenshots/2013-01-02_12.06.47.png picture] of the comparator. The picture itself showing a digital-to-analog converter, using the comparator as the main [[block]].}}
{{History||1.5|snap=13w01a|[[File:Redstone Comparator (S) JE1.png|32px]] [[File:Powered Redstone Comparator (S) JE1.png|32px]] [[File:Subtracting Redstone Comparator (S) JE1.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE1.png|32px]] [[File:Redstone Comparator (item) JE1 BE1.png|32px]] Added redstone comparators.
|Redstone comparators have 0 delay.
At this point, block ID 149 was used for unpowered comparators, and block ID 150 for powered comparators.}}
{{History|||snap=13w01b|A delay of 1 game tick ({{frac|1|2}} redstone tick) has now been added to redstone comparators to fix bugs.
|The ability to measure containers to redstone comparators has now been added.}}
{{History|||snap=13w02a|[[File:Redstone Comparator (S) JE2.png|32px]] [[File:Powered Redstone Comparator (S) JE2.png|32px]] [[File:Subtracting Redstone Comparator (S) JE2.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE2.png|32px]] The appearance of redstone comparators has now been changed - the top texture has changed to show [[quartz]] in the middle and the sides now use the [[smooth stone]] texture rather than the smooth stone slab side texture.
|The algorithm for measuring containers has now been changed so that redstone comparators output a signal with as few as 1 [[item]] in the container.}}
{{History|||snap=13w02b|Redstone comparators now treat large [[chest]]s as a single container.}}
{{History|||snap=13w03a|Redstone comparators now output success count of [[command block]]s.
|Redstone comparators now measure container [[minecart]]s on [[detector rail]]s.}}
{{History|||snap=13w04a|Redstone comparators now measure [[jukebox]]es.}}
{{History|||snap=13w05a|Redstone comparators no longer cause constant [[block]] updates. The delay has now been made consistent, and side input no longer causes a pulse output.
|Block 150 (later <code>powered_comparator</code>) is no longer used; powered state is now represented by the 8s bit on block 149 (later <code>unpowered_comparator</code>).}}
{{History|||snap=13w05b|Redstone comparator delay has now been changed from 1 game tick (1/2 [[redstone]] tick) to 2 game ticks (1 redstone tick).}}
{{History|||snap=13w09c|The redstone signal strength from a redstone comparator next to a [[brewing stand]] with 3 [[water bottle]]s in it is now the same as one with 3 water bottles and 1 ingredient in it.}}
{{History||1.6.1|snap=13w18a|Redstone comparators now measure [[cauldron]]s and [[end portal frame]]s.}}
{{History||1.8|snap=14w04a|Redstone comparators now measure [[item frame]]s.}}
{{History|||snap=14w10a|The torches under redstone comparators have now been shortened, which has changed the underside appearance from [[File:Redstone Comparator UNKVER1 (facing NWU).png|32px]] [[File:Powered Redstone Comparator UNKVER1 (facing NWU).png|32px]] [[File:Subtracting Redstone Comparator UNKVER1 (facing NWU).png|32px]] [[File:Powered Subtracting Redstone Comparator UNKVER1 (facing NWU).png|32px]] to [[File:Redstone Comparator UNKVER2 (facing NWU).png|32px]].}}
{{History|||snap=14w25a|[[File:Redstone Comparator (S) JE3.png|32px]] [[File:Powered Redstone Comparator (S) JE3.png|32px]] [[File:Subtracting Redstone Comparator (S) JE3.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE3.png|32px]] The torches on comparators are now subject to ambient occlusion.
|Comparators set to subtract mode appear to be powered as well regardless of incoming power. The subtracting-only model still exists and can be achieved through {{cmd|setblock}}.}}
{{History|||snap=14w25b|[[File:Subtracting Redstone Comparator (S) JE4.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE4.png|32px]] The powered front torch when in subtraction mode is now lower.
|Comparators set to subtract by hand now appear normally again.}}
{{History|||snap=14w28a|Redstone comparators now measure [[cake]]s.}}
{{History||1.9|snap=15w42a|With the addition of the [[blaze powder]] fuel slot, [[brewing stand]]s now have 5 slots instead of 4. Their original comparative power values from redstone comparators are listed below:
{{{!}} class{{=}}"wikitable collapsible collapsed" data-description{{=}}"Original values"
! Original values
{{!}}-
{{!}}
*0: 0
*1: 1
*2: 19
*3: 37
*4: 55
*5: 1s 10
*6: 1s 28
*7: 1s 46
*8: 2s
*9: 2s 19
*10: 2s 37
*11: 2s 55
*12: 3s 10
*13: 3s 28
*14: 3s 46
*15: 4s
{{!}}}
}}
{{History|||snap=15w47a|Redstone comparators' side inputs now take power from [[redstone block]]s.}}
{{History||1.13|snap=17w47a|All 3 IDs for the redstone comparator have now been merged into one ID: <code>comparator</code>.
|Redstone comparators now render their underside, which has changed their undersides from [[File:Redstone Comparator UNKVER2 (facing NWU).png|32px]] to [[File:Redstone Comparator UNKVER3 (facing NWU).png|32px]].
|Prior to [[1.13/Flattening|''The Flattening'']], these blocks' numeral IDs were 149 and 150, and the [[item]]'s 404.
|As a result, the formerly unused comparator ID is now technically used again, due to both unpowered and powered versions being merged into a single comparator block ID.}}
{{History||1.14|snap=18w43a|[[File:Redstone Comparator (S) JE4.png|32px]] [[File:Powered Redstone Comparator (S) JE4.png|32px]] [[File:Subtracting Redstone Comparator (S) JE5.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE5.png|32px]] [[File:Redstone Comparator (item) JE2 BE2.png|32px]] The textures of redstone comparators have now been changed.}}
{{History|||snap=19w02a|Redstone comparators now measure [[lectern]]s.}}
{{History|||snap=19w03a|Redstone comparators now measure [[composter]]s.}}
{{History|||snap=19w12b|Redstone comparators can now be placed on [[glass]], [[ice]], [[glowstone]] and [[sea lantern]]s.}}
{{History||1.15|snap=19w34a|Redstone comparators now measure how much honey is inside [[beehive|bee hive]]s and [[bee nest]]s.}}
{{History||1.16|snap=20w06a|The way to calculate the input signals of redstone comparators has now been changed.}}
{{History|||snap=20w11a|The changes to the way of calculating the input signals of redstone comparators from [[Java Edition 20w06a|20w06a]] have now been reverted.}}
{{History|||snap=20w16a|Redstone comparators now measure [[Pigstep music disc]]s in [[jukebox]]es.}}
{{History||1.17|snap=20w45a|Redstone comparators now measure [[lava cauldron]]s.}}
{{History|||snap=20w46a|Redstone comparators now measure [[Cauldron#Holding powder snow|powder snow cauldron‌]]s.}}
{{History||1.18|snap=21w41a|[[File:Powered Redstone Comparator (S) JE5.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE6.png|32px]] The texture of powered redstone comparator have now been changed.}}
{{History||1.19|snap=22w13a|Redstone comparators now generate as part of [[ancient cities]].}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|Redstone comparators now measure [[chiseled bookshelves]].}}
{{History||1.20.2|snap=23w33a|Redstone comparators now use stone sounds instead of wood sounds.<ref>{{bug|MC-182820|||Fixed}}</ref>}}

{{History|pocket alpha}}
{{History||v0.14.0|snap=build 1|[[File:Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Subtracting Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE2 BE1.png|32px]]{{verify|Was this the model used?}} [[File:Redstone Comparator (item) JE1 BE1.png|32px]] Added redstone comparators.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Redstone comparators now measure [[end portal frame]]s.}}
{{History||1.0.5|snap=alpha 1.0.5.0|Redstone comparators now output success count of [[command block]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Redstone comparators now measure [[shulker box]]es.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Redstone comparators now measure [[jukebox]]es.
|Redstone comparators now render their underside, which has changed their undersides from [[File:Redstone Comparator UNKVER1 (facing NWU).png|32px]] to [[File:Redstone Comparator UNKVER3 (facing NWU).png|32px]]}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Redstone Comparator (S) BE.png|32px]] [[File:Powered Redstone Comparator (S) BE.png|32px]] [[File:Subtracting Redstone Comparator (S) BE.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) BE.png|32px]] [[File:Redstone Comparator (item) JE2 BE2.png|32px]] The textures of redstone comparators have now been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Redstone comparators now measure [[smoker]]s, [[blast furnace]]s, [[lectern]]s and [[composter]]s.}}
{{History||1.18.10|snap=beta 1.18.10.20|[[File:Powered Redstone Comparator (S) JE5.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE6.png|32px]] The texture of powered redstone comparator have now been changed.}}
{{History||1.20.30|snap=beta 1.20.30.20|Redstone comparators now use the <code>minecraft:cardinal_direction</code> [[block state]] instead of <code>direction</code>.}}

{{History|console}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Subtracting Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE2 BE1.png|32px]]{{verify|Was this the model used?}} [[File:Redstone Comparator (item) JE1 BE1.png|32px]] Added redstone comparators.}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|switch=1.0.1|Redstone comparators can now measure [[item frame]]s.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Redstone Comparator (S) BE.png|32px]] [[File:Powered Redstone Comparator (S) BE.png|32px]] [[File:Subtracting Redstone Comparator (S) BE.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) BE.png|32px]]{{verify|Was this the model used?}} [[File:Redstone Comparator (item) JE2 BE2.png|32px]] The textures of redstone comparators have now been changed.}}

{{History|3ds}}
{{History||0.1.0|[[File:Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Subtracting Redstone Comparator (S) JE2 BE1.png|32px]] [[File:Powered Subtracting Redstone Comparator (S) JE2 BE1.png|32px]]{{verify|Was this the model used?}} [[File:Redstone Comparator (item) JE2 BE2.png|32px]] Added redstone comparators.}}
{{History|foot}}

=== Redstone comparator "items" ===
{{:Technical blocks/Redstone Comparator}}

== Issues ==
{{issue list}}

== Trivia ==
* Comparators do not emit redstone particles when powered, unlike redstone torches and repeaters.<ref>{{bug|MC-51692|||WAI}}</ref>

== Gallery ==
<gallery>
Dinnerbone Comparator 1.png|Dinnerbone showing how comparators work.
Dinnerbone Comparator 2.png|Dinnerbone showing how comparators work.
Dinnerbone Comparator 3.png|Dinnerbone showing how comparators work.
Dinnerbone Comparators 1.png|A contraption incorporating comparators.
Dinnerbone Comparators 2.png|Comparators in action.
Dinnerbone Comparators 3.png|Output specific signals.
Dinnerbone Comparator Thing.png|Another comparator in use.
Item Frame Comparator.png|Rotating the torch in the item frame adjusts the comparator's output.
</gallery>

== References ==
{{reflist}}

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

[[Category:Mechanics]]
[[Category:Block entities]]
[[Category:Redstone mechanics]]
[[Category:Mechanisms]]
[[Category:Manufactured blocks]]
[[Category:Non-solid blocks]]

[[de:Redstone-Komparator]]
[[es:Comparador de redstone]]
[[fr:Comparateur de redstone]]
[[hu:Redstone-komparátor]]
[[ja:レッドストーンコンパレーター]]
[[ko:레드스톤 비교기]]
[[nl:Redstonevergelijker]]
[[pl:Komparator]]
[[pt:Comparador de redstone]]
[[ru:Компаратор]]
[[uk:Редстоуновий компаратор]]
[[zh:红石比较器]]</li></ul></nowiki>
Release Candidate 1Piglins no longer have pathfinding problems.[15]
Bedrock Edition
1.16.0
{{Extension DPL}}<ul><li>[[Raw Mutton|Raw Mutton]]<br/>{{Distinguish|Cooked Mutton}}
{{Item
| title = Raw Mutton
| image = Raw Mutton.png
| heals = {{hunger|2}}
| renewable = Yes
| stackable = Yes (64)
}}
'''Raw mutton''' is a [[food]] item dropped by [[sheep]] when killed.

== Obtaining ==

=== Mob loot ===

An adult [[sheep]] drops 1–2 raw mutton when killed. The maximum amount is increased by 1 per level of [[Looting]], for a maximum of 1–5 with Looting III. If killed while on fire, a sheep drops [[cooked mutton]] instead.

=== Chest loot ===

{{LootChestItem|raw-mutton}}

== Usage ==

=== Food ===

To eat raw mutton, press and hold {{control|use}} while it is selected in the [[hotbar]]. Eating one restores {{hunger|2}} [[hunger]] and 1.2 [[Hunger#Mechanics|saturation]].

=== Smelting ingredient ===

{{Smelting
  |showname=1
  |Raw Mutton
  |Cooked Mutton
|0.35
}}

=== Wolves ===

Raw mutton 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.

=== Trading ===

Journeyman-level butcher [[villager]]s have a 50% chance to buy 7 raw mutton for an [[emerald]] as part of their trades.{{only|bedrock}}

Journeyman-level butcher villagers always offer to buy 7 raw mutton for an emerald.{{only|java}}

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

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Raw Mutton
|spritetype=item
|nameid=mutton
|aliasid=muttonraw
|id=550
|form=item
|translationkey=item.muttonRaw.name
|foot=1}}

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

== Video ==

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

== History ==

{{History||September 23, 2011|link={{tweet|jeb|117313469900009472}}|Mutton is mentioned by [[Jeb]].}}
{{History||September 11, 2012|link={{tweet|jeb|245503714167750656}}|Jeb again mentions the possibility of mutton as well as calamari being added into the game.}}
{{History|java}}
{{History||June 30, 2014|link=https://twitter.com/TheMogMiner/status/483636993780232192|[[Ryan Holtz]] tweets images of raw mutton and some other new items.}}
{{History||1.8|snap=14w27a|[[File:Raw Mutton JE1.png|32px]] Added raw mutton.}}
{{History||1.8|snap=14w33b|[[File:Raw Mutton JE2 BE1.png|32px]] The texture of raw mutton has been changed. The new texture was created by [[wikipedia:Reddit|Reddit]] user [http://www.reddit.com/u/zeldahuman zeldahuman].<ref>{{reddit|2bjzes/a_reminder_of_the_blocks_and_items_added_in_18_so|cj69zie|context=3}}</ref><ref>{{reddit|2c5f35/minecraft_snapshot_14w31a_has_been_released|cjct7gb}}</ref>}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 423.}}
{{History||1.14|snap=18w43a|[[File:Raw Mutton JE3 BE2.png|32px]] The texture of raw mutton has been changed.}}
{{History|||snap=18w49a|Raw mutton can now be found in [[chest]]s in [[village]] butcher shops.}}
{{History|||snap=19w11a|Butcher villagers now [[trading|buy]] raw mutton.}}

{{History|pocket alpha}}
{{History||v0.15.0|snap=build 1|[[File:Raw Mutton JE2 BE1.png|32px]] Added raw mutton.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Raw Mutton JE3 BE2.png|32px]] The texture of raw mutton has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Raw mutton can now be found in [[village]] butcher [[chest]]s.}}
{{History|||snap=beta 1.11.0.4|Raw mutton can now be [[trading|sold]] to butcher [[villager]]s.}}
{{History||1.16.0|snap=beta 1.16.0.57|Trading has been changed; journeyman butcher villagers now buy 7 raw mutton for an emerald instead of 8.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of raw mutton has been changed from <code>muttonraw</code> to <code>mutton</code>.}}
{{History||1.16.210|snap=beta 1.16.210.51|Raw mutton is [[drops|dropped]] by [[goats]].}}
{{History||1.17.0|snap=beta 1.17.0.52|Goats no longer drop raw mutton.}}

{{History|console}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|[[File:Raw Mutton JE2 BE1.png|32px]] Added raw mutton.}}
{{History|PS4}}
{{History||1.90|[[File:Raw Mutton JE3 BE2.png|32px]] The texture of raw mutton has been changed.}}

{{History|3ds}}
{{History||0.1.0|[[File:Raw Mutton JE2 BE1.png|32px]] Added raw mutton.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Gallery ==
<gallery>
Rabbit Items 3 Ryan Holtz.png|First image of the item by [[Ryan Holtz]].
Pocket Edition Mutton.jpg|First image of the item in ''Bedrock Edition'' by [[Jason Major]].
</gallery>

== References ==
{{reflist}}

{{items}}

[[de:Rohes Hammelfleisch]]
[[es:Cordero crudo]]
[[fr:Mouton cru]]
[[ja:生の羊肉]]
[[ko:익히지 않은 양고기]]
[[nl:Rauw schapenvlees]]
[[pl:Surowa baranina]]
[[pt:Carneiro cru]]
[[ru:Сырая баранина]]
[[zh:生羊肉]]
[[Category:Food]]
[[Category:Renewable resources]]</li><li>[[Firework Star|Firework Star]]<br/>{{Item
| image = Firework Star.png
| renewable = 
* '''Trail Effect''': No
* '''All Others''': Yes
| stackable = Yes (64)
}}
'''Firework stars''' are [[items]] used to determine the color, effect, and shape of [[firework rocket]]s.

== Obtaining ==

In [[Survival]] mode, firework stars are obtainable only through crafting. In [[Creative]] mode, they can be found in the creative inventory.

=== Crafting ===

{{Crafting
  |head=1
  |showname=0
  |showdescription=1
  |ingredients=[[Gunpowder]] +<br>Matching [[Dye]] +<br>Extra ingredients (optional)
  |Gunpowder
  |Matching Dye
  |Head; Gold Nugget; Feather;Fire Charge;
  |Glowstone Dust;
  |Diamond;
  |Output=Matching Firework Star
  |arggroups=1;2,Output;3;4;5
  |description=Up to eight dyes can be added.<br>One head, gold nugget, feather, or fire charge can be added.<br>Both the diamond and the glowstone dust can be added with any of the other ingredients.
  |type=Miscellaneous
}}
{{Crafting
  |ignoreusage=1
  |Matching Firework Star
  |Any Dye
  |Output=Matching Firework Star
  |type=Miscellaneous
  |description=Adds a "fade to color" effect to the firework star, overwriting any existing fades.<br>Up to eight dyes can be added.
  |foot=1
  |arggroups=1,Output
}}
<div style="display:none">
<!--
    This is so the pre-Village & Pillage dyes can have dye-related crafting recipes show on their respective pages.
    They don't need to be displayed on this page because they already intuitively list "Any Matching/Colored Dye".
-->
{{Crafting
  |head=1
  |showname=0
  |showdescription=1
  |Gunpowder
  |Bone Meal; Lapis Lazuli; Cocoa Beans; Ink Sac
  |Head; Gold Nugget; Feather;Fire Charge;
  |Glowstone Dust;
  |Diamond;
  |Output=White Firework Star; Blue Firework Star; Brown Firework Star; Black Firework Star
  |arggroups=1;2,Output;3;4;5
  |description={{only|bedrock|education}}<br>Up to eight dyes can be added.<br>One head, gold nugget, feather, or fire charge can be added.<br>Both the diamond and the glowstone dust can be added with any of the other ingredients.
  |type=Miscellaneous
}}
{{Crafting
 |showdescription=1
 |White Firework Star; Blue Firework Star; Brown Firework Star; Black Firework Star
 |Bone Meal; Lapis Lazuli; Cocoa Beans; Ink Sac
 |Output=White Firework Star; Blue Firework Star; Brown Firework Star; Black Firework Star
 |type=Decoration block
 |description={{only|bedrock|education}}<br>Adds a "fade to color" effect to the firework star, overwriting any existing fades.<br>Up to eight dyes can be added.
 |foot=1
}}
</div>

== Usage ==

The only usage of firework stars is to create [[firework rocket]]s.

=== Crafting ingredient ===

{{crafting usage|match=end}}

== Effects ==

=== Shape effects ===

A firework star can have only one shape effect.

{| class="wikitable"
|+ Shape Effects
! <abbr title="Type (Byte tag in NBT structure)">Type</abbr>
! Ingredient
! Effect
! Sample Animation
|-
| 0
| None
| Small Ball explosion (default)
| [[File:Firework Star (Small Sphere).gif|200px]]
|-
| 1
| {{ItemLink|Fire Charge}}
| Large Ball explosion and heavy sound.
| [[File:Firework Star (Large Sphere).gif|200px]]
|-
| 2
| {{ItemLink|Gold Nugget}}
| Star-shaped explosion
| [[File:Firework Star (Star Shape).gif|200px]]
|-
| 3
| {{BlockLink|id=Heads|Head}} (any)
| Creeper-shaped (Creeper Face) explosion
| [[File:Firework Star (Creeper Shape).gif|200px]]
|-
| 4
| {{ItemLink|Feather}}
| Burst explosion
| [[File:Firework Star (Burst).gif|200px]]
|}

=== Additional effects ===

In addition to the shape effects, any combination of these additional effects may be added to a firework star.

{| class="wikitable"
|+ Additional Effects
! Ingredient
! Effect
! Sample Animation
|-
| None
| Default
| [[File:Firework Star (Small Sphere).gif|200px]]
|-
| {{ItemLink|Glowstone Dust}}
| Twinkle (Crackle effect and sounds after the explosion)
| [[File:Firework Star (Twinkle effect).gif|200px]]
|-
| {{ItemLink|Diamond}}
| Trail effect after the explosion
| [[File:Firework Star (Trail effect).gif|200px]]
|-
| {{ItemLink|Glowstone Dust}} <br> {{ItemLink|Diamond}}
| Twinkle + Trail effect after the explosion
| [[File:Firework Star (Twinkle and Trail effect).gif|200px]]
|}

== Sounds ==
{{see also|Firework_Rocket#Sounds}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Firework Star
|spritetype=item
|nameid=firework_star
|aliasid=fireworkscharge
|id=520
|form=item
|translationkey=item.fireworksCharge.name
|foot=1}}

=== Item data ===

{{el|java}}:
{{main|Player.dat format}}
<div class="treeview">
* {{nbt|compound|tag}}: The item's '''tag''' tag.
{{:Player.dat_format/Firework Stars}}
</div>

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

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

== History ==
{{History|java}}
{{History||1.4.6|snap=12w49a|[[File:Firework Star JE1 BE1.png|32px]] Added firework stars.
|Firework stars in the [[Creative inventory]] come in only one variation; they do not have any color.}}
{{History||1.13|snap=17w47a|The ID of firework stars has now been changed from <code>firework_charge</code> to <code>firework_star</code>.
|Prior to [[Java Edition 1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 402.}}

{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|[[File:Firework Star JE1 BE1.png|32px]] Added firework stars.
|Firework stars come in all 16 colors in the [[Creative]] [[inventory]].{{verify|type=update}}{{info needed}}}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of firework star has been changed from <code>fireworkscharge</code> to <code>firework_star</code>.}}

{{History|console}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|wiiu=Patch 1|switch=1.0.1|[[File:Firework Star JE1 BE1.png|32px]] Added firework stars.
|Firework stars cannot be obtained within the Creative inventory.}}
{{History||xbox=TU46|xbone=CU36|ps=1.38|wiiu=Patch 15|The [[crafting]] interface has now been updated to allow the crafting of firework stars and [[firework rocket]]s.}}
{{History|foot}}

== Issues ==
{{Issue list}}

== Trivia ==

* There are 29,617,272,331,290,537 (29.6 quintillion) unique firework stars.
* Putting firework stars on rockets causes the player to take explosion damage when using them for flying with [[elytra]].

== Gallery ==
<gallery>
File:Firework Star (Tricolor Star shaped with Twinkle and Trail effect).gif|Tricolor (Magenta, Pink, White dye) + Star shaped with Twinkle and Trail effect.
</gallery>

{{Items}}

[[cs:Ohňostrojová hvězda]]
[[de:Feuerwerksstern]]
[[es:Estrella de fuegos artificiales]]
[[fr:Étoile de feu d'artifice]]
[[hu:Tűzijáték csillag]]
[[it:Stella pirotecnica]]
[[ja:花火の星]]
[[ko:폭죽 탄약]]
[[nl:Vuurwerkster]]
[[pl:Gwiazdka pirotechniczna]]
[[pt:Estrela de fogo de artifício]]
[[ru:Пиротехническая звезда]]
[[uk:Зірка феєрверку]]
[[zh:烟火之星]]</li></ul>
beta 1.16.0.51Piglin BE Baby Piglin Added piglins and baby piglins.
Piglin with Crossbow BE Piglins can hold crossbows.
Hoglin Rider BE1 Baby piglins can ride on the back of baby hoglins.
Piglin targeting BE1 Piglins raise their arms in a manner similar to zombies when attacking.
Currently, piglins can drop only flint and steel and obsidian while bartering as a placeholder.
Piglins currently drop 0-2 arrows, even if the piglin is not armed with a crossbow.
Piglins currently use the player's hurt sound.
Piglins follow a player who holds a gold ingot.
Piglin celebrate hunt Revision 1 Piglins dance after they finish hoglin hunting.
beta 1.16.0.57Piglins now have their own sounds.
Piglin bartering has been properly added.
Piglins can no longer drop arrows when killed.
The health of piglins has been reduced from 24 to 16.
Piglins now spawn in bastion remnants.
Baby piglins can now ride on top of each other on a baby hoglin, up to three baby piglins can climb on at once.
beta 1.16.0.59Piglins now avoid zoglins, the same way they avoid zombified piglins.
Piglins now spawn in the nether wastes.
Piglins now properly sit in boats and minecarts.
Piglins no longer despawn in Peaceful mode.
beta 1.16.0.63Piglins now avoid soul campfires.
Gold ingots now render properly in the hands of piglins at all times.
1.16.20
{{Extension DPL}}<ul><li>[[Raw Iron|Raw Iron]]<br/>{{Item
| image = Raw Iron.png
| renewable = No
| stackable = Yes (64)
}}
'''Raw iron''' is a raw metal resource obtained from mining [[iron ore]].

== Obtaining ==
=== Mining ===
[[Iron ore]] and [[deepslate iron ore]] mined with a [[stone pickaxe]] or higher drops 1 unit of raw iron. If the pickaxe is enchanted with [[Fortune]], it can drop an extra unit per level of Fortune, allowing for a maximum of 4 with Fortune III. If the ore is mined using a pickaxe enchanted with [[Silk Touch]], it drops the ore block instead.

=== Crafting ===
{{Crafting
|showname=1
|Block of Raw Iron
|Output=Raw Iron,9
|type=Material
|foot=1
}}

== Usage ==
The primary usage of raw iron is smelting it into [[iron ingot]]s.

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

=== Smelting ingredient ===
{{Smelting
|showname=2
|Raw Iron
|Iron Ingot
|0.7
}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Raw Iron
|spritetype=item
|nameid=raw_iron
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Raw Iron
|spritetype=item
|nameid=raw_iron
|form=item
|id=505
|foot=1}}

== History ==
{{History|java}}
{{History||1.17|snap=21w14a|[[File:Raw Iron JE1.png|32px]] Added raw iron.}}
{{History|||snap=April 13, 2021|slink={{Tweet|JasperBoerstra|1381991999952277513}}|[[File:Raw Iron JE2.png|32px]] [[JAPPA]] shows a new raw iron texture.}}
{{History|||snap=21w15a|[[File:Raw Iron JE2.png|32px]] The texture of raw iron has been changed.
|Raw iron can now be used to craft [[block of raw iron]].}}
{{History|||snap=April 16, 2021|slink={{Tweet|JasperBoerstra|1383047666037325829}}|[[File:Raw Iron (pre-release).png|32px]] [[JAPPA]] shows a new raw iron texture again.}}
{{History|||snap=21w16a|[[File:Raw Iron JE3.png|32px]] The texture of raw iron has been changed.}}
{{History|Bedrock}}
{{History||1.17.0|snap=beta 1.17.0.50|[[File:Raw Iron JE2.png|32px]] Added raw iron.}}
{{History|||snap=beta 1.17.0.52|Raw iron are now available without enabling [[experimental gameplay]].}}
{{History|||snap=beta 1.17.0.54|[[File:Raw Iron JE3.png|32px]] The texture of raw iron has been changed.}}
{{History|foot}}

== Issues ==
{{Issue list}}

==Gallery==
<gallery>
JE 1.17 Dev Raw Metals.jpg|Jappa shows raw ore textures.
Jappa Raw Ores 1.jpg|Jappa shows raw ore textures.
Jappa Raw Ores 2.png|Jappa shows raw ore textures.
Jappa Raw Ores 3.jpg|Jappa shows raw ore textures.
Jappa Raw Ores 4.jpg|Jappa shows raw ore textures.
Jappa Raw Ores 5.jpg|Jappa shows raw ore textures.
</gallery>

{{Items}}

[[Category:Non-renewable resources]]

[[de:Roheisen]]
[[es:Hierro en bruto]]
[[fr:Fer brut]]
[[it:Ferro grezzo]]
[[ja:鉄の原石]]
[[lzh:砂鐵]]
[[pl:Surowe żelazo]]
[[pt:Ferro bruto]]
[[ru:Необработанное железо]]
[[uk:Необроблене залізо]]
[[zh:粗铁]]</li><li>[[Apple|Apple]]<br/>{{for}}
{{Item
| title = Apple
| image = Apple.png
| renewable = Yes
| heals = {{hunger|4}}
| stackable = Yes (64)
}}

'''Apples''' are [[food]] items that can be eaten by the [[player]].

== Obtaining ==

=== Block loot ===

Oak and dark oak [[leaves]] have 0.5% ({{frac|1|200}}) chance of dropping an apple when decayed or broken, but not if burned. Breaking leaves with a [[tool]] enchanted with the [[Fortune]] enchantment increases the chances of dropping an apple: 0.556% ({{frac|1|180}}) with Fortune I, 0.625% ({{frac|1|160}}) with Fortune II, and 0.833% ({{frac|1|120}}) with Fortune III.

=== Chest loot ===

{{LootChestItem|apple}}

=== Trading ===

Apprentice-level [[Trading#Farmer|farmer]] [[Villager|villagers]] have a 50% ({{frac|1|2}}){{only|bedrock}} or 66.7% ({{frac|2|3}}){{only|java}} chance of selling 4 apples as part of their trades.

== Usage ==
{{see also|Tutorials/Hunger management|title1=Hunger management}}

To eat an apple, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|4}} [[hunger]] and 2.4 [[Hunger#Mechanics|saturation]].

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

=== Composting ===
Placing an apple into a [[composter]] has a 65% ({{frac|13|20}}) chance of raising the compost level by 1.

== Sounds ==

{{Sound table/Entity/Food}}

== Data values ==

=== ID ===

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Apple
|spritetype=item
|nameid=apple
|id=257
|form=item
|foot=1}}

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

== History ==

{{History|java indev}}
{{History||0.31|snap=20091231-2|[[File:Apple JE1 BE1.png|32px]] Added apples. 
|Apples are currently non-functional in this version.}}
{{History|||snap=20100110|Apples are now functional and are edible, restoring {{hp|2}}. They are intended to replace [[mushroom]]s, which were previously edible.}}
{{History|||snap=20100128|Apples now used to [[craft]] [[arrow]]s.}}
{{History|||snap=20100129|Apples no longer used to craft [[arrow]]s.}}
{{History||20100206|Apples now use the texture of [[golden helmet]]s.}}
{{History|java infdev}}
{{History||February 23, 2010|link=none|At the bottom of a [[crafting]] guide they made, a player named JTE jokingly indicated that [[Notch]] dropped an apple when killed, and that apples could be crafted into something called a "[[golden apple]]" – this was a joke on the fact that apples were totally unobtainable.<ref>http://www.minecraftforum.net/topic/2750582-the-secret-history-of-minecraft/</ref><ref name="JTECraftingGuide">https://echidnatribe.org/Minecraft/crafting.php (This is an unofficial recreation with the original domain)</ref>}}
{{History||20100227-1|Players named "[[Notch]]" now drop an apple when they die in addition to their [[inventory]].
|Apples are now used to craft golden apples.
|Apples now correctly use the apple texture again.}}
{{History||20100327|With the addition of the respawn feature, apples have become legitimately obtainable in Survival and renewable for players named "Notch".}}
{{History|java beta}}
{{History||1.8|snap=Pre-release|Apples can now be found in the new [[stronghold]] storeroom [[chest]]s, making them obtainable in normal [[Survival]] gameplay for the first time.
|Apples now restore {{hunger|4}} instead of {{hp|4}}.
|Apples are now stackable.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 3|Apples are now found in the new stronghold altar chests.}}
{{History||1.1|snap=11w48a|Oak [[leaves]] now have a 1/200 chance of dropping an apple when destroyed, making apples fully [[renewable]].}}
{{History|||snap=12w01a|Apples are now found in the new [[village]] blacksmith chests.}}
{{History||1.3.1|snap=12w16a|Apples can now be found in the new [[bonus chest]]s.}}
{{History|||snap=12w18a|"[[Notch]]" players no longer drop apples when they die.}}
{{History|||snap=12w21a|Farmer [[villager]]s now [[trade|sell]] 5 apples for 1 [[emerald]].
|Apples are now used to craft [[enchanted golden apple]]s.}}
{{History||1.4.2|snap=12w37a|[[File:Apple JE2 BE2.png|32px]] The apple's texture has been changed: the [[item]] sprite no longer has a dark outline and now has a more detailed look.}}
{{History||1.5|snap=13w09b|The [[Fortune]] enchantment now increases the chance of dropping apples.}}
{{History||1.7.2|snap=13w43a|Added [[dark oak]] leaves, which drop apples.}}
{{history||1.9|snap=15w43a|Apples may now be found in [[igloo]] basement chests.}}
{{history|||snap=15w44a|Average yield of apples has been slightly increased in bonus chests.
|Apples can no longer be used to craft enchanted golden apples.}}
{{History||1.11|snap=16w33a|Farmer villagers now sell 5–7 apples for 1 emerald.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this item's numeral ID was 260.}}
{{History||1.14|snap=18w43a|[[File:Apple JE3 BE3.png|32px]] The texture of apples has been changed.}}
{{History|||snap=18w48a|Apples can now be found in [[chest]]s in [[plains]] village houses.}}
{{History|||snap=19w03a|Placing an apple into the new [[composter]] has a 50% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Apples now have a 65% chance of increasing the compost level in a composter by 1.}}

{{History|pocket alpha}}
{{History||v0.4.0|[[File:Apple JE1 BE1.png|32px]] Added apples.}}
{{History||v0.5.0|Apples now restore {{hp|4}} instead of {{hp|2}}.}}
{{History||v0.8.0|snap=build 1|[[File:Apple JE2 BE2.png|32px]] The apple's texture has been changed: the item sprite no longer has a dark outline and now has a more detailed look.}}
{{History||v0.12.1|snap=build 1|Added apples to the [[Creative inventory]].
|Apples are now stackable.
|Apples now restore {{hunger|4}} instead of {{hp|4}}.
|The [[Fortune]] [[enchantment]] can now be used to increase chance of dropping apples.
|Apples can now be used to craft golden apples and enchanted golden apples.}}
{{History||v0.15.0|snap=build 1|Apples can now be used to feed [[horse]]s.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Apples can now be found inside [[igloo]] chests.}}
{{History||1.0.4|snap=alpha 1.0.4.0|Farmer villagers now sell 5-7 apples for 1 emerald.}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Apples can no longer be used to craft enchanted golden apples.
|Apples can now be found inside bonus chests.}}
{{History||1.10.0|snap=beta 1.10.0.3|Apples can now be found in [[plains]] village weaponsmith chests and plains house chests.
|[[File:Apple JE3 BE3.png|32px]] The texture of apples has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Apples can now be found in [[desert]], [[savanna]], [[taiga]] and [[snowy taiga]] village weaponsmith chests.
|Apples can now be used to fill up composters.}}
{{History|||snap=beta 1.11.0.4|Farmer villagers now sell 4 apples as part of their second tier trades.}}

{{History|console}}
{{History||xbox=TU1|wiiu=Patch 1|[[File:Apple JE1 BE1.png|32px]] Added apples.}}
{{History||xbox=TU5|Apples are now stackable.
|Apples now restore {{hunger|4}} instead of {{hp|4}}.}}
{{History||xbox=TU12|ps=1.03|[[File:Apple JE2 BE2.png|32px]] The apple's texture has been changed: the item sprite no longer has a dark outline and now has a more detailed look.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Apple JE3 BE3.png|32px]] The texture of apples has been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Apple JE2 BE2.png|32px]] Added apples.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
*Prior to the texture update in Java Edition 1.4.2, the sprite of the apple was the same one used in [[Notch]]'s game ''[[Legend of the Chambered]]''.
*Before it was added to ''Minecraft'', apples dropping from trees was already a feature in ''[[Minicraft]]''.

== Gallery ==
<gallery>
Apple in Stronghold.png|An apple found in a stronghold chest.
Apple Item.png|An apple that dropped from decaying leaves.
Obtaining an apple by trading.png|Obtaining apples via villager trading.
File:Candy Apple (Trails and Tales Summer Event) Render.png|The Candy Apple, an item featured in the [[Trails & Tales Event]].
</gallery>

== References ==
{{reflist}}

== External Links ==
*[https://www.minecraft.net/en-us/article/taking-inventory-apple Taking Inventory: Apple] – Minecraft.net on November 23, 2018

{{items}}

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

[[cs:Jablko]]
[[de:Apfel]]
[[es:Manzana]]
[[fr:Pomme]]
[[hu:Alma]]
[[it:Mela]]
[[ja:リンゴ]]
[[ko:사과]]
[[nl:Appel]]
[[pl:Jabłko]]
[[pt:Maçã]]
[[ru:Яблоко]]
[[th:แอปเปิ้ล]]
[[uk:Яблуко]]
[[zh:苹果]]</li></ul>
beta 1.16.20.50Adult piglins drop gold ingots if killed with one hit while contemplating them and no longer spawn with enchanted weapons or armor.
The texture size has changed from 128x128 to 64x64, and the layout of the parts of the ears of piglins has been changed to match Java Edition 20w14a's.
Piglins now have the vindicator attacking animation when melee attacking, similar to Java Edition's from Piglin targeting BE1 to Piglin targeting BE2
beta 1.16.20.53Piglins can now spawn with enchanted weapons again.
beta 1.16.20.54The attack animation of unarmed piglins has been changed.
1.16.100
{{Extension DPL}}<ul><li>[[Rabbit Stew|Rabbit Stew]]<br/>{{Item
| title = Rabbit Stew
| heals = {{hunger|10}}
| renewable = Yes
| stackable = No
}}

'''Rabbit stew''' is a [[food]] [[item]] that can be eaten by the [[player]].

== Obtaining ==

=== Crafting ===

{{Crafting
  |shapeless=true
  |B1=Cooked Rabbit
  |A2=Carrot
  |B2=Baked Potato
  |C2=Any Mushroom
  |B3=Bowl
  |Output=Rabbit Stew
  |type=Foodstuff
}}

=== Trading ===
{{IN|bedrock}}, novice-level Butcher villagers always offer to sell rabbit stew for one emerald as their second trade.

{{IN|java}}, novice-level Butcher villagers have a 50% chance of offering rabbit stew for one emerald.

== Usage ==

=== Food ===
To eat rabbit stew, press and hold {{control|use}} while it is selected in the hotbar. Eating one restores {{hunger|10}} [[hunger]] and 12 hunger [[Hunger#Mechanics|saturation]]. This restores more hunger than any other food type in the game except [[cake]], but has less saturation than a [[golden carrot]], a [[cooked porkchop]], or a [[steak]].

Eating rabbit stew leaves the player with an empty bowl, similar to [[mushroom stew]], [[suspicious stew]], and [[beetroot soup]].

=== Wolves ===
{{IN|bedrock}}, rabbit stew can be used to feed [[wolves]], healing them by {{hp|10|mob=1}}. However, unlike other wolf food, rabbit stew does not speed up the growth of baby wolves, and it cannot be used to breed them. It is usable only on a wolf that has less than full health.

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

== Data values ==

=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Rabbit Stew
|spritetype=item
|nameid=rabbit_stew
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Rabbit Stew
|spritetype=item
|nameid=rabbit_stew
|id=290
|form=item
|foot=1}}

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

== Video ==

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

== History ==
{{History|java}}
{{History||1.8|snap=June 30, 2014|slink={{tweet|TheMogMiner|483725253018157057}}|[[Ryan Holtz]] tweets the recipe of rabbit stew, and that it can restore hunger better than any other item other than [[golden apple]]s (which was incorrect, as golden apples restore less hunger, but a whole [[cake]] restores more).}}
{{History|||snap=14w27a|[[File:Rabbit Stew JE1 BE1.png|32px]] Added rabbit stew.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 413.}}
{{History||1.14|snap=18w43a|[[File:Rabbit Stew JE2.png|32px]] The texture of rabbit stew has been changed.
|The rabbit stew's [[recipe]] is now shapeless.}}
{{History|||snap=18w50a|[[File:Rabbit Stew JE3 BE2.png|32px]] The texture of rabbit stew has been changed.}}
{{History|||snap=19w11a|Butcher [[villager]]s now [[trading|sell]] rabbit stew.}}

{{History|pocket alpha}}
{{History||v0.13.0|snap=build 1|[[File:Rabbit Stew JE1 BE1.png|32px]] Added rabbit stew.}}
{{History|bedrock}} 
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Rabbit Stew JE3 BE2.png|32px]] The texture of rabbit stew has been changed.
|The recipe for rabbit stew is now shapeless.}}
{{History||1.11.0|snap=beta 1.11.0.4|Butcher [[villager]]s now [[trading|sell]] rabbit stew.}}

{{History|console}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|switch=1.0.1|[[File:Rabbit Stew JE1 BE1.png|32px]] Added rabbit stew.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Rabbit Stew JE3 BE2.png|32px]] The texture of rabbit stew has been changed.
|The recipe for rabbit stew is now shapeless.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Rabbit Stew JE1 BE1.png|32px]] Added rabbit stew.}}
{{History|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* If the ingredients of rabbit stew were eaten separately and the [[mushroom]] had become half of a [[mushroom stew]], they would restore a total of {{Hunger|16}} and 19.2 saturation points. Without counting the mushroom, the separate ingredients would restore {{Hunger|13}} and 15.6 saturation points. Therefore, crafting rabbit stew results in a net loss of restorative points, though it is quicker than eating all the ingredients separately.
* Rabbit stew restores more hunger and total food points (hunger + saturation) than nearly any other single item (the exception is a suspicious stew with Saturation).  This is balanced by the point that the stew does not stack, and with its complex recipe it's not so easy to make "on the road". The suspicious stew shares the unstackability, but with only four ingredients it can at least be crafted in the inventory.

==Gallery==
<gallery>
Rabbit Stew Crafting.jpg|Crafting rabbit stew.
</gallery>

== References ==
{{Reflist}}

{{items}}

[[de:Kaninchenragout]]
[[es:Estofado de conejo]]
[[it:Stufato di coniglio]]
[[fr:Ragoût de lapin]]
[[ja:ウサギシチュー]]
[[ko:토끼 스튜]]
[[nl:Konijnenstoofpot]]
[[pl:Gulasz z królika]]
[[pt:Ensopado de coelho]]
[[ru:Тушёный кролик]]
[[uk:Тушкований кролик]]
[[zh:兔肉煲]]

[[Category:Food]]
[[Category:Renewable resources]]</li><li>[[:Category:Food|Category:Food]]<br/>

[[Category:Items]]

[[cs:Kategorie:Potraviny]]
[[fr:Catégorie:Nourriture]]
[[hu:Kategória:Ételek]]
[[zh:Category:食物]]</li></ul>
beta 1.16.100.54Piglins now keep their Crossbows when zombified.

Issues

Issues relating to "Piglin" are maintained on the bug tracker. Report issues there.

Trivia

  • Piglins can put on any type of head or skull from the ground, including carved pumpkins.
  • In the banner pattern "snout", there is a piglin snout. This is the same in the chiseled blackstone.
  • Similarly to how elder guardians and guardians are found in ocean monuments, piglin brutes and regular piglins are found in bastion remnants.
  • In Bedrock Edition, baby piglins make angry noises when any piglin gets angry. [16]
  • The piglins have no pupils unlike overworld pigs to make them look creepier.
  • Although piglins don't attack players in peaceful difficulty, they might attack players when a piglin is about to shoot at a hoglin and a player blocks its way.
  • Even though piglins are provoked when a barrel is opened, they do not attack fishermen villagers that work at their job site, which makes the same barrel sound.

Gallery

Piglin with Crossbow standby JEPiglin with Crossbow targeting JEPiglin with Crossbow standby BEPiglin with Crossbow targeting BE
The differences of piglins targeting with crossbows between Java Edition.

Renders

Missing Model JE3
This page would benefit from the addition of more images. 
Please remove this notice once you've added suitable images to the article.
The specific instructions are: A render of a piglin without a sword

Other

Artwork

References

  1. MC-172102 — resolved as "Works As Intended".
  2. MC-172618 — resolved as "Works As Intended".
  3. MC-172239 — resolved as "Works As Intended".
  4. MC-189485 — resolved as "Works As Intended".
  5. MC-198874
  6. MC-178973 — resolved as "Works As Intended".
  7. MC-179104 resolved as "Works as Intended"
  8. MCPE-99448
  9. This item is not listed in the piglin_loved item tag. Piglins pick this item up instantly. This is because this tag is also used for the trigger of the advancement/achievement "O(oo)h Shiny!"
  10. MCPE-91187
  11. MC-173169 Resolved as "Works As Intended"
  12. MC-172234 Resolved as "Works as Intended"
  13. The texture was added in the preview, as the texture dates from October 27, 2010 and the preview released at October 29, 2010.
  14. for users without accounts: https://media.discordapp.net/attachments/449243256849563648/690754756938825748/image0.png
  15. MC-196449
  16. MCPE-94090

See also