Share

Share

Dyeing

From Minecraft Wiki
(Redirected from Dye)
Jump to: navigation, search
Dyes
WoolDyes.gif
Type

Items

Durability

N/A

Renewable

Yes

Stackable

Yes (64)

First appearance

Beta 1.2

Data value

dec: 351 hex: 15F bin: 101011111

Name

dye

Dyes are items used to change the color of wool, leather armor, hardened clay, mobs, banner and glass. There are 16 dyes, which are bone meal, light gray dye, gray dye, ink sac, rose red, orange dye, dandelion yellow, Lime Dye, cactus green, light blue dye, cyan dye, lapis lazuli, purple dye, magenta dye, pink dye, and cocoa beans.

Most dyes are obtained by blocks and items that spawn in the world and then be extracted in various ways such as crafting, smelting or mining. Some dyes can only be obtained through combinations of specific dyes.

Sources[edit]

Most dyes are produced by crafting various flowers or other items, or by combining other dyes (list below). The exceptions are:

Dye recipes

[edit]

Uses[edit]

Dyeing wool and mobs[edit]

A guide to natural and crafting dye.

Players can dye wool by placing white wool and a dye on a crafting table.

Ingredients Crafting recipe

Any Colored Dye +
White Wool




Grid layout Arrow (small).png Orange WoolMagenta WoolLight Blue WoolYellow WoolLime WoolPink WoolGray WoolLight Gray WoolCyan WoolPurple WoolBlue WoolBrown WoolGreen WoolRed WoolBlack Wool
Orange DyeMagenta DyeLight Blue DyeDandelion YellowLime DyePink DyeGray DyeLight Gray DyeCyan DyePurple DyeLapis LazuliCocoa BeansCactus GreenRose RedInk Sac White Wool



Grid layout Shapeless.png

Dyes can be used on sheep to change the color of the wool. After shearing a colored sheep, they will drop the corresponding color of the wool, as well keep the color of their wool when it regenerates. Additionally, there are naturally occurring gray, light gray, black, brown and pink sheep that drop corresponding color wool. Breeding colored sheep will result the baby sheep's color to be one of the parental sheep's color, or a resulting color of the combination of both parental sheep's color. The unlimited reproduction of colored sheep make dyeing and shearing sheep a far more efficient method to obtain dyed wool than just dyeing a wool directly.

Dye can also be used on tamed wolves, as well. Using a dye on a tamed wolf will change the color of the wolf's collar (red by default) to the color of the dye.

Staining hardened clay[edit]

Hardened clay can be stained by placing 8 blocks of hardened clay around a dye on a crafting table.

Ingredients Crafting recipe

Hardened Clay +
Any Dye

Hardened Clay Hardened Clay Hardened Clay Grid layout Arrow (small).png White Stained Clay8Orange Stained Clay8Magenta Stained Clay8Light Blue Stained Clay8Yellow Stained Clay8Lime Stained Clay8Pink Stained Clay8Gray Stained Clay8Light Gray Stained Clay8Cyan Stained Clay8Purple Stained Clay8Blue Stained Clay8Brown Stained Clay8Green Stained Clay8Red Stained Clay8Black Stained Clay8
Hardened Clay Bone MealOrange DyeMagenta DyeLight Blue DyeDandelion YellowLime DyePink DyeGray DyeLight Gray DyeCyan DyePurple DyeLapis LazuliCocoa BeansCactus GreenRose RedInk Sac Hardened Clay
Hardened Clay Hardened Clay Hardened Clay

Staining glass[edit]

Like hardened clay, 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.

Ingredients Crafting recipe

Glass +
Any Dye

Glass Glass Glass Grid layout Arrow (small).png White Stained Glass8Orange Stained Glass8Magenta Stained Glass8Light Blue Stained Glass8Yellow Stained Glass8Lime Stained Glass8Pink Stained Glass8Gray Stained Glass8Light Gray Stained Glass8Cyan Stained Glass8Purple Stained Glass8Blue Stained Glass8Brown Stained Glass8Green Stained Glass8Red Stained Glass8Black Stained Glass8
Glass Bone MealOrange DyeMagenta DyeLight Blue DyeDandelion YellowLime DyePink DyeGray DyeLight Gray DyeCyan DyePurple DyeLapis LazuliCocoa BeansCactus GreenRose RedInk Sac Glass
Glass Glass Glass

Dyeing armor[edit]

A graph showing all combinations of two dyes on a tunic.

Leather armor can be dyed by crafting dyes in with a piece of leather armor. 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.

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 tested. 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 will never be darker than the average of the input colors, and will often be lighter and more saturated. Of course, the resulting color will never be lighter or more saturated than the lightest or most saturated input color. In addition, this formula will never create an RGB value higher than 255 (which would be invalid in the 8 bit RGB color model).

Dyeing Firework Stars[edit]

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 will add a "fade to color" effect to it, overwriting any existing fade colors.

Name Ingredients Crafting recipe

Any Firework Star

Gunpowder +
Any Dye (1-8x) +
Extra ingredient (optional)




Grid layout Arrow (small).png White Firework StarOrange Firework StarMagenta Firework StarLight Blue Firework StarYellow Firework StarLime Firework StarPink Firework StarGray Firework StarLight Gray Firework StarCyan Firework StarPurple Firework StarBlue Firework StarBrown Firework StarGreen Firework StarRed Firework StarBlack Firework Star
Gunpowder Bone MealOrange DyeMagenta DyeLight Blue DyeDandelion YellowLime DyePink DyeGray DyeLight Gray DyeCyan DyePurple DyeLapis LazuliCocoa BeansCactus GreenRose RedInk Sac

DiamondGlowstone DustHeadGold NuggetFeatherFire Charge

Grid layout Shapeless.png

Any Firework Star

Any Firework Star +
Any Dye




Grid layout Arrow (small).png White Firework StarOrange Firework StarMagenta Firework StarLight Blue Firework StarYellow Firework StarLime Firework StarPink Firework StarGray Firework StarLight Gray Firework StarCyan Firework StarPurple Firework StarBlue Firework StarBrown Firework StarGreen Firework StarRed Firework StarBlack Firework Star
White Firework StarOrange Firework StarMagenta Firework StarLight Blue Firework StarYellow Firework StarLime Firework StarPink Firework StarGray Firework StarLight Gray Firework StarCyan Firework StarPurple Firework StarBlue Firework StarBrown Firework StarGreen Firework StarRed Firework StarBlack Firework Star Bone MealOrange DyeMagenta DyeLight Blue DyeDandelion YellowLime DyePink DyeGray DyeLight Gray DyeCyan DyePurple DyeLapis LazuliCocoa BeansCactus GreenRose RedInk Sac



Grid layout Shapeless.png

Primary colors[edit]

These primary dyes are created from a single ingredient spawned naturally in a world.

Name Source Color Notes

Rose Red
Poppy
Rose Bush
Red Tulips
Red Made by placing a poppy, red tulip, or rose bush on a crafting grid. In Pocket Edition 0.8.0+ it is made either by cooking a Red Mushroom in a Furnace or crafted from beetroots. In Xbox and PS3 editions and older versions, it is still made from roses.

Orange Dye
Orange Tulip Orange Made by placing an orange tulip on a crafting grid. Can also be made from rose red and dandelion yellow.

Dandelion Yellow
Dandelion
Sunflower
Yellow Made by placing a dandelion or sunflower on a crafting grid.

Cactus Green
Cactus Green Made by cooking cactus in a furnace.

Lapis Lazuli
Lapis Lazuli Ore Blue Mined (one ore yields 4-8 dye).

Light Blue Dye
Blue Orchid Light Blue Made by placing a blue orchid on a crafting grid. Can also be made from lapis lazuli and bone meal.

Magenta Dye
Lilac
Allium
Magenta Made by placing a lilac or allium on a crafting grid. Can also be made from 2 rose red, 1 lapis lazuli, and 1 bone meal, or from purple and pink dyes.

Pink Dye
Peony
Pink Tulips
Pink Made by placing a peony or pink tulip on a crafting grid. Can also be made from rose red and bone meal. (Pink wool can also be obtained from rare pink sheep.)

Bone Meal
Bone White Made by placing a bone on a crafting grid. (White wool can also be obtained from white sheep or string put into a 2 by 2 square on the crafting table.)

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. Can also be made with bone meal and gray dye, or 2 bone meal and an ink sac. (Light gray wool can also be obtained from light gray sheep.)

Ink Sac
Squid Black Each squid drops 0-3 ink sacs when it is killed. (Black wool can also be obtained from black sheep, or from naturally occurring lamp posts in NPC Villages.). Available in Pocket Edition on Survival Mode in Village Blacksmiths and stronghold chests.

Cocoa Beans
Cocoa plants, Dungeons Brown Found in dungeons, or growing on jungle trees. (Brown wool can also be obtained from brown sheep.).

Secondary colors[edit]

Secondary dyes are created by combining primary dyes together.

Name Source Color Notes

Cyan Dye
Cactus Green + Lapis Lazuli Cyan

Purple Dye
Rose Red + Lapis Lazuli Purple

Gray Dye
Ink Sac + Bone Meal Gray (Gray wool can also be obtained from gray sheep.)

Lime Dye
Cactus Green + Bone Meal Lime Green

Notes[edit]

If you are looking to make Wool dyed a certain color, it is better to dye a sheep the desired color and shear the sheep. This method gives you a permanent supply of that wool color (1-3 blocks per shearing), for a single piece of dye, where crafting gives you only one dyed block per dye unit. Note that you can also bleach and re-dye non-white sheep. Sheep can also be bred, and the lambs inherit color from their parents. If the parents' colors cannot be combined to make a new color, the lamb will inherit the color of one of its parents. If the parents' colors can combine to create a new color, (following the same rules that dyes use), the lamb will inherit the new color. For example, red and yellow sheep can produce an orange lamb. However, blue and yellow sheep cannot create a green lamb.

These colors of wool naturally occur on sheep; all others must be created by using dye on a sheep (right-click):

  1. White sheep (the most common)
  2. Light gray sheep
  3. Dark gray sheep
  4. Black sheep
  5. Brown sheep (rare)
  6. Pink sheep (very rare)

Data values[edit]

All the dyes have the ID name minecraft:dye. The color of a dye item depends on a secondary data field (beyond the item ID of 351), which is also used to store the damage value for tools. 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.

Icon Data Description Color Code Sample
Dec Hex Dec Hex

0 0x0 Ink Sac 1644825 #191919

1 0x1 Rose Red 10040115 #993333

2 0x2 Cactus Green 6717235 #667F33

3 0x3 Cocoa Beans 6704179 #664C33

4 0x4 Lapis Lazuli 3361970 #334CB2

5 0x5 Purple Dye 8339378 #7F3FB2

6 0x6 Cyan Dye 5013401 #4C7F99

7 0x7 Light Gray Dye 10066329 #999999

8 0x8 Gray Dye 5000268 #4C4C4C

9 0x9 Pink Dye 15892389 #F27FA5

10 0xA Lime Dye 8375321 #7FCC19

11 0xB Dandelion Yellow 15066419 #E5E533

12 0xC Light Blue Dye 6724056 #6699D8

13 0xD Magenta Dye 11685080 #B24CD8

14 0xE Orange Dye 14188339 #D87F33

15 0xF Bone Meal 16777215 #FFFFFF

Video[edit]

Note: This video is outdated and does not include details of the 1.7.2 update's changes to the dyeing system/production chain.

History[edit]

Beta
1.2 Added wool dyes.
Official release
1.1 Sheep now have the ability to regrow their wool by eating grass. Dyed sheep will regrow wool in their new color.
1.4.2 12w34a Added the ability to dye leather armor and wolf collars.
1.6.1 13w19a Stained clay can now be crafted.
1.7.2 13w36a With the addition of new flowers, many secondary and tertiary dyes are now primary dyes.
13w41a Stained glass can now be crafted.
1.8 14w30a Added banners, which can be dyed.
Pocket Edition Alpha
0.3.0 Added dandelion yellow.
0.8.0 build 3 Ink sacs, cocoa beans, gray dye, and light gray dye are available in Creative.
Beetroots can be put in the crafting grid to obtain red dye.
0.9.0 Cocoa beans grow on jungle trees.
Removed the cyan flower and replaced it with a new poppy flower that can be crafted into rose red.
Added more flowers for dyes.

Trivia[edit]

  • The reversed color values closely resemble an ANSI or VGA palette with the biggest outlier being orange.
  • The metadata values for wool and dyes are the inverse of one another, with white wool having a metadata value of 0, bone meal 15; orange wool having a value of 1, orange dye 14 and so on.
  • Players can obtain each one of every color with 1 cocoa bean, 2 yellow dye and ink sacs, 3 green dye, 4 lapis lazuli and red dyes 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.
  • When coding recipes including items with metadata, such as dyes, rather than just making an item, you must create a stack of one item that includes the metadata.
  • A few of the dye items also have unrelated crafting recipes or special uses:
  • In Pocket 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.