<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:14:28 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-7426] Sheep breed in incorrect colors</title>
                <link>https://bugs.mojang.com/browse/MC-7426</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Breeding two sheep in one color resulted in offspring in another color.&lt;br/&gt;
Happens probably only when breeding multiple colors simultanously.&lt;/p&gt;

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

&lt;p&gt;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.&lt;/p&gt;</description>
                <environment>Windows 7 64bit&lt;br/&gt;
java version &amp;quot;1.7.0&amp;quot;&lt;br/&gt;
Java(TM) SE Runtime Environment (build 1.7.0-b147)&lt;br/&gt;
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)</environment>
        <key id="20217">MC-7426</key>
            <summary>Sheep breed in incorrect colors</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="6">Works As Intended</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="zyzyzyryxy">Piotr Paulski</reporter>
                        <labels>
                    </labels>
                <created>Sun, 13 Jan 2013 21:38:59 +0100</created>
                <updated>Sat, 2 May 2015 03:38:26 +0200</updated>
                            <resolved>Thu, 24 Jan 2013 23:22:03 +0100</resolved>
                                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w04a</version>
                                                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="50028" author="bugi74" created="Tue, 5 Mar 2013 17:47:44 +0100"  >&lt;p&gt;Apparently, this may have gotten fixed, as it was considered the consequence of &lt;a href=&quot;https://bugs.mojang.com/browse/MC-10956&quot; title=&quot;Animals can breed over distances up to almost 8 blocks when only seperated by fences&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-10956&quot;&gt;&lt;del&gt;MC-10956&lt;/del&gt;&lt;/a&gt;, which is now fixed. I guess representation/summary matters in resolution &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/tongue.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="39557" author="zyzyzyryxy" created="Thu, 24 Jan 2013 23:35:04 +0100"  >&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/attachment/19692/19692_2013-01-24_23.31.53.png&quot; title=&quot;2013-01-24_23.31.53.png attached to MC-7426&quot;&gt;2013-01-24_23.31.53.png&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://bugs.mojang.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;: Another case (from snapshot), where more offspring is created than expected and colors mix through the barrier - 2 blocks of dirt this time.&lt;/p&gt;</comment>
                            <comment id="39556" author="banana478" created="Thu, 24 Jan 2013 23:34:05 +0100"  >&lt;p&gt;Yes, please make another report.&lt;/p&gt;</comment>
                            <comment id="39547" author="zyzyzyryxy" created="Thu, 24 Jan 2013 23:24:21 +0100"  >&lt;p&gt;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 (&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/attachment/19686/19686_2013-01-24_20.10.55.png&quot; title=&quot;2013-01-24_20.10.55.png attached to MC-7426&quot;&gt;2013-01-24_20.10.55.png&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://bugs.mojang.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; and &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/attachment/19687/19687_2013-01-24_20.16.27.png&quot; title=&quot;2013-01-24_20.16.27.png attached to MC-7426&quot;&gt;2013-01-24_20.16.27.png&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://bugs.mojang.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;). 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).&lt;/p&gt;

&lt;p&gt;To summarise, what I consider a bug here:&lt;br/&gt;
1) Sheep separated by more than one impassable block are reproducing, or babies have wrong colors.&lt;br/&gt;
2) 4 sheep (2 pairs) were able to produce 3 babies at once, instead of only 1.&lt;/p&gt;</comment>
                            <comment id="39543" author="banana478" created="Thu, 24 Jan 2013 23:22:03 +0100"  >&lt;p&gt;Unless there&apos;s evidence that this can happen with sheep completely separated, this works as intended.&lt;/p&gt;</comment>
                            <comment id="39370" author="bugi74" created="Thu, 24 Jan 2013 12:43:42 +0100"  >&lt;p&gt;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).&lt;/p&gt;

&lt;p&gt;I was able to reproduce the &quot;wrong&quot; 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).&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;(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.)&lt;/p&gt;</comment>
                            <comment id="39366" author="zyzyzyryxy" created="Thu, 24 Jan 2013 11:43:18 +0100"  >&lt;p&gt;@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.&lt;br/&gt;
I am quite sure that on the right side order was: pink, cyan, red, light blue, orange, blue, ...&lt;/p&gt;

&lt;p&gt;I will test it today in the evening probably, this time taking care of the details.&lt;/p&gt;

&lt;p&gt;@Markku Is that searching for mates done in order to make sheep come close to each other, or when they already &quot;kissed&quot; and offspring is spawned?&lt;/p&gt;

&lt;p&gt;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 (&amp;#63;) to be touching each other.&lt;/p&gt;</comment>
                            <comment id="39332" author="bugi74" created="Thu, 24 Jan 2013 01:17:15 +0100"  >&lt;p&gt;The AI code looks for &quot;mates&quot; in &quot;axis aligned bounding box&quot; + 8 blocks range (in all directions). So aboutish 8-9 blocks. I don&apos;t care to look into the details, so to play it safe and assuming &quot;worst case&quot;, I&apos;d use at least 16 blocks separation in testing. Flat worlds have space to waste.&lt;/p&gt;</comment>
                            <comment id="39330" author="banana478" created="Thu, 24 Jan 2013 01:03:08 +0100"  >&lt;p&gt;Can you reproduce this if you put each color of sheep in pens that are a fair distance apart?&lt;/p&gt;</comment>
                            <comment id="39329" author="talven81" created="Thu, 24 Jan 2013 01:01:17 +0100"  >&lt;p&gt;Was also speaking with the other mods. It&apos;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&apos;m not sure about though.&lt;/p&gt;</comment>
                            <comment id="39325" author="talven81" created="Thu, 24 Jan 2013 00:52:46 +0100"  >&lt;p&gt;From MineCraft Wiki:&lt;br/&gt;
&quot;If the parents have &apos;compatible&apos; 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&apos;t matter if either parent has been sheared.&quot;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;@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.)&lt;/p&gt;</comment>
                            <comment id="39321" author="bugi74" created="Thu, 24 Jan 2013 00:18:27 +0100"  >&lt;p&gt;This could be intentional feature. A way to create sheeps with new colors when only 1 or 2 colors are available. However, I haven&apos;t yet spotted the necessary code to do so intentionally; I&apos;ve only found the code that mixes two parent colors together, or picks either parent&apos;s color.&lt;/p&gt;

&lt;p&gt;(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..)&lt;/p&gt;</comment>
                            <comment id="39315" author="bbinme" created="Wed, 23 Jan 2013 23:35:13 +0100"  >&lt;p&gt;I can also confirm this issue. I had 16 pens of sheep. I wouldn&apos;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&apos;ve attached a screenshot of the result after it happened a couple of times.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="18661" name="2013-01-13_21.18.38.png" size="535519" author="zyzyzyryxy" created="Sun, 13 Jan 2013 21:38:59 +0100"/>
                            <attachment id="18662" name="2013-01-13_21.18.41.png" size="536361" author="zyzyzyryxy" created="Sun, 13 Jan 2013 21:38:59 +0100"/>
                            <attachment id="18663" name="2013-01-13_21.18.59.png" size="560301" author="zyzyzyryxy" created="Sun, 13 Jan 2013 21:38:59 +0100"/>
                            <attachment id="18664" name="2013-01-13_21.19.44.png" size="666793" author="zyzyzyryxy" created="Sun, 13 Jan 2013 21:38:59 +0100"/>
                            <attachment id="19686" name="2013-01-24_20.10.55.png" size="361016" author="zyzyzyryxy" created="Thu, 24 Jan 2013 23:13:25 +0100"/>
                            <attachment id="19687" name="2013-01-24_20.16.27.png" size="444430" author="zyzyzyryxy" created="Thu, 24 Jan 2013 23:13:25 +0100"/>
                            <attachment id="19692" name="2013-01-24_23.31.53.png" size="241816" author="zyzyzyryxy" created="Thu, 24 Jan 2013 23:33:21 +0100"/>
                            <attachment id="19482" name="screenshot-1.jpg" size="534846" author="bbinme" created="Wed, 23 Jan 2013 23:36:30 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 2 May 2015 03:38:00 +0200</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10501" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Game Mode</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10304"><![CDATA[Survival]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0e6o7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>