Minecraft:Dye: Difference between revisions
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 56: | Line 56: | ||
[[File:In-game colored block-item chart v2.png|alt=Colored block/item chart|thumb|width=325x325|In-game colored block/item spectrum]] | [[File:In-game colored block-item chart v2.png|alt=Colored block/item chart|thumb|width=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]]{{upcoming| | '''Dyes''' are a set of sixteen items used to change the color of [[Minecraft:wool]], [[Minecraft:wool stairs]]{{upcoming|Wilderness Bound}}, [[Minecraft:wool slab]]s{{upcoming|Wilderness Bound}}, [[Minecraft:cushion]]s{{upcoming|Wilderness Bound}}, [[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 generally substitute for [[Minecraft:white dye]], [[Minecraft:black dye]], [[Minecraft:blue dye]], and [[Minecraft:brown dye]], respectively, in crafting recipes and for use in dyeing items or mobs. However, they have other important uses that are not related to color, and are therefore not considered true dyes. They are mentioned in this article only regarding their use as dyeing agents; see their individual articles for complete information about them. | {{IN|bedrock|education}}, [[Minecraft:bone meal]], [[Minecraft:ink sac]]s, [[Minecraft:lapis lazuli]], and [[Minecraft:cocoa bean]]s can generally substitute for [[Minecraft:white dye]], [[Minecraft:black dye]], [[Minecraft:blue dye]], and [[Minecraft:brown dye]], respectively, in crafting recipes and for use in dyeing items or mobs. However, they have other important uses that are not related to color, and are therefore not considered true dyes. They are mentioned in this article only regarding their use as dyeing agents; see their individual articles for complete information about them. | ||
| Line 63: | Line 63: | ||
== Obtaining == | == Obtaining == | ||
[[File:Dye creation chart.png|thumb|400px|A chart showing which pairs of dyes can be used to craft other dyes]] | [[File:Dye creation chart.png|thumb|400px|A chart 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]] | 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 dye and two white dyes. | ||
{| class="wikitable" style="text-align:right;" | {| class="wikitable" style="text-align:right;" | ||
| Line 117: | Line 117: | ||
==== Wool stairs ==== | ==== Wool stairs ==== | ||
A [[Minecraft:wool stair]] in any color can be dyed by combining 1 wool stair with any dye in a crafting grid.{{upcoming| | A [[Minecraft:wool stair]] in any color can be dyed by combining 1 wool stair with any dye in a crafting grid.{{upcoming|Wilderness Bound}} | ||
{{Crafting | {{Crafting | ||
|ignoreusage=1 | |ignoreusage=1 | ||
| Line 126: | Line 126: | ||
==== Wool slab ==== | ==== Wool slab ==== | ||
A [[Minecraft:wool slab]] in any color can be dyed by combining 1 wool slab with any dye in a crafting grid.{{upcoming| | A [[Minecraft:wool slab]] in any color can be dyed by combining 1 wool slab with any dye in a crafting grid.{{upcoming|Wilderness Bound}} | ||
{{Crafting | {{Crafting | ||
|ignoreusage=1 | |ignoreusage=1 | ||
| Line 135: | Line 135: | ||
==== Cushions ==== | ==== Cushions ==== | ||
A [[Minecraft:cushion]] in any color can be dyed by combining 1 cushion with any dye in a crafting grid.{{upcoming| | A [[Minecraft:cushion]] in any color can be dyed by combining 1 cushion with any dye in a crafting grid.{{upcoming|Wilderness Bound}} | ||
{{Crafting | {{Crafting | ||
|ignoreusage=1 | |ignoreusage=1 | ||
| Line 329: | Line 329: | ||
{{Anchor|Dyeing water}} | {{Anchor|Dyeing water}} | ||
{{exclusive|bedrock|section=1}} | {{exclusive|bedrock|section=1}} | ||
Water can be dyed in a cauldron by holding any dye in the hand and pressing {{Ctrl|use}} on a cauldron filled with water. | [[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 === | ||
| Line 340: | Line 340: | ||
*{{IN|java}}, 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. | *{{IN|java}}, 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 {{control|using}} it on a cauldron with undyed water. | **Colored armor can be reverted to its original color by {{control|using}} it on a cauldron with undyed water. | ||
** | *Armor retains its [[Minecraft:enchantment]]s and [[Minecraft:Anvil#Renaming|name]] when dyed or undyed. | ||
*Leather armor has a default color of {{color|#A06540}} 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 {{ItemSprite|orange-dye}} then {{ItemSprite|yellow-dye}} then {{ItemSprite|pink-dye}} then {{ItemSprite|brown-dye}} then {{ItemSprite|brown-dye}} in a cauldron. | |||
**In ''Java Edition'', the recipe is Undyed armor + {{ItemSprite|black-dye}} + {{ItemSprite|black-dye}} + {{ItemSprite|black-dye}} + {{ItemSprite|black-dye}} + {{ItemSprite|black-dye}} + {{ItemSprite|cyan-dye}} + {{ItemSprite|cyan-dye}} = {{color|#1B4144}} dyed armor. And then {{color|#1B4144}} dyed armor + {{ItemSprite|black-dye}} + {{ItemSprite|brown-dye}} + {{ItemSprite|brown-dye}} + {{ItemSprite|red-dye}} + {{ItemSprite|orange-dye}} + {{ItemSprite|yellow-dye}} + {{ItemSprite|pink-dye}} = {{color|#A06540}} dyed armor. | |||
{{Collapse | |||
|title='''The number of obtainable colors''' | |||
|content= | |||
Not all 16,777,216 RGB colors are obtainable in [[Minecraft:Survival]]. | |||
* In ''Java Edition'', there are 5,713,438 obtainable colors. See [[Talk:Dye#Number of ways to dye leather armor|this discussion]] for more information. | |||
** 606315 colors require 1 crafting step. These numbers are all using a [[Minecraft:Crafting|3x3 grid]]. | |||
** 5015035 colors require 2 crafting steps. This means most colors can be obtained in 1 or 2 steps. | |||
** 74650 colors require 3 crafting steps. | |||
** 12931 colors require 4 crafting steps. | |||
** 3310 colors require 5 crafting steps. | |||
** 851 colors require 6 crafting steps. | |||
** 231 colors require 7 crafting steps. | |||
** 72 colors require 8 crafting steps. | |||
** 29 colors require 9 crafting steps. | |||
** 9 colors require 10 crafting steps. | |||
** 2 colors require 11 crafting steps. | |||
** 2 colors require 12 crafting steps. | |||
** 1 color, {{color|BC951B}} requires 13 crafting steps. | |||
* In ''Bedrock Edition'', there are 4,732,109 obtainable colors. Different colors require a different number of dyes to make (the following numbers are all minimums): | |||
** 16 colors require 1 dye. | |||
** 120 colors require 2 dyes. | |||
** 1920 colors require 3 dyes. | |||
** 30606 colors require 4 dyes. | |||
** 449760 colors require 5 dyes. | |||
** 2656378 colors require 6 dyes. | |||
** 1401502 colors require 7 dyes. | |||
** 157177 colors require 8 dyes. | |||
** 21106 colors require 9 dyes. | |||
** 7293 colors require 10 dyes. | |||
** 3286 colors require 11 dyes. | |||
** 1508 colors require 12 dyes. | |||
** 720 colors require 13 dyes. | |||
** 381 colors require 14 dyes. | |||
** 183 colors require 15 dyes. | |||
** 77 colors require 16 dyes. | |||
** 46 colors require 17 dyes. | |||
** 23 colors require 18 dyes. | |||
** 5 colors require 19 dyes. | |||
** 2 colors require 20 dyes. | |||
** All colors can be obtained using only [[Minecraft:brown dye]], which is rare in [[Minecraft:Superflat]]. | |||
Note that there might be many different ways to create any given color. The numbers listed are minimums. | |||
}} | |||
; Mixing samples | ; Mixing samples | ||
{{wip|section=1|Simanelix plans to extend the list of samples here. - August 10, 2026}} | |||
{{JE}}: | {{JE}}: | ||
:{{ItemSprite|Yellow Dye}} = {{Tint|leather-chestplate| #{{CalcDye| yellow=2 }} | code=1}} | :{{ItemSprite|Yellow Dye}} = {{Tint|leather-chestplate| #{{CalcDye| yellow=2 }} | code=1}} | ||
| Line 389: | Line 435: | ||
|content= | |content= | ||
In ''Bedrock Edition'', dyes cannot be applied to armor directly and are applied to [[Minecraft:cauldron]] water instead. When a dye is used on undyed cauldron water, the water becomes dyed, and will have the color of that dye. When a dye is used on dyed cauldron water, a simple formula is | In ''Bedrock Edition'', dyes cannot be applied to armor directly and are applied to [[Minecraft:cauldron]] water instead. When a dye is used on undyed cauldron water, the water becomes dyed, and will have the color of that dye. When a dye is used on dyed cauldron water, a simple formula is | ||
*<math>c_{next}=\frac{c_{current}+c_{dye}}{2}</math> | *<math>c_{next}=\left\lfloor\frac{c_{current}+c_{dye}}{2}\right\rfloor</math> | ||
'''Notes:''' (when adding a single dye to dyed cauldron water) | '''Notes:''' (when adding a single dye to dyed cauldron water) | ||
| Line 396: | Line 442: | ||
*<math>c_{dye}</math> is the color of the dye. | *<math>c_{dye}</math> is the color of the dye. | ||
''Bedrock Edition'' encodes each of these colors as an | ''Bedrock Edition'' encodes each of these colors as an ARGB integer, which can also be thought of as a list of four integers. | ||
* The | * The first byte of the integer is the alpha component (A) of the color. | ||
* The | * The second byte of the integer is the red component (R) of the color. | ||
* The | * The third byte of the integer is the green component (G) of the color. | ||
* A value of <math>x</math> in any given component corresponds to a value of <math>y=\operatorname{ | * 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 [[Minecraft:w:RGBA|RGBA]] format. | |||
* The [[#Color values|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. | * The [[#Color values|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. | ||
}} | }} | ||
| Line 431: | Line 473: | ||
! rowspan="2" |ID | ! rowspan="2" |ID | ||
! rowspan="2" |Name | ! rowspan="2" |Name | ||
! colspan="2" style="text-align:center" |Color code{{note|Used for banners, dyed armor, wolf and cat collars, | ! colspan="2" style="text-align:center" |Color code{{note|Used for banners, dyed armor, wolf and cat collars, beacon beams, and tropical fish, as well as sheep's wool {{in|bedrock}}.}} | ||
! colspan="2" style="text-align:center" |Firework color code | ! colspan="2" style="text-align:center" |Firework color code | ||
! colspan="2" style="text-align:center" |Sheep color code (''JE'') | ! colspan="2" style="text-align:center" |Sheep color code (''JE'') | ||
| Line 871: | Line 913: | ||
|{{HistoryLine||1.21.80|dev=Preview 1.21.80.25|exp=Drop 2 2025|Added [[Minecraft:harness]]es, which can be dyed.}} | |{{HistoryLine||1.21.80|dev=Preview 1.21.80.25|exp=Drop 2 2025|Added [[Minecraft:harness]]es, which can be dyed.}} | ||
|{{HistoryLine||1.21.111|dev=Preview 1.21.110.20|[[File:White Dye BE2.png|32px]] [[File:Light Gray BE3.png|32px]] [[File:Gray Dye BE3.png|32px]] [[File:Black Dye BE2.png|32px]] [[File:Brown Dye BE2.png|32px]] [[File:Red Dye BE4.png|32px]] [[File:Orange Dye BE3.png|32px]] [[File:Yellow Dye BE3.png|32px]] [[File:Lime Dye BE3.png|32px]] [[File:Green Dye BE4.png|32px]] [[File:Cyan Dye BE3.png|32px]] [[File:Light Blue Dye BE3.png|32px]] [[File:Blue Dye BE2.png|32px]] [[File:Purple Dye BE3.png|32px]] [[File:Magenta Dye BE3.png|32px]] [[File:Pink Dye BE3.png|32px]] The textures of all dyes have been changed. They still do not reflect the updated colors from 1.1.}} | |{{HistoryLine||1.21.111|dev=Preview 1.21.110.20|[[File:White Dye BE2.png|32px]] [[File:Light Gray BE3.png|32px]] [[File:Gray Dye BE3.png|32px]] [[File:Black Dye BE2.png|32px]] [[File:Brown Dye BE2.png|32px]] [[File:Red Dye BE4.png|32px]] [[File:Orange Dye BE3.png|32px]] [[File:Yellow Dye BE3.png|32px]] [[File:Lime Dye BE3.png|32px]] [[File:Green Dye BE4.png|32px]] [[File:Cyan Dye BE3.png|32px]] [[File:Light Blue Dye BE3.png|32px]] [[File:Blue Dye BE2.png|32px]] [[File:Purple Dye BE3.png|32px]] [[File:Magenta Dye BE3.png|32px]] [[File:Pink Dye BE3.png|32px]] The textures of all dyes have been changed. They still do not reflect the updated colors from 1.1.}} | ||
|{{HistoryLine||26.40|dev=Preview 26.40.27|exp=Drop 3 of 2026|Added [[Minecraft:wool stairs]] and [[Minecraft:wool slab]]s, which can be dyed.}} | |{{HistoryLine||26.40|dev=Preview 26.40.27|exp=Drop 3 of 2026|Added [[Minecraft:wool stairs]] and [[Minecraft:wool slab]]s, which can be dyed.}} | ||
|{{HistoryLine|||dev=Preview 26.40.30|Added [[Minecraft:cushion]]s, which can be dyed.}} | |{{HistoryLine|||dev=Preview 26.40.30|Added [[Minecraft:cushion]]s, which can be dyed.}} | ||
|{{HistoryLine|bedrock upcoming}} | |||
|{{HistoryLine||26.50|dev=Preview 26.50.22|All features from the "Drop 3 of 2026" experiment have been fully implemented.}} | |||
}} | }} | ||
| Line 918: | Line 961: | ||
== Navigation == | == Navigation == | ||
{{Navbox dyed | {{Navbox dyed material}} | ||
{{Navbox items|Ingredients}} | {{Navbox items|Ingredients}} | ||
[[Category:Dyes | [[Category:Dyes]] | ||
[[Minecraft:de:Farbstoff]] | [[Minecraft:de:Farbstoff]] | ||
Latest revision as of 11:09, 6 September 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 stairsTemplate:Upcoming, Minecraft:wool slabsTemplate:Upcoming, Minecraft:cushionsTemplate:Upcoming, 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 generally substitute for Minecraft:white dye, Minecraft:black dye, Minecraft:blue dye, and Minecraft:brown dye, respectively, in crafting recipes and for use in dyeing items or mobs. However, they have other important uses that are not related to color, and are therefore not considered true dyes. They are mentioned in this article only regarding their use as dyeing agents; see their individual articles for complete information about them.
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 red dye and two white dyes.
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:Upcoming 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:Upcoming Template:Crafting
Cushions
A Minecraft:cushion in any color can be dyed by combining 1 cushion with any dye in a crafting grid.Template:Upcoming 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 calculating leather dye combination: minecraft.tools (webapp); pyMCDyes (open-source Python script, outdated); DyeLeatherArmor: a tool for calculating an exact crafting recipe for any sRGB color
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:染料