<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:59:07 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-2807] Superflat spawnpoints can be thousands of blocks away from centre of world</title>
                <link>https://bugs.mojang.com/browse/MC-2807</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;When creating a new superflat world, that world&apos;s spawnpoint can be over 1000 blocks away from the centre of the world.&lt;/p&gt;

&lt;p&gt;Not that it matters very much, but that seems to be inconsistant with default world spawnpoints, which never seem to be more than 400 blocks away in each axis.&lt;/p&gt;

&lt;p&gt;Anyway, it would be nice if superflat world spawnpoints were always at (0,0,0) seeing as they are generated the same everywere, if just for pureness&apos; sake.&lt;/p&gt;</description>
                <environment>Windows 7&lt;br/&gt;
Java 1.7.0_07</environment>
        <key id="14587">MC-2807</key>
            <summary>Superflat spawnpoints can be thousands of blocks away from centre of world</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="majaha">majaha</reporter>
                        <labels>
                    </labels>
                <created>Sun, 11 Nov 2012 19:34:13 +0100</created>
                <updated>Sat, 9 Aug 2014 17:35:14 +0200</updated>
                            <resolved>Mon, 21 Oct 2013 13:49:01 +0200</resolved>
                                    <version>Minecraft 1.4.2</version>
                    <version>Minecraft 1.4.6</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w06a</version>
                    <version>Snapshot 13w09a</version>
                    <version>Snapshot 13w09b</version>
                    <version>Snapshot 13w09c</version>
                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.6.4</version>
                                                                        <votes>4</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="107954" author="bugi74" created="Mon, 30 Sep 2013 17:41:11 +0200"  >&lt;p&gt;Affects 1.6.4.&lt;/p&gt;</comment>
                            <comment id="56706" author="majaha" created="Sat, 23 Mar 2013 21:53:39 +0100"  >&lt;p&gt;This still affects 1.5.1&lt;/p&gt;</comment>
                            <comment id="49003" author="bugi74" created="Sat, 2 Mar 2013 13:17:17 +0100"  >&lt;p&gt;Affects 13w09c.&lt;/p&gt;</comment>
                            <comment id="49001" author="bugi74" created="Sat, 2 Mar 2013 13:16:18 +0100"  >&lt;p&gt;&lt;b&gt;Fix&lt;/b&gt;&lt;br/&gt;
Couldn&apos;t get it exactly 0,some,0, but within chunk distance of that. No point in doing 1000 tries when it indeed does not make a real difference.&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;WorldServer.createSpawnPosition()&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-comment&quot;&gt;// CHANGED TO REMOVE THE &lt;span class=&quot;code-quote&quot;&gt;&apos;ELSE&apos;&lt;/span&gt;
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.provider.canRespawnHere()) {
            &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.worldInfo.setSpawnPosition(0, &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.provider.getAverageGroundLevel(), 0);
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt;;
        }

        &lt;span class=&quot;code-comment&quot;&gt;// THE FIX:
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (worldSettings.getTerrainType() == WorldType.FLAT) {
            &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.findingSpawnPoint = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
            &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; y = &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.provider.getAverageGroundLevel();
            &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.worldInfo.setSpawnPosition(0, y, 0);
            &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.findingSpawnPoint = &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
            &lt;span class=&quot;code-comment&quot;&gt;// OLD CODE IN THIS &lt;span class=&quot;code-quote&quot;&gt;&apos;ELSE&apos;&lt;/span&gt;
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.findingSpawnPoint = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
            ...
        }
        &lt;span class=&quot;code-comment&quot;&gt;// AND ALSO OLD CODE
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (worldSettings.isBonusChestEnabled()) {
            &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.createBonusChest();
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="43699" author="bugi74" created="Tue, 5 Feb 2013 10:38:11 +0100"  >&lt;p&gt;The spawnpoint can be also in normal worlds more than 1000 blocks away. It just needs to start in a world with large ocean around 0,0,0, which is quite rare though.&lt;/p&gt;

&lt;p&gt;But, yeah, would be nice to change the spawnpoint decision process just enough to notice superflat and skip the searching of suitable location in that case.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 5 Feb 2013 04:19:00 +0100</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_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i064l3:</customfieldvalue>

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