<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:52:34 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-888] /difficulty command doesn&apos;t change the default difficulty in the ESC menu (singleplayer)</title>
                <link>https://bugs.mojang.com/browse/MC-888</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;I&apos;m not 100% sure whether this is a bug or a feature.&lt;/p&gt;

&lt;p&gt;Expectation:&lt;br/&gt;
Typing /difficulty &amp;lt;0|1|2|3&amp;gt; into the command line with the allowCommands NBT tag set to 1 or having spawned a world with cheats enabled to change the default difficulty for the save, not just the runtime difficulty&lt;/p&gt;

&lt;p&gt;Occurrence:&lt;br/&gt;
With the NBT tag allowCommands set to 1, or after spawning a world with cheats enabled, typing /difficulty &amp;lt;0|1|2|3&amp;gt; into the chatbox (command line) does not change the difficulty set by the setting in the ESC menu.  The environment correctly reflects the change (mobs despawning when set to 0), but after changing the difficulty and reloading the world the difficulty set by the ESC menu takes precedence over that previously set.&lt;/p&gt;</description>
                <environment>Windows 7, Java 1.7.0_09</environment>
        <key id="12173">MC-888</key>
            <summary>/difficulty command doesn&apos;t change the default difficulty in the ESC menu (singleplayer)</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="dotzo">Jeremy Dreyer</reporter>
                        <labels>
                    </labels>
                <created>Sat, 27 Oct 2012 16:09:49 +0200</created>
                <updated>Sun, 30 Apr 2017 15:40:24 +0200</updated>
                            <resolved>Wed, 5 Feb 2014 22:39:33 +0100</resolved>
                                    <version>Minecraft 1.4.2</version>
                                    <fixVersion>Minecraft 14w04a</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="100720" author="jespertheend" created="Tue, 3 Sep 2013 14:47:20 +0200"  >&lt;p&gt;No I meant adding that feature, though I agree that your way of fixing this is better.&lt;/p&gt;</comment>
                            <comment id="100714" author="qmagnet" created="Tue, 3 Sep 2013 13:28:35 +0200"  >&lt;p&gt;You can&apos;t prevent a hostile from despawning with a tag,  This needs to be fixed.&lt;/p&gt;</comment>
                            <comment id="100691" author="jespertheend" created="Tue, 3 Sep 2013 09:38:18 +0200"  >&lt;p&gt;you can use a clock that keeps setting the difficulty to the one you want. That way it isn&apos;t a problem anymore on peaceful, on easy/normal/hard however it is still an issue. If you have a boss mob that spawns only once and you set the gamemode to peaceful accidentally it&apos;s gone. Maybe add an NBT tag to mobs that prevents them from despawning in peaceful. Or use persistence required&lt;/p&gt;</comment>
                            <comment id="100684" author="qmagnet" created="Tue, 3 Sep 2013 01:58:27 +0200"  >&lt;p&gt;When playing on single player, go into the Options screen and set your difficulty to &quot;Peaceful&quot;. Next, change difficulty via game commands to &quot;hard&quot; (type /difficulty h or command block). Game will be set to hard and spawn a hostile mob for example. However, if you simply view the Options screen again, the game will auto update difficulty. Hostile mobs disappear.&lt;/p&gt;

&lt;p&gt;This is a huge issue with Custom Maps for 2 reasons. If the player simply views the Options screen to go into video settings or something, their difficulty gets updated and can either remove all hostile mobs, or if the command difficulty is has been to peaceful, and the player has difficulty preset to Easy/Normal/Hard, hunger is now an issue.&lt;/p&gt;

&lt;p&gt;I&apos;m not asking to update the menu with commands, I&apos;m asking to only change difficulty if the player actually physically presses the Difficulty button.&lt;/p&gt;</comment>
                            <comment id="45305" author="sg2000" created="Mon, 11 Feb 2013 19:32:21 +0100"  >&lt;p&gt;DAMMIT&lt;/p&gt;

&lt;p&gt;This can&apos;t be intended!&lt;/p&gt;</comment>
                            <comment id="45297" author="jespertheend" created="Mon, 11 Feb 2013 18:25:16 +0100"  >&lt;p&gt;Too bad, It would&apos;ve been a nice feature for mapmakers. oh well...&lt;/p&gt;</comment>
                            <comment id="45290" author="sg2000" created="Mon, 11 Feb 2013 17:41:40 +0100"  >&lt;p&gt;If this works as intended, then it&apos;s just stupid because normally after reloading the map everything should be exactly like it was before you left it. Including difficulty.&lt;/p&gt;</comment>
                            <comment id="19417" author="jespertheend" created="Thu, 8 Nov 2012 10:34:13 +0100"  >&lt;p&gt;Not sure if it already happens, but I think it should change the server.properties too.&lt;/p&gt;</comment>
                            <comment id="14472" author="selbram" created="Sat, 27 Oct 2012 20:12:43 +0200"  >&lt;p&gt;This is what it is suppose to do in single player.&lt;/p&gt;</comment>
                            <comment id="14414" author="tristan1301" created="Sat, 27 Oct 2012 17:13:03 +0200"  >&lt;p&gt;Yeah, that only works as a server command. The /difficulty command doesn&apos;t affect your menu difficulty.&lt;/p&gt;</comment>
                            <comment id="14400" author="dotzo" created="Sat, 27 Oct 2012 16:27:35 +0200"  >&lt;p&gt;Singleplayer&lt;/p&gt;</comment>
                            <comment id="14396" author="tristan1301" created="Sat, 27 Oct 2012 16:14:23 +0200"  >&lt;p&gt;Are trying this on Multi-player or Single-player?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="17981">MC-5378</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="23334">MC-9629</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24855">MC-10875</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="50452">MC-29418</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="53248">MC-31942</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="54655">MC-33203</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="69132">MC-44335</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="69924">MC-44805</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="70270">MC-45055</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="70474">MC-45249</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="80735">MC-54436</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14101">MC-2435</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15311">MC-3320</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="69166">MC-44368</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="107108">MC-78276</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0hnlb:</customfieldvalue>

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