Minecraft Wiki
Advertisement
Information icon
This feature is exclusive to Pocket Edition. 
This article is about the NBT file format. For using NBT in commands, see Tutorials/Command NBT tags.

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

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

TAG definition

Add more columns [discuss]
This section might benefit of the addition of the "prefix and/or suffix in SNBT" column.

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

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

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

File Format

An NBT file is a GZip'd Compound tag, name and tag ID included. Some of the files utilized by Minecraft may be uncompressed, but in most cases the files follow Notch's original specification and are compressed with GZip. In the Legacy Console Edition, chunks are compressed with XMemCompress, a variation of an LZX compression algorithm. There is no header to specify the version or any other information - only the level.dat file specifies the version.

As used in Minecraft

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

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

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

Uses

Software

Mojang has provided sample Java NBT classes for developers to use and reference as part of the source code for the McRegion -> Anvil converter. Since 1.13, Minecraft includes a builtin converter between SNBT format and compressed NBT format. It comes with the client and the official server.[1]

Official

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

The vanilla data generator can convert any GZip compressed NBT format to SNBT format. You can simply change the file extension of a file, such as level.dat to level.nbt and put it in the input folder, and the generator will decode the GZip compressed NBT data.

Third-Party

The community has developed programs to view and modify compressed and uncompressed NBT files:

Name NBT Version Description Screenshot
CL-NBT 19132 CL-NBT is an NBT implementation in Common Lisp that can read and write NBT files and load and save McRegion files. Anvil format works with slight modification.
MineBack Ultimate 19133 MineBack Ultimate provides a full NBT editor supporting all available types of NBT format file (Map, Level, World etc.). It comes with a modern GUI and many helper functions. File:MineBackNBTEditor.png
NBT for Python 19133 Library to parse & write NBT files, both standalone or in region files, in the Python scripting language. Provided with application examples for inspecting & editing the Minecraft data files (block / chest / mobs statistics and simple world mapping). Supports old McRegion, pre-flattened and latest Anvil formats.
NBTEdit 19132 Allows for viewing and modifying NBT files via a Windows tree control. It is outdated not only from being an NBT version behind, but because it does not support multiple tags with the same name and it forces incorrect ranges on some types, and it lacks support for uncompressed NBT files. File:NBTEdit Level.Dat.png
NBTExplorer - Forum Post 19133 Inspired by and based on NBTEdit, this program allows viewing and editing of NBT files via a Windows tree control. It supports compressed and uncompressed NBT files, and allows for direct editing of the NBT structures in MCRegion and Anvil files, level.dat, etc. File:NBTExplorer.png
NBT grammar for Synalyze It! 19132 Using this grammar Synalyze It! displays a color-coded hex dump along with the parsed tag tree. Currently only uncompressed files are supported. File:Synalyze-It-NBT-decoded.png
NEINedit 19132 NBT editor for mac with a text-based tree structure. File:NEINedit.png
NBT2YAML 19133 nbt2yaml presents a command line interface for reading and editing Minecraft NBT files using a custom YAML format. It also includes a Python API for parsing and writing NBT files to/from a simple Python data structure.
webNBT 19133 webNBT is an NBT-editor that runs in modern browsers without requiring the user to download an application or use third-party browser plugins (like Flash or Java).

History

Java Edition
1.0.0
{{Extension DPL}}<ul><li>[[Nether Quartz|Nether Quartz]]<br/>{{About|the item|the ore|Nether Quartz Ore|the mineral block|Block of Quartz|other uses|Quartz}}
{{Item
| image = Nether Quartz.png
|type=
| renewable = Yes
| stackable = Yes (64)
}}

'''Nether quartz''' is a white mineral found in [[the Nether]].

== Obtaining ==
{{see also|Nether Quartz Ore#Natural generation}}

=== Mining ===

[[Nether quartz ore]] mined using a [[pickaxe]] drops one unit of Nether quartz. If the pickaxe is enchanted with [[Fortune]], it may drop an extra unit per level of Fortune, up to a maximum of four with Fortune III. If the pickaxe is enchanted with [[Silk Touch]], the ore drops itself.

=== Chest loot ===
{{LootChestItem|nether-quartz}}

=== Smelting ===
{{Smelting
|Nether Quartz Ore
|Nether Quartz
|0,2
}}

=== Bartering ===

[[Piglin]]s may [[barter]] 5–12 nether quartz when given a [[gold ingot]].

== Usage ==

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

=== Trading ===

Expert-level stone mason [[villagers]] have a {{frac|1|33}} chance to trade one [[emerald]] for 12 Nether quartz {{in|java}}. This trade is always offered {{in|bedrock}}.

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

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

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Nether Quartz
|spritetype=item
|nameid=quartz
|id=524
|form=item
|foot=1}}

== History ==

{{History|java}}
{{History||1.5|snap=13w01a|[[File:Nether Quartz JE1 BE1.png|32px]] Added Nether quartz. 
|Nether quartz is used to craft [[daylight sensor]]s and [[redstone comparator]]s.}}
{{History|||snap=January 4, 2013|slink=http://twitter.com/jeb_/status/287481098760499201|[[Jeb]] tweeted that Nether quartz would be used for more decorative uses as well.}}
{{History|||snap=January 7, 2013|slink=http://twitter.com/jeb_/status/288311932304371712|Jeb tweeted a picture of some [[block of quartz]] tests potentially being replacements for the lack of limestone/marble in the game.}}
{{History|||snap=13w02a|Added [[block of quartz]], which is [[crafting|crafted]] with Nether quartz.}}
{{History||1.8|snap=14w02a|Nether quartz can now be used to craft [[granite]] and [[diorite]].}}
{{History||1.11|snap=16w39a|Nether quartz is now used to craft [[observer]]s.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeric ID was 406.}}
{{History||1.14|snap=18w43a|[[File:Nether Quartz JE2 BE2.png|32px]] The texture of Nether quartz has now been changed.}}
{{History|||snap=19w11a|Nether quartz is now [[trading|bought]] by [[villager]]s of the new mason profession.}}
{{History||1.16|snap=20w07a|Nether quartz now has a {{frac|1|109}} (~0.92%) chance of being offered by [[piglin]]s when [[bartering]], in a stack size of 1–4, making it [[renewable resource|renewable]].}}
{{History|||snap=20w09a|Nether quartz now has a {{frac|10|226}} (~4.42%) chance of being offered by piglins when bartering, in a stack size of 1–5.}}
{{History|||snap=20w10a|Nether quartz now has a {{frac|20|411}} (~4.87%) chance of being offered by piglins when bartering, in a stack size of 8-16.}}
{{History|||snap=20w11a|Nether quartz now has a {{frac|20|417}} (~4.80%) chance of being offered by piglins when bartering.}}
{{History|||snap=20w13a|Nether quartz now has a {{frac|20|424}} (~4.72%) chance of being offered by piglins when bartering.}}
{{History|||snap=20w16a|Nether quartz can now be found in [[bastion remnant]] chests.}}
{{History|||snap=20w20a|Nether quartz now has a {{frac|20|423}} (~4.73%) chance of being offered by piglins when bartering.}}
{{History||1.16.2|snap=20w28a|Nether quartz now has a {{frac|20|459}} (~4.36%) chance of being offered by piglins when bartering, in a stack size of 5-12.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w04a|Nether quartz can now be used as an armor trim material.}}

{{History|pocket alpha}}
{{History||v0.6.0|[[File:Nether Quartz JE1 BE1.png|32px]] Added Nether quartz.}}
{{History||v0.12.1|snap=build 1|Nether quartz is no longer available from the [[Nether reactor]] and is now available from [[the Nether]].}}
{{History||v0.13.0|snap=build 1|Nether quartz is now used to craft [[daylight sensor]]s.}}
{{History||v0.14.0|snap=build 1|Nether quartz can now be used to craft [[redstone comparator]]s.}}
{{History||v0.15.0|snap=build 1|Nether quartz is now used to craft [[observer]]s.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Nether Quartz JE2 BE2.png|32px]] The texture of Nether quartz has now been changed.
|Between 20 and 26 nether quartz can now be [[trading|sold]] to stone mason [[villager]]s.}}
{{History||1.11.0|snap=beta 1.11.0.4|[[Trading]] has now been changed, 12 Nether quartz can now be sold to stone mason villagers.}}
{{History||1.16.0|snap=beta 1.16.0.57|Nether Quartz can now be obtained from bartering with piglin.}}
{{History||1.19.80|snap=beta 1.19.80.21|Nether quartz can now be used as an armor trim material.}}

{{History|console}}
{{History||xbox=TU14|xbone=CU1|ps=1.04|wiiu=Patch 1|switch=1.0.1|[[File:Nether Quartz JE1 BE1.png|32px]] Added Nether quartz.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Nether Quartz JE2 BE2.png|32px]] The texture of Nether quartz has now been changed.}}

{{History|New 3DS}}
{{History||0.1.0|[[File:Nether Quartz JE1 BE1.png|32px]] Added Nether quartz.}}
{{History|foot}}

== Issues ==

{{issue list}}

== Trivia ==

* All of the sensor related items that are craftable (comparator, daylight sensor, observer) are crafted with some Nether quartz involved.

== References ==

{{reflist}}

{{items}}

[[Category:Renewable resources]]

[[cs:Netheritový křemen]]
[[de:Netherquarz]]
[[es:Cuarzo del Nether]]
[[fr:Quartz du Nether]]
[[hu:Alvilági kvarc]]
[[ja:ネザークォーツ]]
[[ko:네더 석영]]
[[nl:Netherkwarts]]
[[pl:Kwarc]]
[[pt:Quartzo do Nether]]
[[ru:Кварц Нижнего мира]]
[[uk:Пекельний кварц]]
[[zh:下界石英]]</li><li>[[:Category:Minecraft Dungeons items|Category:Minecraft Dungeons items]]<br/>All items that are in ''[[Minecraft Dungeons]]''.
{{Minecraft Dungeons items}}
[[Category:Minecraft Dungeons]]
[[Category:Items]]
[[ja:カテゴリ:アイテム (Minecraft Dungeons)]]
[[pl:Kategoria:Przedmioty w Minecraft Dungeons]]
[[pt:Categoria:Itens do Minecraft Dungeons]]</li></ul>
September 28, 2011Notch works on "saving arbitrary data with item instances."
1.12
{{Extension DPL}}<ul><li>[[Popped Chorus Fruit|Popped Chorus Fruit]]<br/>{{Item
| image = Popped Chorus Fruit.png
| renewable =  Yes
| stackable = Yes (64)
}}

'''Popped chorus fruit''' is an [[item]] obtained by [[smelting]] [[chorus fruit]], and used to craft [[End Rod|end rods]] and [[purpur blocks]]. Unlike raw chorus fruit, the popped fruit is inedible.

== Obtaining ==
=== Smelting ===
{{Smelting
|Chorus Fruit
|Popped Chorus Fruit
|0,1
}}

== Usage ==

=== Crafting ingredient ===

{{crafting usage}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Popped Chorus Fruit
|spritetype=item
|nameid=popped_chorus_fruit
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Popped Chorus Fruit
|spritetype=item
|nameid=popped_chorus_fruit
|aliasid=chorus_fruit_popped
|id=559
|form=item
|translationkey=item.chorus_fruit_popped.name
|foot=1}}

== History ==

{{History|java}}
{{History||1.9|snap=15w31a|[[File:Popped Chorus Fruit JE1 BE1.png|32px]] Added popped chorus fruit. 
|Popped chorus fruit are used to craft [[purpur block]]s.}}
{{History|||snap=15w44b|Popped chorus fruit are now used to craft [[end rod]]s.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 433.}}
{{History|||snap=pre5|The ID of popped chorus fruit has now been changed to <code>popped_chorus_fruit</code>.}}
{{History||1.14|snap=18w43a|[[File:Popped Chorus Fruit JE2 BE2.png|32px]] The texture of popped chorus fruit has now been changed.}}

{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|[[File:Popped Chorus Fruit JE1 BE1.png|32px]] Added popped chorus fruit.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Popped Chorus Fruit JE2 BE2.png|32px]] The texture of popped chorus fruit has now been changed.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of popped chorus fruit has been changed from <code>chorus_fruit_popped</code> to <code>popped_chorus_fruit</code>.}}

{{History|console}}
{{History||xbox=TU46|xbone=CU36|ps=1.38|wiiu=Patch 15|[[File:Popped Chorus Fruit JE1 BE1.png|32px]] Added popped chorus fruit.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Popped Chorus Fruit JE2 BE2.png|32px]] The texture of popped chorus fruit has now been changed.}}

{{History|new 3ds}}
{{History||1.7.10|[[File:Popped Chorus Fruit JE1 BE1.png|32px]] Added popped chorus fruit.}}
{{History|foot}}

== Issues ==

{{issue list}}

{{Items}}

[[cs:Vypukaný květ chorusu]]
[[de:Geplatzte Chorusfrucht]]
[[fr:Chorus éclaté]]
[[it:Frutto di chorus scoppiato]]
[[ja:焼いたコーラスフルーツ]]
[[ko:튀긴 후렴과]]
[[nl:Gepoft Chorusfruit]]
[[pl:Prażony owoc refrenusu]]
[[pt:Fruta do coro cozida]]
[[ru:Приготовленный плод коруса]]
[[zh:爆裂紫颂果]]
[[Category:Renewable resources]]</li><li>[[:Category:Storage|Category:Storage]]<br/>Blocks and items used to '''store''' other blocks or items.

[[Category:Blocks]][[Category:Items]]

[[ja:カテゴリ:ストレージ]]
[[zh:Category:储物]]</li></ul>
?Added long array tags.
1.13
{{Extension DPL}}<ul><li>[[Yellow Dye|Yellow Dye]]<br/>{{Item
| title = Yellow Dye
| renewable = Yes
| stackable = Yes (64)
}}
'''Yellow dye''' is a [[Dye#Primary|primary dye]] created by placing a [[dandelion]] or [[sunflower]] into a [[crafting]] grid.

== Obtaining ==

=== Crafting ===
{{Crafting
  |Dandelion;Sunflower
  |Output=Yellow Dye;Yellow Dye,2
  |type=Material
}}

=== Chest loot ===
{{LootChestItem|yellow-dye}}

=== Trading ===

[[Wandering trader]]s sell 3 yellow dye for an [[emerald]].

== Usage ==
{{dye usage}}

=== Crafting ingredient ===
{{crafting usage|ignore=Banner|continue=1}}
{{banner crafting usage}}

=== Loom ingredient ===
{{Banner loom usage|Yellow Dye}}

=== Trading ===
Expert-level shepherd villagers have a {{frac|1|6}} chance to buy 12 yellow dye for an emerald.

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Yellow Dye
|spritetype=item
|nameid=yellow_dye
|aliasid=dye / 11
|id=406
|form=item
|translationkey=item.dye.yellow.name
|foot=1}}

== Video ==
{{yt|nOQUDjEHGRg}}

== History ==
{{History|java beta}}
{{History||1.2|[[File:Yellow Dye JE1 BE1.png|32px]] Added dandelion yellow.}}
{{History||1.6.6|Dandelions can now be generated using [[Bone Meal|bone meal]], making dandelion yellow [[renewable resource|renewable]].}}
{{History|java}}
{{History||1.4.2|snap=12w34a|Added the ability to [[Armor#Dyeing|dye]] leather [[armor]] and [[wolf]] collars.}}
{{History||1.4.6|snap=12w49a|Dandelion yellow can be crafted with [[gunpowder]] to create a [[firework star]].}} 
{{History||1.6.1|snap=13w19a|[[Stained clay]] can now be crafted.}}
{{History||1.7.2|snap=13w36a|Can now be crafted using sunflower.}}
{{History|||snap=13w37a|Each dandelion now yields only 1 dandelion yellow, instead of 2.}}
{{History|||snap=13w41a|[[Stained glass]] can now be [[crafting|crafted]].}}
{{History||1.8|snap=14w30a|Added [[banner]]s, which can be [[dye]]d.}}
{{History||1.11|snap=16w39a|Added the ability to dye [[shulker box]]es.}}
{{History||1.12|snap=17w06a|Yellow dye can now be used to craft yellow [[concrete powder]].}}
{{History|||snap=17w15a|Added the ability to dye [[bed]]s.}}
{{History||1.13|snap=17w47a|The different data values for the <code>dye</code> ID have now been split up into their own IDs.
|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 351.}}
{{History||1.14|snap=18w43a|"Dandelion Yellow" has now been renamed to "Yellow Dye".
|[[File:Yellow Dye JE2 BE2.png|32px]] The texture of yellow dye has now been changed.}}
{{History|||snap=18w44a|Yellow dye can now change the text color on [[sign]]s to yellow.}}
{{History|||snap=18w49a|Yellow dye can now be found in [[chest]]s in [[village]] mason houses.}}
{{History|||snap=19w05a|Added the [[wandering trader]], which sells yellow dye.}}
{{History|||snap=19w11a|Yellow dye can now be [[trading|bought]] by shepherd villagers.}}
{{History||1.17|snap=20w45a|Yellow dye can now be used to craft [[yellow candle]]s.}}
{{History|||snap=21w19a|Yellow dye can no longer be used to craft yellow candles.}}
{{History|||snap=Pre-release 1|Yellow dye can once again used to craft yellow candles.}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|Yellow dye can now change the text color on [[hanging sign]]s to yellow.}}
{{History||1.20|snap=23w12a|Yellow dye can now be found in [[suspicious gravel]] and [[suspicious sand]] in [[trail ruins]].}}
{{History|||snap=23w16a|Yellow dye no longer generates in [[suspicious sand]] in [[trail ruins]].|Due to the split of the archaeological loot tables for suspicious gravel within [[trail ruins]], yellow dye is now common loot.}}

{{History|pocket alpha}}
{{History||v0.3.0|[[File:Yellow Dye JE1 BE1.png|32px]] Added dandelion yellow.}}
{{History||v0.8.0|snap=build 1|Dandelion yellow is now used to craft [[cocoa beans]].}}
{{History||v0.14.0|snap=build 1|Yellow dye can now be used to dye [[water]] in [[cauldron]]s.}}
{{History||v0.16.0|snap=build 1|Dandelion yellow is no longer used to [[crafting|craft]] cocoa beans.}}
{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|Yellow dye can now be used to dye [[shulker]]s.}}
{{History||1.1.0|snap=alpha 1.1.0.0|Yellow dye can now be used to dye [[shulker box]]es, [[bed]]s, and craft [[concrete powder]].}}
{{History|bedrock}}
{{History||1.2.0|snap=beta 1.2.0.2|Yellow dye can now be used to craft patterns on [[banner]]s, [[firework star]]s, and [[stained glass]].}}
{{History||1.4.0|snap=beta 1.2.20.1|Yellow dye can now be used to craft [[balloon]]s and [[glow stick]]s.}}
{{History||1.8.0|snap=beta 1.8.0.8|Dandelion yellow can now be used to dye [[cat]] collars.}}
{{History|||snap=beta 1.8.0.10|"Dandelion Yellow" has now been renamed to "Yellow Dye".}}
{{History||1.10.0|snap=beta 1.10.0.3|Yellow dye is now [[trading|sold]] by [[wandering trader]]s.
|[[File:Yellow Dye JE2 BE2.png|32px]] The texture of yellow dye has now been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Yellow dye can now be found in [[village]] mason [[chest]]s.}}
{{History|||snap=beta 1.11.0.4|Yellow dye can now be sold to shepherd [[villager]]s.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of yellow dye has been changed from <code>dye/11</code> to <code>yellow_dye</code>.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.00|switch=1.0.1|wiiu=Patch 1|[[File:Yellow Dye JE1 BE1.png|32px]] Added dandelion yellow.}}
{{History|ps4}}
{{History||1.83|"Dandelion Yellow" has now been renamed to "Yellow Dye".}}
{{History||1.90|[[File:Yellow Dye JE2 BE2.png|32px]] The texture of yellow dye has now been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Yellow Dye JE1 BE1.png|32px]] Added dandelion yellow.}}
{{History|foot}}

== Issues ==

{{issue list}}

== References ==

{{reflist}}

{{Items}}

[[cs:Pampelišková žluť]]
[[de:Gelber Farbstoff]]
[[es:Tinte amarillo]]
[[fr:Teinture jaune]]
[[hu:Pitypangsárga]]
[[ja:黄色の染料]]
[[ko:노란색 염료]]
[[nl:Paardenbloemgeel]]
[[pl:Żółty barwnik]]
[[pt:Corante amarelo]]
[[ru:Жёлтый краситель]]
[[zh:黄色染料]]

[[Category:Items]]
[[Category:Dyes]]
[[Category:Renewable resources]]</li><li>[[Netherite Ingot|Netherite Ingot]]<br/>{{About|the refined item|the scrap|Netherite Scrap|the ore|Ancient Debris|other uses|Netherite}}
{{Item
| rarity = Common
| renewable = No
| stackable = Yes (64)
}}
'''Netherite ingots''' are items obtained from crafting [[netherite scrap]]s and [[gold ingot]]s together, as well as loot from [[bastion remnant]] loot chests. Unlike other items, they are immune to fire and [[lava]] damage. They are primarily used to upgrade [[diamond]] gear and craft [[lodestone]]s.

== Obtaining ==

Netherite ingots are obtained by crafting four [[netherite scrap]]s and four [[gold ingot]]s. It is a shapeless recipe, therefore the placement of the netherite scraps and gold ingots does not matter when crafting it.

=== Crafting ===

{{Crafting
|head=1
|showname=0
|Netherite Scrap
|Netherite Scrap
|Netherite Scrap
|Netherite Scrap
|Gold Ingot
|Gold Ingot
|Gold Ingot
|Gold Ingot
|Output=Netherite Ingot
|type=Material
}}

{{Crafting 
|Block of Netherite
|Output=Netherite Ingot,9
|type=Material
|foot=1
}}

=== Chest loot ===
{{LootChestItem|netherite-ingot}}

== Usage ==
Netherite ingots are crafting materials used to make netherite tools, weapons, and armor.

=== Crafting ingredient ===

{{crafting usage}}

=== Smithing ingredient ===
Netherite ingots can be used on a [[smithing table]] to upgrade diamond items to netherite items, as well as trim any armor piece. Data such as durability, enchantments, and custom names are preserved.

{{Smithing
|head=1
|ingredients=[[Netherite Upgrade]] +<br>Any [[diamond]] gear +<br>[[Netherite Ingot]]
|Netherite Upgrade
|Diamond Helmet; Diamond Chestplate; Diamond Leggings; Diamond Boots; Diamond Sword; Diamond Pickaxe; Diamond Axe; Diamond Shovel; Diamond Hoe
|Netherite Ingot
|Netherite Helmet; Netherite Chestplate; Netherite Leggings; Netherite Boots; Netherite Sword; Netherite Pickaxe; Netherite Axe; Netherite Shovel; Netherite Hoe
}}
{{Smithing
|ingredients=Any Armor Trim +<br/>Any Armor Piece + <br/>Netherite Ingot
|Any Armor Trim Smithing Template
|Diamond Chestplate
|Netherite Ingot
|Netherite Trim Diamond Chestplate
|showdescription=1
|description = All armor types can be used in this recipe,<br/>a diamond 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|netherite ingot}}
* {{TrimPalette|netherite ingot|darker=1}} (a darker color palette is used when a netherite armor piece is trimmed using a netherite ingot).

=== Repairing ===

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

=== Beacons ===

A netherite ingot could be used to select powers from a [[beacon]] instead of using an [[emerald]], [[gold ingot]], [[iron ingot]], or a [[diamond]]. The player must select one of the available powers, and then insert an ingot in the item slot. The [[gold]] option is more efficient than the netherite option because it consumes 3 fewer gold and no [[Netherite Scrap|netherite scrap]].

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Netherite Ingot
|spritetype=item
|nameid=netherite_ingot
|id=603
|form=item
|foot=1}}

=== Advancements ===
{{load advancements|Serious dedication}}

== History ==
{{History|java}}
{{History||1.16|snap=20w06a|[[File:Netherite Ingot JE1 BE2.png|32px]] Added netherite ingots.}}
{{History|||snap=20w07a|Netherite ingots can now be used to power [[beacon]]s.}}
{{History|||snap=20w10a|The [[crafting]] recipe for netherite [[tools]] and [[armor]] has been changed so that a [[smithing table]] is used instead of a [[crafting table]] and [[enchanting|enchantments]] are preserved when upgrading [[item]]s.}}
{{History|||snap=20w13a|Netherite ingots can now be used to craft [[lodestone]]s.}}
{{History|||snap=20w16a|Netherite ingots can now be found in [[bastion remnant]] chests.}}
{{History||1.16.2|snap=20w30a|Increased the chance of finding netherite ingots in bastion remnant chests from 16.8% to 42.1%.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w04a|Netherite ingots can now be used as an armor trim material.|Upgrading diamond tools and armor to netherite now requires the netherite upgrade [[smithing template]] in addition to a netherite ingot.}}
{{History|||snap=23w05a|Netherite ingots can now be used to trim netherite armor.}}
{{History||1.20|snap=23w12a|Netherite ingots are now usable for trimming without requiring the "Update 1.20" experimental datapack to be enabled.}}

{{History|bedrock}}
{{History||1.16.0|snap=beta 1.16.0.51|[[File:Netherite Ingot BE1.png|32px]] Added netherite ingots.}}
{{History|||snap=beta 1.16.0.57|Netherite ingots can now be used to power [[beacon]]s.
|The [[crafting]] recipe for netherite [[tools]] and [[armor]] has been changed so that a [[smithing table]] is used instead of a [[crafting table]] and [[enchanting|enchantments]] are preserved when upgrading [[item]]s.
|Netherite ingots can now be used to craft [[lodestone]]s.
|Netherite ingots can now be found in [[bastion remnant]] chests.}}
{{History||1.17.10|snap=beta 1.17.10.20|[[File:Netherite Ingot JE1 BE2.png|32px]] The texture of netherite ingots has been changed to match ''Java Edition''.}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.21|Netherite ingots can now be used as an armor trim material.|Upgrading diamond tools and armor to netherite now requires the netherite upgrade [[smithing template]] in addition to a netherite ingot.}}
{{History||1.20.0|snap=beta 1.20.0.21|Netherite ingots are now usable for trimming without requiring the "Next Major Update" experimental toggle to be enabled.}}
{{History|foot}}

== Issues ==
{{issue list}}

== See also ==
* {{EnvLink|Bastion Remnant}}
* {{BlockLink|Block of Netherite}}
* {{ItemLink|Netherite Scrap}}
*  {{BlockLink|Ancient Debris}}
*{{BlockLink|Lodestone}}

== External Links ==
* [https://www.minecraft.net/en-us/article/taking-inventory--netherite-ingot Taking Inventory: Netherite Ingot] – Minecraft.net on May 28, 2020

{{Items}}

[[de:Netheritbarren]]
[[es:Lingote de netherita]]
[[fr:Lingot de Netherite]]
[[it:Lingotto di netherite]]
[[ja:ネザライトインゴット]]
[[ko:네더라이트 주괴]]
[[pl:Sztabka netherytu]]
[[pt:Barra de netherita]]
[[ru:Незеритовый слиток]]
[[th:แท่งเนเธอไรต์]]
[[uk:Незеритовий злиток]]
[[zh:下界合金锭]]
[[Category:Non-renewable resources]]</li></ul>
?Added a data generator to both the Minecraft client and the default multiplayer software.
1.14
{{Extension DPL}}<ul><li>[[Melon Slice|Melon Slice]]<br/>{{Dungeons hatnote|type=consumable|Melon}}
{{Item
| title = Melon Slice
|typeimage=Melon Slice.png
| renewable = Yes
| heals = {{hunger|2}}
| stackable = Yes (64)
}}
A '''melon slice'''{{efn|Known as '''Melon Slice''' {{in|java}} and '''Melon''' {{in|bedrock}}.}} is a [[food]] item that can be eaten by the [[player]].

== Obtaining ==

=== Block loot ===

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

Melon slices can be obtained by breaking (harvesting) [[melon]]s using any [[tool]] or by hand. [[Axe]]s, followed by [[sword]]s, are the fastest tools for harvesting melons.  A melon drops 3–7 melon slices, when broken; by hand, using a [[tool]], or after being broken by the movement of a [[piston]], with an average of 4.64 slices per melon.

Breaking a melon with a tool enchanted with [[Fortune]] increases the potential number of drops by 1 slice per level, up to a maximum of 9 slices.

== Usage ==

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

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

=== Crafting ingredient ===

{{crafting usage}}

=== Composting ===
Placing a melon slice into a [[composter]] has a 50% 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=Melon Slice
|spritetype=item
|nameid=melon_slice
|form=item
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|spritename=melon-slice
|displayname=Melon
|spritetype=item
|nameid=melon_slice
|aliasid=melon
|id=272
|form=item
|translationkey=item.melon.name
|foot=1}}

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

== History ==
{{History|java beta}}
{{History||1.8|snap=Pre-release|[[File:Melon Slice JE1 BE1.png|32px]] Added melons.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 4|Melons are now used in the [[crafting]] recipe of [[glistering melon]]s.}}
{{History|||snap=Beta 1.9 Prerelease 5|Melons once again drop the correct number of slices.}}
{{History||1.3.1|snap=12w21a|Melons can now be [[trading|bought]] from farmer [[villager]]s, at 5–8 melon slices for 1 [[emerald]].}}
{{History||1.7.2|snap=13w37a|Block ID 105, [[melon stem]], has been removed from the {{cmd|give}} [[commands|command]].}}
{{History||1.8|snap=14w02a|[[Villager]]s no longer [[trading|sell]] melons. They now buy [[melon]]s instead.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[item]]'s numeral ID was 360.}}
{{History|||snap=18w20b|"Melon" has been renamed to "Melon Slice."
|The ID of melon slices has been changed from <code>melon</code> to <code>melon_slice</code>.}}
{{History||1.14|snap=18w43a|[[File:Melon Slice JE2 BE2.png|32px]] The texture of melon slices has been changed.}}
{{History|||snap=19w03a|Placing a melon slice into the new [[composter]] has a 20% chance of raising the compost level by 1.}}
{{History|||snap=19w05a|Melon slices now have a 50% chance of increasing the compost level in a composter by 1.}}

{{History|pocket alpha}}
{{History||v0.5.0|[[File:Melon Slice JE1 BE1.png|32px]] Added melons. 
|Melons restore {{health|2}} each, rather than {{hunger|2}}.}}
{{History||v0.12.1|snap=?|Added Melon slice to the Creative inventory.}}
{{History|||snap=build 1|Melons now restores [[hunger]] instead of [[health]].
|Melons can no longer be obtained from [[nether reactor]]s.}}
{{History|pocket}}
{{History||1.1.0|snap=alpha 1.1.0.3|[[Breaking]] a [[melon]] with [[shears]] now always yields 9 melons.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Melon Slice JE2 BE2.png|32px]] The texture of melons has been changed.}}
{{History||1.11.0|snap=beta 1.11.0.1|Melons can now be used to fill up [[composter]]s.}}
{{History|||snap=beta 1.11.0.4|Melons can now be [[trading|sold]] to farmer [[villager]]s.}}
{{History||1.16.0|snap=beta 1.16.0.57|[[Trading]] has been changed, melon slices can no longer be sold to farmer villagers.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of melon slices has been changed from <code>melon</code> to <code>melon_slice</code>.}}

{{History|console}}
{{History||xbox=TU5|xbone=CU1|ps=1.0|wiiu=Patch 1|[[File:Melon Slice JE1 BE1.png|32px]] Added melons.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Melon Slice JE2 BE2.png|32px]] The texture of melons has been changed.}}

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

== Issues ==
{{issue list}}

== See also ==
* [[Pumpkin]]
* [[Glistering Melon Slice]]

== Notes ==
{{fnlist}}

{{Items}}

[[Category:Plants]]

[[cs:Meloun]]
[[de:Melone]]
[[es:Rodaja de sandía]]
[[fr:Tranche de pastèque]]
[[hu:Dinnye Szelet]]
[[ko:수박]]
[[nl:Meloenschijf]]
[[pl:Arbuz]]
[[pt:Fatia de melancia]]
[[ru:Ломтик арбуза]]
[[zh:西瓜片]]
[[Category:Food]]
[[Category:Renewable resources]]</li><li>[[Brown Dye|Brown Dye]]<br/>{{Item
| image = Brown Dye.png
| renewable = Yes
| stackable = Yes (64)
}}

'''Brown dye''' is a [[Dye#Primary|primary color dye]] derived from [[cocoa beans]].

== Obtaining ==
=== Crafting ===
{{Crafting
 |Cocoa Beans
 |Output=Brown Dye
 |type=Material
 |head=
}}

== Usage  ==

{{dye usage}}

=== Crafting ingredient ===

{{crafting usage|ignore=Banner|continue=1}}
{{banner crafting usage}}

=== Loom ingredient ===
{{Banner loom usage|Brown Dye}}

=== Trading ===

Apprentice-level Shepherd villagers have a 20% chance to buy 12 brown dye for an emerald.‌{{only|bedrock}}

Expert-level Shepherd villagers have a {{frac|2|7}} chance to buy 12 brown dye for an emerald.{{only|java}}

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

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|showaliasids=y
|shownumericids=y
|showforms=y
|notshowbeitemforms=y
|generatetranslationkeys=y
|displayname=Brown Dye
|spritetype=item
|nameid=brown_dye
|aliasid=dye / 17
|id=398
|form=item
|translationkey=item.dye.brown_new.name
|foot=1}}

== History ==
{{expand section|Item textures and more from a development video on twitter by bartek.}}
{{History|java}}
{{History||1.14|snap=18w43a|[[File:Brown Dye JE1 BE1.png|32px]] Added brown dye.}}
{{History|||snap=18w44a|Brown dye now can change the text color on [[sign]]s to brown.}}
{{History|||snap=19w05a|Added the [[wandering trader]], which sell brown dyes.}}
{{History|||snap=19w11a|Brown dye can now be [[trading|bought]] by shepherd villagers.}}
{{History||1.17|snap=20w45a|Brown dye can now used to craft newly added [[brown candle]]s.}}
{{History|||snap=21w19a|Brown dye can no longer used to craft brown candles.}}
{{History|||snap=Pre-release 1|Brown dye can once again used to craft brown candles.}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|Brown dye now can change the text color on [[hanging sign]]s to brown.}}

{{History|bedrock}}
{{History||1.8.0|snap=beta 1.8.0.10|[[File:Brown Dye JE1 BE1.png|32px]] Added brown dye.}}
{{History||1.11.0|snap=beta 1.11.0.4|Brown dye can now be [[trading|sold]] to shepherd [[villager]]s.}}
{{History||1.16.100|snap=beta 1.16.100.56|The ID of brown dye has been changed from <code>dye/17</code> to <code>brown_dye</code>.}}

{{History|ps4}}
{{History||1.83|[[File:Brown Dye JE1 BE1.png|32px]] Added brown dye.}}
{{History|foot}}

== Issues ==

{{issue list}}

{{Items}}

[[Category:Dyes]]
[[Category:Renewable resources]]

[[de:Brauner Farbstoff]]
[[es:Tinte marrón]]
[[fr:Teinture marron]]
[[ja:茶色の染料]]
[[ko:갈색 염료]]
[[pl:Brązowy barwnik]]
[[pt:Corante marrom]]
[[th:สีย้อมสีน้ำตาล]]
[[zh:棕色染料]]</li></ul>
19w08a String tags can now be within single quotes ' besides double quotes ".[2]

References

Advertisement