mojira.dev
MC-7426

Sheep breed in incorrect colors

Breeding two sheep in one color resulted in offspring in another color.
Happens probably only when breeding multiple colors simultanously.

I have built several pens using fences. Put a pair of sheep in each, one color in each pen.
Then gave them all wheat.
Result is that sometimes offspring got different color than their parents.
Screenshots after breeding attached.

Last screenshot is an overview of all pens. One can see that red sheep pen is not adjacent to cyan pen, so it was not possible that cyan sheep bred near the fence and offspring got created on the other side of the pen. Glitching through two fences at once is rather improbable too.

Attachments

Comments 13

I can also confirm this issue. I had 16 pens of sheep. I wouldn't breed the pens right next to each other at the same time (to keep the sheep from breeding with different color sheep), when I breeded two collections of sheep they could be pretty far apart, the next sheep born would occasionally be the wrong color. I've attached a screenshot of the result after it happened a couple of times.

This could be intentional feature. A way to create sheeps with new colors when only 1 or 2 colors are available. However, I haven't yet spotted the necessary code to do so intentionally; I've only found the code that mixes two parent colors together, or picks either parent's color.

(Edit: on another thought, if it was intentional feature, it should only allow the colors in which sheep spawn normally, which obviously is not the case here, seeing yellow and green sheeplings..)

From MineCraft Wiki:
"If the parents have 'compatible' wool colors (meaning that the corresponding dye items could be combined into a third dye color), the resulting lamb will be a mix of their colors (e.g., blue sheep + white sheep = light blue lamb). Otherwise, the lamb will be the same color as one of the parents, chosen at random. It doesn't matter if either parent has been sheared."

While an intended feature, from the description Piotr said that two of the same color were bred, which should result in the same color sheep.

@Piotr You mentioned you were breeding multiple sheep at the same time. What color sheep were you breeding? (Even if they were not next to each other.)

Was also speaking with the other mods. It's a bit hard to tell in that screenshot but I believe sheep can breed up to 7 blocks away. At least 2 of the incorrect colors are within range for that to happen. The light blue in the red pen, I'm not sure about though.

Can you reproduce this if you put each color of sheep in pens that are a fair distance apart?

3 more comments

Unless there's evidence that this can happen with sheep completely separated, this works as intended.

I have just tried the same thing in the newest snapshot and it happened again. Even more buggy behavior this time, namely 2 yellow sheep in one pen and 2 red sheep in other pen (1 block distance between pen walls) produced 2 orange AND 1 red baby (3 babies total out of 2 pairs!). That happened twice - both screenshots attached (

[media]

and

[media]

). Im not sure if I should make another bug report for that one? (because it is not only about colors and proximity, but about number of offspring).

To summarise, what I consider a bug here:
1) Sheep separated by more than one impassable block are reproducing, or babies have wrong colors.
2) 4 sheep (2 pairs) were able to produce 3 babies at once, instead of only 1.

Yes, please make another report.

[media]

: Another case (from snapshot), where more offspring is created than expected and colors mix through the barrier - 2 blocks of dirt this time.

Apparently, this may have gotten fixed, as it was considered the consequence of MC-10956, which is now fixed. I guess representation/summary matters in resolution 😛

Piotr Paulski

(Unassigned)

Confirmed

Minecraft 1.4.7, Snapshot 13w04a

Retrieved