"{Item:{id:}" data testing [duplicate]
!["{Item:{id:}" data testing [duplicate] - Photo Of Sound Engineer On Sound Studio "{Item:{id:}" data testing [duplicate] - Photo Of Sound Engineer On Sound Studio](/assets/images/quotitemidquot_data_testing_duplicate_0.jpeg)
//ads -- adsterra.com -- native banner
?>
How do I test for items with a data value, like gray dye or purple wool, using the {Item:id}
command?
I have tried using {Item:{id:minecraft:dye:7}}
and {Item:{id:351/7}}
Best Answer
You are looking for the Damage
tag. It is of type short, so you also need to suffix the number with an 's':
{Item:{id:minecraft:dye,Damage:7s}}
Pictures about ""{Item:{id:}" data testing [duplicate]"
!["{Item:{id:}" data testing [duplicate] - Engineers in Sound Studio "{Item:{id:}" data testing [duplicate] - Engineers in Sound Studio](/assets/images/quotitemidquot_data_testing_duplicate_1.jpeg)
!["{Item:{id:}" data testing [duplicate] - Photo Of Female Engineer Doing Tests "{Item:{id:}" data testing [duplicate] - Photo Of Female Engineer Doing Tests](/assets/images/quotitemidquot_data_testing_duplicate_2.jpeg)
!["{Item:{id:}" data testing [duplicate] - Engineer Testing Sound System "{Item:{id:}" data testing [duplicate] - Engineer Testing Sound System](/assets/images/quotitemidquot_data_testing_duplicate_3.jpeg)
The ITEM ID column - What most people don't know.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: ThisIsEngineering, ThisIsEngineering, ThisIsEngineering, ThisIsEngineering