Dye

From Minecraft Wiki
Jump to navigation Jump to search

Dyes are a set of items used to change the color of wool, leather armor, terracotta, certain mobs, the patterns on banners, shulker boxes, glass, shulkers, concrete powder, and beds.

Obtaining[edit | edit source]

Most dyes are produced by crafting various flowers or other items, or by combining other dyes.

Template:LoadPage

Smelting[edit | edit source]

{{{product1}}}
None
Fire.gif {{{product1}}}
Any fuel
{{{product1}}}
None
Fire.gif {{{product1}}}
Any fuel
{{{product1}}}
None
Fire.gif {{{product1}}}
Any fuel
{{{product1}}}
None
Fire.gif {{{product1}}}
Any fuel

Trading[edit | edit source]

Wandering traders can sell 3 dyes for an emerald.

Template:IN, wandering traders can sell 3 lapis lazuli, bone meal, cocoa beans, or ink sacs for one emerald.

Apprentice-level cleric villagers sell one lapis lazuli per emerald.

Other[edit | edit source]

Blue dye can be crafted from lapis lazuli, which is mined from ores underground in amounts of 4–8 per block. Template:LootChestItem

Brown dye can be crafted from cocoa beans, which are harvested from cocoa pods in amounts of 1–3 per fully grown pod. A pod that is not fully grown yields one cocoa bean. Template:LootChestItem

Black dye can be crafted from ink sacs, which can be dropped when a squid dies, in amounts of 1–3 per squid. Using the Looting enchantment can increase this amount. Template:LootChestItem

Ink sacs can also be created using 1 iron, 1 sulfur, and 4 oxygen in the compound creator[Bedrock Edition and Education Edition only].

Template:LootChestItem

Template:LootChestItem

Usage[edit | edit source]

Dyeing wool and mobs[edit | edit source]

Players can dye wool by placing white wool and a dye in a crafting grid.

Template:Crafting

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. Breeding colored sheep produces a lamb colored as one of the parent sheep, or a color resulting from the combination of both parents' color. The color combining follows the same rules that dyes use – red and yellow sheep produces an orange lamb, but a blue and yellow sheep cannot create a green lamb. The unlimited reproduction of colored sheep makes dyeing and shearing sheep infinitely more efficient than just dyeing wool directly.

Dye can also be used on tamed wolves and cats. Template:Control a dye on a one of these tamed animals changes the color of its collar from the default red to the color of the dye.

Dye can also be used on shulkers to change the color of the shell.[Bedrock Edition only]

Dyeing terracotta[edit | edit source]

Terracotta can be dyed by placing 8 blocks around a dye on a crafting table.

Template:Crafting

Staining glass[edit | edit source]

Stained glass can be stained by placing 8 blocks of glass around a dye on a crafting table. Just like regular glass, stained glass can be crafted into stained glass panes. The recipe for this is the same as with regular glass.

Template:Crafting Template:Crafting

Dyeing armor[edit | edit source]

File:Dyegraph.png
A graph showing all combinations of two dyes on a tunic.

Leather armor can be dyed by:

There are a possible combination of 12,326,391 colors, as it is possible to put more than one dye on the crafting bench alongside the leather armor. Armor can be dyed multiple times with previous colors affecting the final outcome. Colored armor can be reverted to their original color using a cauldron with undyed water.

The game has a specific formula for calculating the color of dyed armor: each color, in the RGB color model, has a red value, green value, and blue value. For each dye in the crafting grid, and the armor itself (if it is already dyed), the red, green, and blue values are added to running totals. In addition, a running total of the highest value (be it red, green, or blue) is also kept. After this, each total is divided by the number of colors used. This effectively produces the average red, green, blue, and maximum values. The maximum value of the average RGB values is also calculated. Finally, each average RGB value is multiplied by the average maximum value, and divided by the maximum of the average RGB values. The modified average RGB values are then used as the final color. This procedure can be summed up with the following equations:

for each color (all "total" variables start at 0 before counting):
 totalRed = totalRed + redValue
 totalGreen = totalGreen + greenValue
 totalBlue = totalBlue + blueValue
 totalMaximum = totalMaximum + max(red, green, blue)
 numberOfColors = numberOfColors + 1

averageRed = totalRed / numberOfColors
averageGreen = totalGreen / numberOfColors
averageBlue = totalBlue / numberOfColors
averageMaximum = totalMaximum / numberOfColors

maximumOfAverage = max(averageRed, averageGreen, averageBlue)
gainFactor = averageMaximum / maximumOfAverage

resultRed = averageRed * gainFactor
resultGreen = averageGreen * gainFactor
resultBlue = averageBlue * gainFactor

Due to the way this formula works, the resulting color can never be darker than the average of the input colors, and is often lighter and more saturated. Of course, the resulting color can never be lighter or more saturated than the lightest or most saturated input color. In addition, this formula never creates an RGB value higher than 255 (which would be invalid in the 8 bit RGB color model).

If leather armor is renamed on an anvil, it retains its name when dyed or undyed.

Dyeing firework stars[edit | edit source]

A 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

[edit | edit source]

Main article: Banner#Patterns

Dyes are used in most banner patterns to determine the pattern and color displayed.

Dyeing shulker boxes[edit | edit source]

Shulker boxes are generated in a light shade of purple (like the purpur block), but can be dyed any color. They can also be re-dyed as often as desired.

Template:Crafting

Creating concrete powder[edit | edit source]

Dyes can also be used to craft concrete powder, which can then be set into their respective concrete blocks (they cannot be dyed directly).

Template:Crafting

Creating balloons[edit | edit source]

Dye can be used to craft balloons.[Bedrock Edition and Education Edition only]

Template:Crafting

Creating glow sticks[edit | edit source]

Dye can also be used to craft glow sticks.[Bedrock Edition and Education Edition only]

Template:Crafting

Dyeing beds[edit | edit source]

Players can dye beds by placing a white bed and any color dye in a crafting grid. Only white beds can be dyed.

Template:Crafting

Dyeing water inside cauldrons[edit | edit source]

Water can be dyed in a cauldron by holding any dye in the hand and pressing Template:Ctrl on a cauldron filled with water.[Bedrock Edition only]

Signs[edit | edit source]

Dye can be used on a sign to change the text color.[Java Edition only]

Trading[edit | edit source]

12 dye can be sold to shepherd villager.

Other uses[edit | edit source]

Dyes have other uses specific to those colors[Bedrock Edition only]; see their separate articles for details.

These items all have dye color equivalents.

Colors[edit | edit source]

Primary[edit | edit source]

These primary dyes are created only from ingredients spawned naturally in a world.

Name Source Color Notes
Red Dye Poppy
Rose Bush
Red Tulip
Beetroot
Red Made by placing a poppy, red tulip, beetroot, or rose bush on a crafting grid.
Yellow Dye Dandelion
Sunflower
Yellow Made by placing a dandelion or sunflower on a crafting grid.
Green Dye Cactus Green Made by cooking cactus in a furnace.
Black Dye Ink Sac
Wither Rose
Black Made by placing an ink sac or wither rose on a crafting grid.
Brown Dye Cocoa Beans Brown Made by placing cocoa beans on a crafting grid.
Blue Dye Lapis Lazuli
Cornflower
Blue Made by placing a lapis lazuli or cornflower on a crafting grid.
White Dye Bone Meal
Lily of the Valley
White Made by placing a bone meal or lily of the valley on a crafting grid.

Quasi-Primary[edit | edit source]

These dyes can be created from a single ingredient spawned naturally in a world, or by combining other dyes.

Name Source Color Obtaining Naturally Crafting
Orange Dye Orange Tulip Orange Made by placing an orange tulip on a crafting grid.
&format=original
+
&format=original
Light Blue Dye Blue Orchid Light Blue Made by placing a blue orchid on a crafting grid.
&format=original
/
&format=original
+
&format=original
/
&format=original
Magenta Dye Lilac
Allium
Magenta Made by placing a lilac or allium on a crafting grid.
&format=original
+
&format=original

OR

&format=original
+
&format=original
/
&format=original
+
&format=original
Pink Dye Peony
Pink Tulip
Pink Made by placing a peony or pink tulip on a crafting grid.
&format=original
+
&format=original
Light Gray Dye Azure Bluet
Oxeye Daisy
White Tulip
Light Gray Made by placing an azure bluet, oxeye daisy, or white tulip on a crafting grid.
&format=original
/
&format=original
+
&format=original

OR

2
&format=original
/
&format=original
+ 1
&format=original
/
&format=original
Lime Dye Sea Pickle Lime Green Made by smelting a sea pickle in a furnace.
&format=original
+
&format=original
/
&format=original

Secondary[edit | edit source]

Secondary dyes are created by combining primary dyes together.

Name Source Color
Cyan Dye
&format=original
+
&format=original
/
&format=original
Cyan
Purple Dye
&format=original
+
&format=original
/
&format=original
Purple
Gray Dye
&format=original
/
&format=original
+
&format=original
/
&format=original
Gray

Data values[edit | edit source]

ID[edit | edit source]

Java Edition:

Name Namespaced ID
&format=original
Red Dye
red_dye
&format=original
Green Dye
green_dye
&format=original
Purple Dye
purple_dye
&format=original
Cyan Dye
cyan_dye
&format=original
Light Gray Dye
light_gray_dye
&format=original
Gray Dye
gray_dye
&format=original
Pink Dye
pink_dye
&format=original
Lime Dye
lime_dye
&format=original
Yellow Dye
yellow_dye
&format=original
Light Blue Dye
light_blue_dye
&format=original
Magenta Dye
magenta_dye
&format=original
Orange Dye
orange_dye
&format=original
Black Dye
black_dye
&format=original
Brown Dye
brown_dye
&format=original
Blue Dye
blue_dye
&format=original
White Dye
white_dye

Bedrock Edition:

Name Namespaced ID Numeric ID
&format=original
Dye
dye 351

Item data[edit | edit source]

The color of a dye item depends on its metadata. The "color codes" are used to determine the color imparted on sheep, wolf collars, and dyed leather armor. The hex value is shown in the extended tooltips of dyed leather armor; however, to set the color using an NBT data tag in a command, the decimal value must be used instead.

Dye/DV

Achievements[edit | edit source]

Template:Load achievements

Video[edit | edit source]

Template:Video note

Template:Yt Template:Yt

History[edit | edit source]

Template:MoreImages youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright

youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright

youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright youarecrazyright

Trivia[edit | edit source]

  • Players can obtain each one of every color with 1 cocoa bean, 2 yellow dye, 2 ink sac, 3 green dye, 4 lapis lazuli, 4 red dye, and 6 bone meal (2 bones).
  • The dyed sheep breeding behavior mirrors Lamarck's theory, in which the organisms evolve inheriting the external changes and adaptations of the previous generation, transmitting them to their offspring.
  • In Bedrock Edition, tertiary colors, along with their regular crafting recipes, can be crafted with primary colors. E.g.: Magenta can be crafted with one rose red and two bone meals.
  • The colors of the dyes match the chat colors in color codes except for brown (dye only), light aqua, and gold (color codes only).

References[edit | edit source]

cs:Barvivo de:Farbstoff es:Tintes fr:Teinture it:Colorante ja:染料 ko:염료 nl:Kleurstof pl:Barwniki pt:Corante ru:Красители zh:染料