Minecraft:Dye: Difference between revisions
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 55: | Line 55: | ||
}} | }} | ||
[[File:In-game colored block-item chart v2.png|alt=Colored block/item chart|thumb| | [[File:In-game colored block-item chart v2.png|alt=Colored block/item chart|thumb|325x325|In-game colored block/item spectrum]] | ||
'''Dyes''' are a set of sixteen items used to change the color of [[Minecraft:wool]], [[Minecraft:wool stairs]], [[Minecraft:wool slab]]s, [[Minecraft:cushion]]s, [[Minecraft:carpet]]s, [[Minecraft:terracotta]], [[Minecraft:concrete powder]], [[Minecraft:glass]], [[Minecraft:shulker box]]es, [[Minecraft:bed]]s, [[Minecraft:candle]]s, [[Minecraft:bundle]]s, [[Minecraft:harness]]es, the patterns on [[Minecraft:banner]]s, [[Minecraft:firework star]]s, certain mobs, and text on [[Minecraft:sign]]s and [[Minecraft:hanging sign]]s. {{IN|bedrock}}, they can be used to dye water in a [[Minecraft:cauldron]] (which is thereafter used to dye [[Minecraft:leather armor]]) and [[Minecraft:shulker]]s; {{in|java}}, leather armor can be dyed directly. {{IN|education}}, they can be used to dye [[Minecraft:balloon]]s and [[Minecraft:glow stick]]s. | '''Dyes''' are a set of sixteen items used to change the color of [[Minecraft:wool]], [[Minecraft:wool stairs]], [[Minecraft:wool slab]]s, [[Minecraft:cushion]]s, [[Minecraft:carpet]]s, [[Minecraft:terracotta]], [[Minecraft:concrete powder]], [[Minecraft:glass]], [[Minecraft:shulker box]]es, [[Minecraft:bed]]s, [[Minecraft:candle]]s, [[Minecraft:bundle]]s, [[Minecraft:harness]]es, the patterns on [[Minecraft:banner]]s, [[Minecraft:firework star]]s, certain mobs, and text on [[Minecraft:sign]]s and [[Minecraft:hanging sign]]s. {{IN|bedrock}}, they can be used to dye water in a [[Minecraft:cauldron]] (which is thereafter used to dye [[Minecraft:leather armor]]) and [[Minecraft:shulker]]s; {{in|java}}, leather armor can be dyed directly. {{IN|education}}, they can be used to dye [[Minecraft:balloon]]s and [[Minecraft:glow stick]]s. | ||
{{IN|bedrock|education}}, [[Minecraft:bone meal]], [[Minecraft:ink sac]]s, [[Minecraft:lapis lazuli]], and [[Minecraft:cocoa bean]]s can | {{IN|bedrock|education}}, [[Minecraft:bone meal]], [[Minecraft:ink sac]]s, [[Minecraft:lapis lazuli]], and [[Minecraft:cocoa bean]]s can substitute for [[Minecraft:white dye]], [[Minecraft:black dye]], [[Minecraft:blue dye]], and [[Minecraft:brown dye]], respectively. However, they are not dyes, so they will only be mentioned in this article for their use as dyeing agents. | ||
== Obtaining == | == Obtaining == | ||
[[File:Dye creation chart.png|thumb|400px| | [[File:Dye Recipes.png|thumb|400px|Recipe guide for crafting all the dyes]] | ||
Most dyes can be crafted from [[Minecraft:flower]]s and a few other items; some dyes can be crafted by combining multiple dyes of different colors, and every dye is [[Minecraft:trading|sold]] by the [[Minecraft:wandering trader]]. Some dyes can be found in loot, and [[Minecraft:green dye]] and [[Minecraft:lime dye]] are obtained by smelting. [[Minecraft:Purple dye]] is the only dye where the only method of being obtained is by crafting from other dyes. In ''Bedrock Edition'', tertiary colors, along with their regular crafting recipes, can be crafted with primary colors. For example, magenta can be crafted with one red | [[File:Dye creation chart.png|thumb|400px|Flowchart showing which pairs of dyes can be used to craft other dyes]] | ||
Most dyes can be crafted from [[Minecraft:flower]]s and a few other items; some dyes can be crafted by combining multiple dyes of different colors, and every dye is [[Minecraft:trading|sold]] by the [[Minecraft:wandering trader]]. Some dyes can be found in loot, and [[Minecraft:green dye]] and [[Minecraft:lime dye]] are obtained by smelting. [[Minecraft:Purple dye]] is the only dye where the only method of being obtained is by crafting from other dyes. In ''Bedrock Edition'', tertiary colors, along with their regular crafting recipes, can be crafted with primary colors. For example, magenta can be crafted with one blue dye, two red dyes and one white dye. | |||
{| class="wikitable" style="text-align:right;" | {| class="wikitable" style="text-align:right;" | ||
| Line 96: | Line 98: | ||
=== Trading === | === Trading === | ||
[[File:Wandering Trader GUI.png|thumb|right|The trading UI of a wandering trader in ''Java Edition'', showing 3 orange dye being sold | [[File:Wandering Trader GUI.png|thumb|right|The trading UI of a wandering trader in ''Java Edition'', showing 3 orange dye being sold]] | ||
[[Minecraft:Wandering trader]]s may sell 3 of any dye for 1 [[Minecraft:emerald]]. | [[Minecraft:Wandering trader]]s may sell 3 of any dye for 1 [[Minecraft:emerald]]. | ||
{{Trade sources|White Dye|Light Gray Dye|Gray Dye|Black Dye|Brown Dye|Red Dye|Orange Dye|Yellow Dye|Lime Dye|Green Dye|Cyan Dye|Light Blue Dye|Blue Dye|Purple Dye|Magenta Dye|Pink Dye}} | {{Trade sources|White Dye|Light Gray Dye|Gray Dye|Black Dye|Brown Dye|Red Dye|Orange Dye|Yellow Dye|Lime Dye|Green Dye|Cyan Dye|Light Blue Dye|Blue Dye|Purple Dye|Magenta Dye|Pink Dye}} | ||
| Line 329: | Line 331: | ||
{{Anchor|Dyeing water}} | {{Anchor|Dyeing water}} | ||
{{exclusive|bedrock|section=1}} | {{exclusive|bedrock|section=1}} | ||
[[Minecraft:Cauldron#Dyed water|Water]] can be dyed in a [[Minecraft:cauldron]] by holding any dye in the hand and pressing {{Ctrl|use}} on a cauldron filled with water. The formula for this is described below in {{sl||Dye mixing formula}}. | [[Minecraft:Cauldron#Dyed water|Water]] can be dyed in a [[Minecraft:cauldron]] by holding any dye in the hand and pressing {{Ctrl|use}} on a cauldron filled with water. The formula for this is described below in {{sl||Dye mixing formula}}. | ||
=== Dyeing armor === | === Dyeing armor === | ||
{{Calculator|armorColor}} | {{Calculator|armorColor}} | ||
[[File:Leather armor dye graph.png|200px|thumb|A graph showing all combinations of two dyes on a [[leather tunic]] {{in|je}} | [[File:Leather armor dye graph.png|200px|thumb|A graph showing all combinations of two dyes on a [[leather tunic]] {{in|je}}]] | ||
[[Minecraft:Leather armor]], [[Minecraft:wolf armor]], [[Minecraft:leather horse armor]] can be dyed: | [[Minecraft:Leather armor]], [[Minecraft:wolf armor]], [[Minecraft:leather horse armor]] can be dyed: | ||
*{{IN|Bedrock|Console}}, armor is dyed by {{control|using}} it on a [[Minecraft:cauldron]] filled with dyed water. This consumes 1 layer of water but does not change the color of the water. | *{{IN|Bedrock|Console}}, armor is dyed by {{control|using}} it on a [[Minecraft:cauldron]] filled with dyed water. This consumes 1 layer of water but does not change the color of the water. | ||
| Line 939: | Line 941: | ||
}} | }} | ||
<gallery class=pixel-image> | <gallery class="pixel-image"> | ||
Pre-release dyes.png|Pre-release dye textures hidden within <samp>[[Minecraft:items.png]]</samp> | Pre-release dyes.png|Pre-release dye textures hidden within <samp>[[Minecraft:items.png]]</samp> | ||
</gallery> | </gallery> | ||
| Line 956: | Line 958: | ||
== External links == | == External links == | ||
Tools for finding recipes to make dyed leather armor: | |||
* [https://simon-glitch.github.io/mcw/color/js/index.html Simanelix's calculator]. It is the only tool that supports all recipes for all versions of ''Minecraft''. | |||
* [https://minecraft.tools/en/armor.php minecraft.tools] (webapp) | |||
* [https://github.com/pudquick/pyMCdyes/ pyMCDyes] (open-source Python script, outdated) | |||
* [https://anrar4.github.io/DyeLeatherArmor/ DyeLeatherArmor]: a tool for calculating an exact crafting recipe for any sRGB color | |||
* The [[Minecraft:Calculators/Armor color|calculator on the Minecraft Wiki]] | |||
== Navigation == | == Navigation == | ||
| Line 962: | Line 969: | ||
{{Navbox items|Ingredients}} | {{Navbox items|Ingredients}} | ||
[[Category:Dyes]] | [[Category:Dyes| ]] | ||
[[Minecraft:de:Farbstoff]] | [[Minecraft:de:Farbstoff]] | ||
Latest revision as of 11:10, 18 October 2026
Template:Redirect Template:Earth hatnote Template:Infobox item
Dyes are a set of sixteen items used to change the color of Minecraft:wool, Minecraft:wool stairs, Minecraft:wool slabs, Minecraft:cushions, Minecraft:carpets, Minecraft:terracotta, Minecraft:concrete powder, Minecraft:glass, Minecraft:shulker boxes, Minecraft:beds, Minecraft:candles, Minecraft:bundles, Minecraft:harnesses, the patterns on Minecraft:banners, Minecraft:firework stars, certain mobs, and text on Minecraft:signs and Minecraft:hanging signs. Template:IN, they can be used to dye water in a Minecraft:cauldron (which is thereafter used to dye Minecraft:leather armor) and Minecraft:shulkers; Template:In, leather armor can be dyed directly. Template:IN, they can be used to dye Minecraft:balloons and Minecraft:glow sticks.
Template:IN, Minecraft:bone meal, Minecraft:ink sacs, Minecraft:lapis lazuli, and Minecraft:cocoa beans can substitute for Minecraft:white dye, Minecraft:black dye, Minecraft:blue dye, and Minecraft:brown dye, respectively. However, they are not dyes, so they will only be mentioned in this article for their use as dyeing agents.
Obtaining
Most dyes can be crafted from Minecraft:flowers and a few other items; some dyes can be crafted by combining multiple dyes of different colors, and every dye is sold by the Minecraft:wandering trader. Some dyes can be found in loot, and Minecraft:green dye and Minecraft:lime dye are obtained by smelting. Minecraft:Purple dye is the only dye where the only method of being obtained is by crafting from other dyes. In Bedrock Edition, tertiary colors, along with their regular crafting recipes, can be crafted with primary colors. For example, magenta can be crafted with one blue dye, two red dyes and one white dye.
Crafting dye
Smelting
Template:Smelting Template:Smelting
Generated loot
Trading
Minecraft:Wandering traders may sell 3 of any dye for 1 Minecraft:emerald. Template:Trade sources
Mob loot
Template:IN, Minecraft:wandering traders have a chance of 8.5% (increased by 1% per level of Minecraft:Looting) to drop 3 dyes when killed while showing the item as trade offer, if the player holds an Minecraft:emerald.
Usage
Crafting
Dye can be used to add dye to undyed items through Minecraft:crafting, and to craft dyed items directly. Template:IN, Minecraft:bone meal, Minecraft:ink sacs, Minecraft:lapis lazuli, and Minecraft:cocoa beans can be substituted for the corresponding dye in any of the following usages unless otherwise specified.
Wool
A piece of Minecraft:wool in any color can be dyed by combining 1 wool with any dye in a crafting grid. Template:Crafting
Wool stairs
A Minecraft:wool stair in any color can be dyed by combining 1 wool stair with any dye in a crafting grid. Template:Crafting
Wool slab
A Minecraft:wool slab in any color can be dyed by combining 1 wool slab with any dye in a crafting grid. Template:Crafting
Cushions
A Minecraft:cushion in any color can be dyed by combining 1 cushion with any dye in a crafting grid. Template:Crafting
Carpets
A Minecraft:carpet of any color can be dyed by combining 1 carpet with any dye in a crafting grid. Template:Crafting
Terracotta
Minecraft:Terracotta can be stained by placing 8 blocks of terracotta around a dye in a 3×3 crafting table. Stained terracotta can not be restained to a different color. Template:Crafting
Concrete powder
Dyes can be used to craft Minecraft:concrete powder, which can then be set into their respective Minecraft:concrete blocks. Concrete powder and concrete cannot be redyed. Template:Crafting
Stained glass
Minecraft:Glass can be stained by placing 8 blocks of glass around a dye in a 3×3 crafting grid. Template:Crafting
Stained glass panes
Glass panes can be stained by placing 8 glass panes around a dye in a 3×3 crafting grid.
Shulker boxes
A Minecraft:shulker box can be dyed by combining it with any dye in a crafting grid. A dyed shulker can be re-dyed using the same crafting recipe. A dyed shulker box can only be undyed using a Minecraft:cauldron. Template:Crafting
Beds
A Minecraft:bed of any color can be dyed, by combining it with any dye in a crafting grid. Template:Crafting
Candles
An undyed Minecraft:candle can be dyed by combining it with any dye in a crafting grid. Template:Crafting
Bundles
A Minecraft:bundle of any color can be dyed, by combining it with any dye in a crafting grid. Template:Crafting
Harnesses
A Minecraft:harness of any color can be dyed, by combining it with any dye in a crafting grid. Template:Crafting
Firework stars
A Minecraft:firework star can have a single color or a combination of up to eight colors when crafted with dyes. Adding one or more dyes to a crafted firework star adds a "fade to color" effect to it, overwriting any existing fade colors. Template:Crafting Template:Crafting
Balloons
Template:Education feature Dye can be used to craft Minecraft:balloons. Template:Crafting
Glow sticks
Template:Education feature Dye can be used to craft Minecraft:glow sticks. There are no light gray or black variants. Template:Crafting
Banner patterns
Template:Main Dyes are used to add a banner pattern to a banner. When using a Minecraft:loom, each pattern uses 1 dye, which determines the color of that pattern.
Dyeing water inside cauldrons
Template:Anchor Template:Exclusive Water can be dyed in a Minecraft:cauldron by holding any dye in the hand and pressing Template:Ctrl on a cauldron filled with water. The formula for this is described below in Template:Sl.
Dyeing armor
Minecraft:Leather armor, Minecraft:wolf armor, Minecraft:leather horse armor can be dyed:
- Template:IN, armor is dyed by Template:Control it on a Minecraft:cauldron filled with dyed water. This consumes 1 layer of water but does not change the color of the water.
- The armor can be undyed by Template:Control it on a cauldron with undyed water. This does not change the water's color to the color of the armor, and changes the armor to have no dye color.
- Adding a dye to dyed water mixes the color of the water with the color of the dye, as 2 colors (using the formula below). The game does not remember which colors were placed into the cauldron. It just mixes the current color with the added dye, using the formula below. So, blue + pink + blue + pink is not the same as pink + blue + pink + blue.
- Template:IN, it is possible to Minecraft:craft more than one dye with the armor, and armor can be dyed multiple times with previous colors affecting the outcome.
- Colored armor can be reverted to its original color by Template:Control it on a cauldron with undyed water.
- Armor retains its Minecraft:enchantments and name when dyed or undyed.
- Leather armor has a default color of Template:Color for display purposes. Armor can be dyed to have this color, making a different item that looks the same:
- In Bedrock Edition, the recipe is Template:ItemSprite then Template:ItemSprite then Template:ItemSprite then Template:ItemSprite then Template:ItemSprite in a cauldron.
- In Java Edition, the recipe is Undyed armor + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite = Template:Color dyed armor. And then Template:Color dyed armor + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite + Template:ItemSprite = Template:Color dyed armor.
- Mixing samples
- Template:ItemSprite = Template:Tint
- Template:ItemSprite + Template:ItemSprite + Template:ItemSprite = Template:Tint
- Template:ItemSprite + Template:ItemSprite + Template:ItemSprite = Template:Tint
Dye mixing formula
Each edition of the game uses a specific formula for calculating the color of dyed armor. In this formula, the color of armor or cauldron water, and each dye color, in the RGB color model, has a red value, green value, and blue value.
Template:Collapse,\frac{\operatorname{total}\left(c_{s}.y\right)}{c_{s}.\operatorname{length}},\frac{\operatorname{total}\left(c_{s}.z\right)}{c_{s}.\operatorname{length}}\right)}</math>
For this formula, the exact order of floating point operations matters.
- <math>x\cdot\frac{y}{z}</math> is not the same as <math>\frac{x\cdot y}{z}</math>.
- <math>f_{a}\left(c_{s}\right)</math> cannot be written as <math>\operatorname{mean}\left(c_{s}\right)\cdot\frac{\operatorname{mean}\left(p_{max}\left(c_{s}\right)\right)}{p_{max}\left(\operatorname{mean}\left(c_{s}\right)\right)}</math>, because some mix operations would give slightly different colors.
}} Template:Collapse{2}\right\rfloor</math>
Notes: (when adding a single dye to dyed cauldron water)
- <math>c_{next}</math> is the color that the dyed water will have after the dye is added.
- <math>c_{current}</math> is the color of the dyed water before the dye is added.
- <math>c_{dye}</math> is the color of the dye.
Bedrock Edition encodes each of these colors as an ARGB integer, which can also be thought of as a list of four integers.
- The first byte of the integer is the alpha component (A) of the color.
- The second byte of the integer is the red component (R) of the color.
- The third byte of the integer is the green component (G) of the color.
- The fourth byte of the integer is the blue component (B) of the color.
- A value of <math>x</math> in any given component corresponds to a value of <math>y=\operatorname{rounddown}\left(255\cdot x\right)</math> in the RGBA format.
- The color values of the dye items are stored in the RGBA format. To convert a value of <math>x</math> in the RGBA format to a float for the mixing algorithm, the formula <math>x=\frac{y}{255}</math> is used.
}}
Dyeing sheep
Dyes can be Template:Control on sheep to change the color of the wool. Shearing a colored sheep drops the corresponding color of the wool, and the sheep retains the color when the wool regenerates. Killing colored sheep drops one block of wool with the corresponding color. Minecraft:Breeding colored sheep produce a lamb colored as one of the parent sheep, or a color resulting from the combination of both parents' colors. The color combining follows the same rules that dyes use – red and yellow sheep produce an orange lamb, but a blue and yellow sheep cannot create a green lamb. In case the colors of the colored sheep do not mix, the color of a lamb is randomly chosen between the two parents with equal chance. The unlimited reproduction of colored sheep makes dyeing and shearing sheep infinitely more efficient than just dyeing wool directly.
Dyeing collars
Dye can be used on a tamed Minecraft:wolf or Minecraft:cat to change the color of its collar from the default red to the color of the dye.
Dyeing signs
Dye can be Template:Control on a Minecraft:sign or a Minecraft:hanging sign to change the text color. Template:IN, Minecraft:ink sacs cannot be used for this purpose; black dye must be used to change the text to black. A sign cannot be dyed if its color is already the color of the dye. Attempting to dye it will not use the dye and will open the menu to edit the sign, if possible. A sign defaults to black text when placed.
Trading
Apprentice, journeyman, and expert-level shepherd Minecraft:villagers buy 12 of any of the dyes for an Minecraft:emerald. Template:Trade uses
Color values
The "color codes" are used to determine the color imparted on Minecraft:banners, dyed Minecraft:leather armor, Minecraft:leather horse armor and Minecraft:wolf armor, Minecraft:wolf and Minecraft:cat collars, Minecraft:beacon beams, Minecraft:tropical fish, Minecraft:sheep, and Minecraft:firework stars. The hex value is shown in the extended tooltips of dyed armor; however, to set the color using an NBT data tag in a Minecraft:command, the decimal value must be used instead. The color values for firework stars are slightly different. Template:IN, sheep's wool uses different colors than the base dye values, appearing noticeably darker.
Color codes are usually encoded using the corresponding numeric ID, although e.g. Minecraft:signs store the color name instead to represent text color.
Data values
ID
Template:JE: Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table
Template:BE: Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table Template:ID table
Sounds
Achievements
Videos
History
Development
Java Edition
Bedrock Edition
Legacy Console Edition
New Nintendo 3DS Edition
-
Pre-release dye textures hidden within Minecraft:items.png
Issues
Trivia
- Players can obtain each one of every color with 1 cocoa bean, 2 dandelions/wildflowers or 1 sunflower, 2 ink sacs or wither roses, 3 cactuses, 4 lapis lazuli or 4 cornflowers, 4 small red flowers (for example, 4 poppies) or 2 rose bushes, and 6 bone meal.
Notes
References
External links
Tools for finding recipes to make dyed leather armor:
- Simanelix's calculator. It is the only tool that supports all recipes for all versions of Minecraft.
- minecraft.tools (webapp)
- pyMCDyes (open-source Python script, outdated)
- DyeLeatherArmor: a tool for calculating an exact crafting recipe for any sRGB color
- The calculator on the Minecraft Wiki
Template:Navbox dyed material Template:Navbox items
Minecraft:de:Farbstoff Minecraft:es:Tinte Minecraft:fr:Teinture Minecraft:it:Colorante Minecraft:ja:染料 Minecraft:ko:염료 Minecraft:lzh:染 Minecraft:nl:Kleurstof Minecraft:pl:Barwniki Minecraft:pt:Corante Minecraft:ru:Краситель Minecraft:th:สีย้อม Minecraft:uk:Барвник Minecraft:zh:染料