<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:59:03 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-2788] Sheep wool color doesn&apos;t generate/randomize properly; generating villages resets world RNG</title>
                <link>https://bugs.mojang.com/browse/MC-2788</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Sheep groups spawning at world generation or otherwise when structures are generated at the same time will spawn the same sheep colors.&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Find a world where a lot of sheep spawn at world generation. Ideally spawn near a plains biome. Example seeds are &quot;136&quot; and &quot;quarry&quot; (default biomes)&lt;/li&gt;
	&lt;li&gt;Observe sheep&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Actual results:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The sheep spawning in groups of 4 always spawn with the same color. In the &quot;quarry&quot; seed, sheep will always spawn as three white sheep and one brown sheep. In the &quot;136&quot; seed, sheep will always spawn as three white sheep and one dark grey sheep.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Expected result:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Sheep should be randomized so you get different sheep per group per world.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The code that generates groups of sheep (and possibly other mobs) doesn&apos;t seem to use the random generator properly so all the sheep groups are generated the same. See comments for details and attachments for debug output.&lt;/p&gt;

&lt;p&gt;Note: This bug probably applies only to mobs spawning while structures are generated at the same time, if you search long enough, you may/will find different sheep groups.&lt;/p&gt;

&lt;p&gt;PS: Additionally, some seeds like &quot;135&quot; spawn huge amounts of pigs but no sheep, so it may be possible that the random generator fails to be random even earlier: At determining which mobs to spawn.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Codeanalysis&quot;&gt;&lt;/a&gt;Code analysis&lt;/h3&gt;
&lt;p&gt;See &lt;a href=&quot;https://bugs.mojang.com/browse/MC-2788?focusedCommentId=46118&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-46118&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;this comment&lt;/a&gt; by &lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=bugi74&quot; class=&quot;user-hover&quot; rel=&quot;bugi74&quot;&gt;bugi74&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="14568">MC-2788</key>
            <summary>Sheep wool color doesn&apos;t generate/randomize properly; generating villages resets world RNG</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="10001">Awaiting Response</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jonathanhaas">Jonathan Haas</reporter>
                        <labels>
                            <label>color</label>
                            <label>group</label>
                            <label>mob</label>
                            <label>sheep</label>
                            <label>wool</label>
                            <label>world-generation</label>
                    </labels>
                <created>Sun, 11 Nov 2012 13:24:57 +0100</created>
                <updated>Fri, 19 Feb 2021 09:21:26 +0100</updated>
                            <resolved>Thu, 19 Sep 2019 16:07:00 +0200</resolved>
                                    <version>Minecraft 1.4.2</version>
                    <version>Minecraft 1.4.4</version>
                    <version>Minecraft 1.4.6</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w02a</version>
                    <version>Snapshot 13w05b</version>
                    <version>Snapshot 13w06a</version>
                    <version>Snapshot 13w07a</version>
                    <version>Snapshot 13w09a</version>
                    <version>Snapshot 13w09b</version>
                    <version>Minecraft 1.5</version>
                    <version>Snapshot 13w11a</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.5.2</version>
                    <version>Snapshot 13w17a</version>
                    <version>Snapshot 13w18a</version>
                    <version>Snapshot 13w18b</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.6.4</version>
                    <version>Minecraft 13w38c</version>
                    <version>Minecraft 13w42a</version>
                    <version>Minecraft 13w42b</version>
                    <version>Minecraft 13w43a</version>
                    <version>Minecraft 1.7</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w05b</version>
                    <version>Minecraft 14w06b</version>
                    <version>Minecraft 14w07a</version>
                    <version>Minecraft 14w08a</version>
                    <version>Minecraft 14w17a</version>
                    <version>Minecraft 14w19a</version>
                    <version>Minecraft 14w21b</version>
                    <version>Minecraft 1.8</version>
                    <version>Minecraft 1.8.1-pre3</version>
                    <version>Minecraft 15w41b</version>
                    <version>Minecraft 15w47b</version>
                    <version>Minecraft 1.9.4</version>
                    <version>Minecraft 1.10.2</version>
                    <version>Minecraft 1.11.2</version>
                                                                        <votes>18</votes>
                                    <watches>15</watches>
                                                                            <comments>
                            <comment id="916881" author="arisabot" created="Tue, 9 Feb 2021 09:15:23 +0100"  >&lt;p&gt;This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.&lt;br/&gt;
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on &lt;a href=&quot;https://discordapp.com/invite/rpCyfKV&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Discord&lt;/a&gt; or &lt;a href=&quot;https://www.reddit.com/r/Mojira/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Reddit&lt;/a&gt;.&lt;br/&gt;
&lt;sub&gt;&lt;font color=&quot;#888&quot;&gt;&amp;#8211; I am a bot. This action was performed automatically! Please report any issues on &lt;a href=&quot;https://discordapp.com/invite/rpCyfKV&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Discord&lt;/a&gt; or &lt;a href=&quot;https://www.reddit.com/r/Mojira/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Reddit&lt;/a&gt;&lt;/font&gt;&lt;/sub&gt;&lt;/p&gt;</comment>
                            <comment id="584946" author="slicedlime" created="Thu, 19 Sep 2019 16:07:00 +0200"  >&lt;p&gt;Is this still an issue in 1.14.4 or above?&lt;/p&gt;</comment>
                            <comment id="464794" author="farogaming" created="Thu, 28 Jun 2018 23:26:37 +0200"  >&lt;p&gt;You don&apos;t have to find the sheep, just give them the glowing effect. I found one group with a dark grey sheep, like in the report, and another one without a grey sheep.&lt;/p&gt;</comment>
                            <comment id="464767" author="bugi74" created="Thu, 28 Jun 2018 22:16:19 +0200"  >&lt;p&gt;White is too common color, so that can not be used to check this one. It is best to check the seeds and locations already mentioned, but also note that world generation changes can make the earlier seeds/locations to no longer give the same results.&lt;/p&gt;

&lt;p&gt;The best indication is to find a group with sheep(s) of rarer color(s), and see if the same color distribution is found in other groups nearby. E.g. if multiple groups all have 3 whites and one black, it could be an indication of this bug still being in effect. Typically, one would first find a world with a nice amount of sheep groups close together, then recreate the world with the same seed, but teleport right in the middle of those sheep groups (so they get generated in the same generation &quot;run&quot;). But just flying around in creative might do the trick, too.&lt;/p&gt;</comment>
                            <comment id="464758" author="farogaming" created="Thu, 28 Jun 2018 21:50:56 +0200"  >&lt;p&gt;I&apos;m not too familiar with this bug, but I just found a pack of four white sheep in the &quot;136&quot; seed. Does that mean it&apos;s fixed?&lt;/p&gt;</comment>
                            <comment id="464748" author="qwerty23495" created="Thu, 28 Jun 2018 21:28:43 +0200"  >&lt;p&gt;Is this still an issue in 1.13-pre5?&lt;/p&gt;

&lt;p&gt;Please keep the ticket updated.&lt;/p&gt;</comment>
                            <comment id="318258" author="jonathan2520" created="Wed, 29 Jun 2016 12:55:09 +0200"  >&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;121126_thumb&quot; href=&quot;https://bugs.mojang.com/secure/attachment/121126/121126_2016-06-29_12.36.37.png&quot; title=&quot;2016-06-29_12.36.37.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;121126&quot; file-preview-title=&quot;2016-06-29_12.36.37.png&quot;&gt;&lt;img src=&quot;https://bugs.mojang.com/secure/thumbnail/121126/_thumb_121126.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;This is seed 136 in 1.10.2. At spawn I didn&apos;t immediately discern a pattern although many groups were the same. Near a village ALL groups were 2 white + 2 black. The debug screen shows these coordinates: 634, 118, 112. Generating a new world and teleporting there reproduces it.&lt;/p&gt;

&lt;p&gt;I also disassembled the game using javap and found the mechanism is still in place. Village generator sets the world&apos;s RNG to a particular value. Sheep uses the world&apos;s RNG to pick a color. ??? Profit!&lt;/p&gt;</comment>
                            <comment id="318243" author="jonathanhaas" created="Wed, 29 Jun 2016 09:36:23 +0200"  >&lt;p&gt;Try a more recent seed and try to find sheep groups that are near each other (ie generate at the same time). I&apos;d try the seed and coordinates by Vitold but I&apos;m curently away from home so I can&apos;t try reproducing this.&lt;/p&gt;</comment>
                            <comment id="318200" author="farogaming" created="Wed, 29 Jun 2016 04:20:55 +0200"  >&lt;p&gt;Just opened seed 136 in 1.10.2. First group of 4 sheep I found was two white, one light grey, one dark grey. Second group of 4 sheep I found was three white and one light grey. These groups were far away from each other and I made sure (with glowing effect) that I didn&apos;t confuse sheep of different groups. Does that mean fixed for 1.10.2?&lt;/p&gt;</comment>
                            <comment id="305053" author="lightschaos" created="Tue, 17 May 2016 17:27:07 +0200"  >&lt;p&gt;Still Reproducible in 1.9.4&lt;br/&gt;
Seed: 2368284&lt;br/&gt;
x: 1941&lt;br/&gt;
z: 5825&lt;br/&gt;
Look for pink sheep.&lt;/p&gt;</comment>
                            <comment id="266555" author="clamlol" created="Fri, 20 Nov 2015 03:40:08 +0100"  >&lt;p&gt;Still in 15w47b, I spawned next to a village and half the sheep nearby were pink...&lt;/p&gt;</comment>
                            <comment id="205211" author="galaxy_2alex" created="Sat, 25 Oct 2014 10:42:24 +0200"  >&lt;p&gt;Reopened, thanks.&lt;/p&gt;</comment>
                            <comment id="205208" author="jonathanhaas" created="Sat, 25 Oct 2014 10:40:49 +0200"  >&lt;p&gt;It&apos;s difficult to find good seeds to reproduce this, bit it seems to be still present in 1.8.1-pre3. Seed 8807133522892241494 at X=75, Z=320 seems to spawn purely white sheeps for example now.&lt;/p&gt;</comment>
                            <comment id="205015" author="galaxy_2alex" created="Fri, 24 Oct 2014 22:05:29 +0200"  >&lt;p&gt;Is this still a concern in the &lt;em&gt;current Minecraft version&lt;/em&gt; &lt;b&gt;1.8.1 Prerelease 3&lt;/b&gt; / Launcher version &lt;b&gt;1.5.3&lt;/b&gt; or later? If so, please &lt;em&gt;update the affected versions&lt;/em&gt; in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="142422" author="jonathanhaas" created="Sat, 22 Feb 2014 10:05:34 +0100"  >&lt;p&gt;Still reproducible in 14w08a using the seed Tails posted above.&lt;/p&gt;</comment>
                            <comment id="142321" author="ezekielelin" created="Fri, 21 Feb 2014 21:19:32 +0100"  >&lt;p&gt;Is this still a concern in the latest Minecraft version &lt;b&gt;14w08a&lt;/b&gt;? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="113732" author="bljat" created="Tue, 22 Oct 2013 18:56:25 +0200"  >&lt;p&gt;Example with pink sheep: 8807133522892241494 at X=75, Z=320&lt;br/&gt;
Every group contains exactly 1 pink sheep.&lt;/p&gt;</comment>
                            <comment id="105393" author="jonathanhaas" created="Sun, 22 Sep 2013 11:44:02 +0200"  >&lt;p&gt;Still reproducible in latest snapshot. Example Seed: 12. Will only spawn groups of 3 white and one brown sheep.&lt;/p&gt;</comment>
                            <comment id="84521" author="jonathanhaas" created="Sat, 6 Jul 2013 19:50:12 +0200"  >&lt;p&gt;Still reproducible in the latest version (1.6.2 prerelease). The seed is indeed very nice, one pink sheep in every group.&lt;/p&gt;</comment>
                            <comment id="56104" author="bugi74" created="Thu, 21 Mar 2013 20:07:03 +0100"  >&lt;p&gt;Affects 1.5.1.&lt;br/&gt;
The duplicate &lt;a href=&quot;https://bugs.mojang.com/browse/MC-12281&quot; title=&quot;Sheep spawning messes up sometimes causing large amounts of pink sheep.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-12281&quot;&gt;&lt;del&gt;MC-12281&lt;/del&gt;&lt;/a&gt; has a &lt;em&gt;very&lt;/em&gt; nice seed to check this; pink sheeps are so rare that when you get 1 in every group of 4, things get obvious. (Seed 110122358, coords x=0 z=1660.)&lt;/p&gt;</comment>
                            <comment id="48433" author="bugi74" created="Thu, 28 Feb 2013 20:36:24 +0100"  >&lt;p&gt;Affects 13w09b.&lt;/p&gt;</comment>
                            <comment id="46422" author="jonathanhaas" created="Mon, 18 Feb 2013 11:02:26 +0100"  >&lt;p&gt;Thanks for your fix, Markku. Makes sense to me. I hope the developers will include this in the main source.&lt;/p&gt;</comment>
                            <comment id="46118" author="bugi74" created="Sat, 16 Feb 2013 20:17:14 +0100"  >&lt;p&gt;&lt;b&gt;Fix&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;World&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; Random setRandomSeed(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; par1, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; par2, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; par3) {
        &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; var4 = (&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;)par1 * 341873128712L + (&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;)par2 * 132897987541L + &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.getWorldInfo().getSeed() + (&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;)par3;
        &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.rand.setSeed(var4);
&lt;/span&gt;        &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.rand;
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Random(var4); &lt;span class=&quot;code-comment&quot;&gt;// &amp;lt;-- Makes things better?
&lt;/span&gt;    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;That is, instead of resetting the world random generator, just return a new generator with the same end state.&lt;/p&gt;

&lt;p&gt;There are two callers to this method. I didn&apos;t study their behaviour thoroughly after this change, but at least the other caller (village generator) seemed to still generate a valid looking village in a place where I knew a village was supposed to be. I leave the rest as an exercise to Mojang (or anyone else with interest).&lt;/p&gt;

&lt;p&gt;After fix, sheep colors are random, even when regenerating the world with the same seed. (There is a way to get same random sequence of colors each time the world is generated, but if Mojang wants that, they need to implement that separately.)&lt;/p&gt;

&lt;p&gt;(Edit: the proposed fix is &quot;bad coding&quot;, at least if keep using that method name; that method name indicates that the seed is indeed being set, and since it is aimed at the world instance, natural interpretation would be that the seed of the RNG of the world is to be set, which is not happening after the fix. Perhaps change the method name to something like &quot;getRNGWithState&quot;?)&lt;/p&gt;


&lt;p&gt;&lt;b&gt;Bug&lt;/b&gt;&lt;br/&gt;
The reason is that couple map feature generators (villages and temples/huts) reset the world random generator (its seed), even if they are called just to check whether such feature is to be generated or not. They always reset the seed to the same value (though different value for each generator), and these resets are &lt;em&gt;very&lt;/em&gt; common during generation. The animal/sheep generation uses the world RNG, too, but almost always at a time when that generator is still in predictable state after these resets, and thus gets the same values every time.&lt;/p&gt;

&lt;p&gt;There are other things resetting the world RNG (sets its seed), too, but the other calls are &lt;em&gt;very&lt;/em&gt; few, like 4 resets in the same span the two feature generators make hundres of resets.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Sample data&lt;/b&gt;&lt;br/&gt;
I&apos;ve attached a text file including some example console debug spam with values before and after fix. The seed was always that familiar &quot;quarry&quot;. The first section is without the fix - notice the exact same sequences of values most of the time. Other sections are three different generations with the fix enabled.&lt;/p&gt;</comment>
                            <comment id="29628" author="jonathanhaas" created="Thu, 20 Dec 2012 15:10:47 +0100"  >&lt;p&gt;I decompiled minecraft using MCP and modified the function generating sheep color like this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;EntitySheep.java&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; getRandomFleeceColor(Random par0Random)
    {
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; var1 = par0Random.nextInt(100);
        &lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt;.out.println(&lt;span class=&quot;code-quote&quot;&gt;&quot;Random &quot;&lt;/span&gt; + var1);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; var1 &amp;lt; 5 ? 15 : (var1 &amp;lt; 10 ? 7 : (var1 &amp;lt; 15 ? 8 : (var1 &amp;lt; 18 ? 12 : (par0Random.nextInt(500) == 0 ? 6 : 0))));
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;so it prints the generated &quot;random&quot; value to the console. As you can see by looking at the attached file, the values are not random at all and instead repeat every 4 values, so the color repeats for every 4 sheep generated.&lt;/p&gt;</comment>
                            <comment id="29624" author="jonathanhaas" created="Thu, 20 Dec 2012 14:08:46 +0100"  >&lt;p&gt;The issue is still present in 1.4.6. Sheep spawning is unchanged.&lt;/p&gt;

&lt;p&gt;The problem is not that sheeps spawn more in pink, grey and and brown colors, the issue is that all sheep groups spawn the same.&lt;/p&gt;</comment>
                            <comment id="29623" author="mustek" created="Thu, 20 Dec 2012 14:01:22 +0100"  >&lt;p&gt;Seems like the colored sheep spawning rates have increased, I see more pink, brown and grey sheep now.&lt;/p&gt;

&lt;p&gt;Is this still an issue for you or can this be resolved?&lt;/p&gt;</comment>
                            <comment id="20659" author="jonathanhaas" created="Sun, 11 Nov 2012 14:25:56 +0100"  >&lt;p&gt;Some more screenshots of quarry seed with spawn groups highlighted&lt;/p&gt;</comment>
                            <comment id="20657" author="jonathanhaas" created="Sun, 11 Nov 2012 14:23:08 +0100"  >&lt;p&gt;No, all seeds do this, this is just a random example. Other seeds just spawn different sheep groups; there are seeds that spawn only white sheep and there is the other seed that spawns groups of one pink sheep and three brown sheep, although I don&apos;t know if I have the save file/seed still.&lt;/p&gt;</comment>
                            <comment id="20656" author="grygrflzr" created="Sun, 11 Nov 2012 14:19:41 +0100"  >&lt;p&gt;Ah, yeah, the seed &lt;b&gt;quarry&lt;/b&gt; seems to generate groups of 3 white and 1 brown sheep. In fact looking around it&apos;s all 3 white and 1 brown sheep. That&apos;s definitely not random enough, but is this the only seed that does this? Using a seed removes the randomness, after all. Spawning during world generation is controlled by the world seed, not sure about post-worldgen spawning.&lt;/p&gt;</comment>
                            <comment id="20652" author="kumasasa" created="Sun, 11 Nov 2012 14:03:44 +0100"  >&lt;p&gt;Have attached the screenshot of seed &quot;quarry&quot;. Seeing white and brown sheep at given coordinates.&lt;/p&gt;</comment>
                            <comment id="20651" author="jonathanhaas" created="Sun, 11 Nov 2012 14:03:03 +0100"  >&lt;p&gt;Martin: I&apos;m not categorizing randomness as a bug, but I ended up having several completely improbable results, so I&apos;m just asking if the random generator is working correctly. While it could be possible that these events were all random, the devs could and probably should just check the internal seeds of each sheep group generator and make sure that they are indeed random. If they are, I&apos;m happy with it, but I strongly suspect a bug here.&lt;/p&gt;</comment>
                            <comment id="20650" author="grygrflzr" created="Sun, 11 Nov 2012 13:59:05 +0100"  >&lt;p&gt;I don&apos;t think anything with randomness in it can be categorized as a bug. We can only calculate the &lt;em&gt;chance&lt;/em&gt; of a certain result appearing, so the actual results can be quite different. For example, I can roll 6 dice simultaneously and end up with six 6s. Probability states that it should only have a 1/46656 chance of happening, and yet it can happen. If you ended up with the expected results (nearly no dice having the same number, or in this case mostly white sheep with barely any brown sheep) all the time, it would mean the random number generator is too predictable. This is a sign the randomizer is working.&lt;br/&gt;
However, if you had used a larger sample and it generated mostly brown sheep, that might be a problem with the random number generator. I will try an experiment and spawn several thousand sheep to see if the probability evens out.&lt;/p&gt;</comment>
                            <comment id="20649" author="jonathanhaas" created="Sun, 11 Nov 2012 13:54:01 +0100"  >&lt;p&gt;@Kumasasa 1/6 obviously, but if you roll a 6 thousand times in a row, you might question if the dice is working correctly, although it could still be random of course. The probablillity for that is just incredibly low.&lt;/p&gt;</comment>
                            <comment id="20646" author="jonathanhaas" created="Sun, 11 Nov 2012 13:51:36 +0100"  >&lt;p&gt;Just a quick example: generate a new world with seed &quot;quarry&quot; in creative mode. Go/Fly to the plains biome x=0, z=190, observe sheep groups. All groups consist of 1 brown sheep and 3 white ones. This is just a completely random seed I use and is not specially choosen to spawn exactly these sheep.&lt;/p&gt;

&lt;p&gt;If I find a way/screenshot to reprocude the pink sheeps, I will post it here, but this should do for now.&lt;/p&gt;</comment>
                            <comment id="20645" author="kumasasa" created="Sun, 11 Nov 2012 13:50:44 +0100"  >&lt;p&gt;Random is random. The probability for a pink sheep to spawn is &lt;b&gt;always&lt;/b&gt; 0.164%, regardless how many pink sheep are running around yet.&lt;br/&gt;
(Question: How is the probability to roll a dice to &quot;6&quot; when you draw the last three rolls also &quot;6&quot; ?)&lt;/p&gt;</comment>
                            <comment id="20643" author="grygrflzr" created="Sun, 11 Nov 2012 13:45:22 +0100"  >&lt;p&gt;Are you saying that the issue is that supposedly rare sheep (brown and pink) are spawning a bit too frequently? I don&apos;t really understand the issue from the description.&lt;/p&gt;</comment>
                            <comment id="20638" author="jonathanhaas" created="Sun, 11 Nov 2012 13:41:40 +0100"  >&lt;p&gt;Yes, I know, but try to calculate the probablity of of 6 sheep groups with each 1 pink sheep and 3 brown sheep in it. (In plains biome)&lt;/p&gt;

&lt;p&gt;I&apos;m no expert in statistics, but the probablity for that is extremely low, around 1&#215;10^-50, so I&apos;m pretty sure this is an issue in the game. At least the devs should take a look at the code.&lt;/p&gt;</comment>
                            <comment id="20636" author="kumasasa" created="Sun, 11 Nov 2012 13:33:05 +0100"  >&lt;p&gt;The spawning rates of the colours are not equally distributed:&lt;br/&gt;
According to &lt;a href=&quot;http://www.minecraftwiki.net/wiki/Sheep&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.minecraftwiki.net/wiki/Sheep&lt;/a&gt; the spawning rates are White Sheep 81.836%, Light Gray Sheep 5%, Gray Sheep 5%, Black Sheep 5%, Brown Sheep 3% (50% in extreme Hills biome), Pink Sheep 0.164%&lt;/p&gt;

&lt;p&gt;For doing a real statistics a sample of 6 groups &#225; 4 sheep is way too less.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="23650">MC-9887</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="27111">MC-12281</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="58659">MC-36546</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="66971">MC-42769</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="81283">MC-54923</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="83056">MC-56481</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="123802">MC-90438</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12417">MC-1112</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="12882" name="2012-11-11_13.58.25.png" size="1478535" author="kumasasa" created="Sun, 11 Nov 2012 14:01:05 +0100"/>
                            <attachment id="12883" name="2012-11-11_14.14.17.png" size="1689508" author="jonathanhaas" created="Sun, 11 Nov 2012 14:25:56 +0100"/>
                            <attachment id="12884" name="2012-11-11_14.14.24.png" size="1373245" author="jonathanhaas" created="Sun, 11 Nov 2012 14:25:56 +0100"/>
                            <attachment id="12885" name="2012-11-11_14.14.39.png" size="2476986" author="jonathanhaas" created="Sun, 11 Nov 2012 14:25:56 +0100"/>
                            <attachment id="12886" name="2012-11-11_14.14.51.png" size="1870333" author="jonathanhaas" created="Sun, 11 Nov 2012 14:25:56 +0100"/>
                            <attachment id="12887" name="2012-11-11_14.15.11.png" size="1696937" author="jonathanhaas" created="Sun, 11 Nov 2012 14:25:56 +0100"/>
                            <attachment id="121126" name="2016-06-29_12.36.37.png" size="2670098" author="jonathan2520" created="Wed, 29 Jun 2016 12:55:09 +0200"/>
                            <attachment id="15664" name="random.txt" size="1680" author="jonathanhaas" created="Thu, 20 Dec 2012 15:10:47 +0100"/>
                            <attachment id="21926" name="sheep-console-spam.txt" size="8887" author="bugi74" created="Sat, 16 Feb 2013 20:17:36 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 11 Nov 2012 15:36:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11901" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Category</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11621"><![CDATA[World generation]]></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_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i05v9r:</customfieldvalue>

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