Minecraft wiki entry for Pre-flattening, associated text: These values specify the color of the wool, stained terracotta, stained glass and carpet. This data is stored in block metadata for placed wool, stained clay, stained glass or carpet, and as the "damage" for the item in the inventory.