This Minecraft tutorial explains the NBT tags (formerly called data tags) that you can use for a sheep in Minecraft Java Edition (PC/Mac) 1. 16, 1. 17, 1.
20. To guarantee that sheep always spawn with the desired color, additional NBT tags can be applied to the monster spawner, utilizing the Color tag. Natural generation [edit edit source] In Java Edition, 4 sheep may spawn above grass blocks, at a light level of 9 or higher, even in snowy taigas, but not in pale gardens.
Command maker and guide for summoning a minecraft sheep, summon by color of choice, if sheared. Includes easy to use tool for mob data tags. I'm pretty sure sheep color is an NBT tag.
If it is, you just need to find the name of the tag, and you can access it with procedures. (So you could make a procedure that triggers when the entity dies, checks the tag, and uses it to determine which item to spawn.). You should be able to edit its nbt with the data command.
data modify entity @e[type=minecraft:sheep,limit=1] Color set value 1 This command makes it orange, but any number 0-15 works, check the mc wiki. 1 I am trying to make a printer with sheep. I have a double chest for the printer input and sheep correspond to the slots in the chest.
There are 54 sheep corresponding to the 54 slots. What command can I run to make the color of wool in a specific slot in a chest the same color as the corresponding sheep? Independently from the displayed color, all six variants are able to spawn, the usual chances apply. To guarantee that sheep always spawn with the desired color, additional NBT tags can be applied to the monster spawner, utilizing the Color tag.
Sheep color[NBT Compound / JSON Object] Entity data Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template Tags common to all entities see Template:Nbt inherit/entity/template Tags common to all mobs see Template:Nbt inherit/mob/template [Byte] Color: The color of the sheep. Default is 0. [Byte] Sheared: 1 or 0 (true/false).
I've also tried using a capital "c" as well as 14b (because the color code has a "b" next to it an nbt editor) and used just the name of the color. If someone could help me figure out what I've been doing wrong, it would be very appreciated. I'm trying to test if a sheep is a certain color.
I know this is probably possible with 'Get entity data NBT tag', but I can't seem to get it to work as it just always returns 0.