<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AData_component_format%2Fdyed_color</id>
	<title>Minecraft:Data component format/dyed color - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AData_component_format%2Fdyed_color"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Data_component_format/dyed_color&amp;action=history"/>
	<updated>2026-04-17T20:15:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Data_component_format/dyed_color&amp;diff=91151&amp;oldid=prev</id>
		<title>SyncBot: Sync: new page from Minecraft</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Data_component_format/dyed_color&amp;diff=91151&amp;oldid=prev"/>
		<updated>2026-04-17T11:04:39Z</updated>

		<summary type="html">&lt;p&gt;Sync: new page from Minecraft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;** {{nbt|int|minecraft:dyed_color}}: The RGB color of the tint applied to a dyed item, typically as a result of combining the item with dyes in a {{cd|minecraft:crafting_dyed}} type crafting recipe. More generally, this component is used as the {{cd|minecraft:dye}} color provider in [[Minecraft:item model definition]]s (so only item models that explicitly use this color provider will be tinted). If present on an item, gray text is added to the tooltip showing either an italic &amp;quot;Dyed&amp;quot; when [[Minecraft:advanced tooltips]] is &amp;#039;&amp;#039;off&amp;#039;&amp;#039;, or a non-italic &amp;quot;Color: #{{cd|&amp;lt;hex color code&amp;gt;}}&amp;quot;&amp;lt;ref group=&amp;quot;note&amp;quot;&amp;gt;The hexadecimal number is always at least 6 digits (with leading zeroes if needed), with additional digits if the alpha channel is included, despite the alpha channel having no effect on the tint color.&amp;lt;/ref&amp;gt; instead when [[Minecraft:advanced tooltips]] is &amp;#039;&amp;#039;on&amp;#039;&amp;#039;. The color is stored as an integer which packs the color&amp;#039;s red, green and blue channels using this formula:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;({{color|Red}} &amp;lt;abbr title=&amp;quot;Logical left shift&amp;quot;&amp;gt;&amp;amp;lt;&amp;amp;lt;&amp;lt;/abbr&amp;gt; 16) + ({{color|Green}} &amp;amp;lt;&amp;amp;lt; 8) + {{color|Blue}}&amp;lt;/code&amp;gt;&amp;lt;ref group=&amp;quot;note&amp;quot;&amp;gt;For positive values larger than &amp;lt;samp&amp;gt;0x00FFFFFF&amp;lt;/samp&amp;gt;, the most significant byte encodes the alpha channel (opacity), however this is effectively ignored when providing the tint color to the item model, as the tint does not affect opacity.&amp;lt;/ref&amp;gt; {{Calculator|decimalColor}}&lt;br /&gt;
** {{nbt|list|minecraft:dyed_color}}: An alternative format. A list of 3 floats, ranging from 0.0 to 1.0 (inclusive)&amp;lt;ref group=&amp;quot;note&amp;quot;&amp;gt;Float values outside of this range are accepted, but clamped from 0 to 255 by modulo 256 after being multiplied by 255. For example, -1.0 is equivalent to 0.00392156862 (or 1/255).&amp;lt;/ref&amp;gt;, corresponding to the red, green and blue channels of the color. This format is automatically packed into the integer format by multiplying each float by 255, converting them to unsigned bytes (equivalent to taking the floor and then applying modulo 256), then using the formula &amp;lt;code&amp;gt;-16777216 + ({{color|Red}} &amp;amp;lt;&amp;amp;lt; 16) + ({{color|Green}} &amp;amp;lt;&amp;amp;lt; 8) + {{color|Blue}}&amp;lt;/code&amp;gt; due to the alpha channel being implicitly set to 255, resulting in a negative integer.&amp;lt;ref group=&amp;quot;note&amp;quot;&amp;gt;This can result in an item that is not normally obtainable and it affects the hexadecimal code that is shown in the (advanced) tooltip. For example {{cd|dyed_color{{=}}0x000000}} shows &amp;quot;#000000&amp;quot; but {{cd|dyed_color{{=}}[0,0,0]}} shows &amp;quot;#FF000000&amp;quot; despite them both representing the same pure black RGB color.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{notelist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Top-level data pages]]&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:fr:Format de composant de données/dyed color]]&lt;br /&gt;
[[Minecraft:ja:データコンポーネント/dyed color]]&lt;br /&gt;
[[Minecraft:pt:Formato de componente de dado/dyed color]]&lt;br /&gt;
[[Minecraft:uk:Формат компонента даних/dyed color]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>SyncBot</name></author>
	</entry>
</feed>