<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:52:59 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-1004] Custom spawners with no delay variance crash the game</title>
                <link>https://bugs.mojang.com/browse/MC-1004</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;I was trying to modify my custom map to have a set delay in spawning entities. Timing is important, so even a 1 tick delay makes a difference. So I modified the spawner to have exactly the same minimum and maximum delay.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;What I expected to happen was&lt;/b&gt; to have a spawner that could spawn using exact timing and would not randomize the amount of time needed to spawn the next entity.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;What actually happened was&lt;/b&gt; the spawner crashed the game because the randomizer could not accept 0 as a difference between values.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to reproduce:&lt;/b&gt;&lt;br/&gt;
1. Place a spawner in Minecraft.&lt;br/&gt;
2. Open MCEdit and use the Change Spawners filter, modify the values of the minimum and maximum delay to the same amount (doesn&apos;t need a specific value). Save the world.&lt;br/&gt;
3. Open the world in Minecraft and go into the detection range of the spawner. You will receive a crash report. (I have included mine as an attachment)&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Temporary Workarounds&lt;/b&gt;&lt;br/&gt;
If the delay difference has a difference even by 1 tick, it will work as intended. However, I need my map to spawn the entities at that exact rate, or it will not work. Thus this workaround is useless for me.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Possible fixes&lt;/b&gt;&lt;br/&gt;
Use an if-else statement to check if the delay difference is 0, and if so, skip the randomizer and use that delay instead.&lt;/p&gt;</description>
                <environment>Windows 7 64 bit, JRE 7 1.7.0_07 64 bit.</environment>
        <key id="12303">MC-1004</key>
            <summary>Custom spawners with no delay variance crash the game</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="1">Fixed</resolution>
                                        <assignee username="dinnerbone">[Mojang] Nathan Adams</assignee>
                                    <reporter username="grygrflzr">GrygrFlzr</reporter>
                        <labels>
                            <label>crash</label>
                            <label>delay</label>
                            <label>random</label>
                            <label>spawner</label>
                    </labels>
                <created>Sun, 28 Oct 2012 11:21:25 +0100</created>
                <updated>Wed, 7 Apr 2021 15:12:37 +0200</updated>
                            <resolved>Mon, 29 Oct 2012 13:06:12 +0100</resolved>
                                    <version>Minecraft 1.4.2</version>
                                    <fixVersion>Minecraft 1.4.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="16927" author="zombygeek" created="Fri, 2 Nov 2012 03:01:21 +0100"  >&lt;p&gt;Sorry about that. I wasn&apos;t aware. I saw MCEdit and assumed it wasn&apos;t vinilla. Sorry.&lt;/p&gt;</comment>
                            <comment id="16921" author="immibis" created="Fri, 2 Nov 2012 02:54:51 +0100"  >&lt;p&gt;The ability to set these properties on spawners was a deliberate feature in 1.4.&lt;/p&gt;

&lt;p&gt;If a feature doesn&apos;t work as intended, that&apos;s a bug.&lt;/p&gt;</comment>
                            <comment id="16914" author="zombygeek" created="Fri, 2 Nov 2012 02:42:02 +0100"  >&lt;p&gt;I&apos;m pretty sure since this can&apos;t be created in vinilla minecraft only, it&apos;s not considered a bug here. Sorry.&lt;/p&gt;</comment>
                            <comment id="16908" author="immibis" created="Fri, 2 Nov 2012 02:38:03 +0100"  >&lt;p&gt;It seems the max spawn delay is actually 1 tick lower than what you set it to in 1.4.2, so if you set the maximum to the minimum + 1, there will be no variance.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="11243" name="crash-2012-10-28_18.06.42-server.txt" size="1390" author="grygrflzr" created="Sun, 28 Oct 2012 11:21:25 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></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|i01pdb:</customfieldvalue>

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