[MC-7426] Sheep breed in incorrect colors Created: 13/Jan/13 Updated: 02/May/15 Resolved: 24/Jan/13 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Minecraft 1.4.7, Snapshot 13w04a |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Piotr Paulski | Assignee: | Unassigned |
| Resolution: | Works As Intended | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Windows 7 64bit |
||
| Attachments: |
|
| CHK: | |
| Confirmation Status: | Confirmed |
| Game Mode: | Survival |
| Description |
|
Breeding two sheep in one color resulted in offspring in another color. I have built several pens using fences. Put a pair of sheep in each, one color in each pen. 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. |
| Comments |
| Comment by Markku [ 05/Mar/13 ] |
|
Apparently, this may have gotten fixed, as it was considered the consequence of |
| Comment by Piotr Paulski [ 24/Jan/13 ] |
|
2013-01-24_23.31.53.png |
| Comment by Anon Ymus [ 24/Jan/13 ] |
|
Yes, please make another report. |
| Comment by Piotr Paulski [ 24/Jan/13 ] |
|
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 (2013-01-24_20.10.55.png To summarise, what I consider a bug here: |
| Comment by Anon Ymus [ 24/Jan/13 ] |
|
Unless there's evidence that this can happen with sheep completely separated, this works as intended. |
| Comment by Markku [ 24/Jan/13 ] |
|
The range I mentioned is both for looking and for when it can produce offspring. I just tested it with having separation of 5 empty blocks between pens; sheeps on each side were happy enough to make a child. They did try to move towards each other, but being close is not a requirement in the AI version of the breeding (it does only in the old code, where the requirement is iirc 2.5 blocks). I was able to reproduce the "wrong" color case, too, with about 5-6 blocks between brown and green sheeps; the green sheep ended up getting brown baby. (They had back and white sheeps between). Seems this issue is more about either player having too little separation between sheeps of different color, or a bug that the game allows getting the babies from too long distance. (Edit: I did not check a case where two sheeps in love are first, say, 6 blocks away and get to detect each other, but are then moved further away... Maybe they can create baby even from longer distances as long as they have been near enough (that +8 blocks range) to detect each other first. However, this is typically not an issue, considering that they will try to get closer to each other.) |
| Comment by Piotr Paulski [ 24/Jan/13 ] |
|
@Talven I was going through the corridor between the pens and feeding the sheep as I approached them - probably first those on the left, then on the right. Not sure if I went on one side first then other, or one from each side alternatively. I will test it today in the evening probably, this time taking care of the details. @Markku Is that searching for mates done in order to make sheep come close to each other, or when they already "kissed" and offspring is spawned? Observing animal behavior in game, I think the distance you and others are mentioning refers to movement algoritm at the beginning of the process (animals far away will not go to each other to mate) and not to actual creation of the offspring at the end, when they are required (?) to be touching each other. |
| Comment by Markku [ 24/Jan/13 ] |
|
The AI code looks for "mates" in "axis aligned bounding box" + 8 blocks range (in all directions). So aboutish 8-9 blocks. I don't care to look into the details, so to play it safe and assuming "worst case", I'd use at least 16 blocks separation in testing. Flat worlds have space to waste. |
| Comment by Anon Ymus [ 24/Jan/13 ] |
|
Can you reproduce this if you put each color of sheep in pens that are a fair distance apart? |
| Comment by Talven81 [ 24/Jan/13 ] |
|
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. |
| Comment by Talven81 [ 23/Jan/13 ] |
|
From MineCraft Wiki: 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.) |
| Comment by Markku [ 23/Jan/13 ] |
|
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..) |
| Comment by Bryan Brown [ 23/Jan/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. |