<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:59:27 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-2911] Gamerule commands allow parameters other than true/false</title>
                <link>https://bugs.mojang.com/browse/MC-2911</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;When issuing a gamerule command, for example:&lt;br/&gt;
/gamerule doFireTick on, the game will accept that &quot;on&quot; parameter without throwing any errors.&lt;/p&gt;

&lt;p&gt;This can result into major confusion, since the game will parse anything other than &quot;true&quot; as false.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Expected&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Throw an error for an incorrect paramter&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;What happens&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The game accepts the faulty parameter, yet considers it as false&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;To reproduce&lt;/b&gt;&lt;br/&gt;
1. Change a gamerule to anything other than &quot;true/false&quot;&lt;br/&gt;
2. Check the gamerule, it will say the exact parameter that was entered&lt;br/&gt;
3. Notice that it will be considered as false&lt;/p&gt;</description>
                <environment>N/A</environment>
        <key id="14780">MC-2911</key>
            <summary>Gamerule commands allow parameters other than true/false</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="searge">[Mojang] Searge (Michael Stoyke)</assignee>
                                    <reporter username="mustek">Mustek</reporter>
                        <labels>
                    </labels>
                <created>Tue, 13 Nov 2012 12:35:19 +0100</created>
                <updated>Wed, 6 Aug 2014 22:04:02 +0200</updated>
                            <resolved>Thu, 31 Jul 2014 15:07:24 +0200</resolved>
                                    <version>Minecraft 1.4.4</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w06a</version>
                    <version>Minecraft 1.5</version>
                    <version>Snapshot 13w11a</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w03b</version>
                    <version>Minecraft 14w04b</version>
                    <version>Minecraft 1.7.9</version>
                    <version>Minecraft 14w17a</version>
                    <version>Minecraft 14w18b</version>
                    <version>Minecraft 1.7.10</version>
                    <version>Minecraft 14w28a</version>
                    <version>Minecraft 14w28b</version>
                                    <fixVersion>Minecraft 14w32a</fixVersion>
                                                        <votes>8</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="185278" author="hun_norberto" created="Wed, 6 Aug 2014 22:04:02 +0200"  >&lt;p&gt;Hey, I liked that &quot;feature&quot; and it&apos;s now fixed... &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;br/&gt;
&lt;tt&gt;/gamerule mobGriefing nope&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="183946" author="shawntriangles" created="Sat, 2 Aug 2014 21:57:12 +0200"  >&lt;p&gt;Nice, but when creating a gamerule/scoreboard objective I always put the first word lowercase and the rest capital for example &lt;tt&gt;/gamerule spongesAreAmazing true&lt;/tt&gt;. BTW related to &lt;a href=&quot;https://bugs.mojang.com/browse/MC-65113&quot; title=&quot;You can make your own gamerules&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-65113&quot;&gt;&lt;del&gt;MC-65113&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="173696" author="marcono1234" created="Sat, 12 Jul 2014 18:36:09 +0200"  >&lt;p&gt;Confirmed for 14w28b&lt;/p&gt;</comment>
                            <comment id="156404" author="garyclosse" created="Thu, 8 May 2014 11:53:01 +0200"  >&lt;p&gt;Confirmed for 14w18b.&lt;/p&gt;</comment>
                            <comment id="153556" author="themeaningofblah" created="Tue, 29 Apr 2014 11:14:35 +0200"  >&lt;p&gt;NOT intended. This is about parameters, not value.&lt;/p&gt;</comment>
                            <comment id="135991" author="kumasasa" created="Tue, 28 Jan 2014 22:01:24 +0100"  >&lt;p&gt;&lt;b&gt;Anything&lt;/b&gt; except &lt;tt&gt;true&lt;/tt&gt; is false, thus &lt;tt&gt;/gamerule doTileDrops IDoNotWantMyTilesToDrop&lt;/tt&gt; will work too...&lt;/p&gt;</comment>
                            <comment id="135987" author="jar_" created="Tue, 28 Jan 2014 21:47:15 +0100"  >&lt;p&gt;Also note that &lt;tt&gt;/gamerule doTileDrops 0&lt;/tt&gt; works (0 = false) while &lt;tt&gt;/gamerule doTileDrops 1&lt;/tt&gt; doesn&apos;t do anything.&lt;/p&gt;</comment>
                            <comment id="106443" author="cubethethird" created="Thu, 26 Sep 2013 06:33:45 +0200"  >&lt;p&gt;Is this still a concern in the &lt;em&gt;current Minecraft version&lt;/em&gt; &lt;b&gt;1.6.4&lt;/b&gt; / Launcher version &lt;b&gt;1.2.5&lt;/b&gt; ? 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="58872" author="kumasasa" created="Thu, 4 Apr 2013 22:47:51 +0200"  >&lt;p&gt;The gamerules are parsed with &lt;tt&gt;parseBoolean&lt;/tt&gt;, the only recognized keyword is &quot;true&quot; (in any case):&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&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;boolean&lt;/span&gt; parseBoolean(&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; s)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;Parses the string argument as a boolean. The boolean returned represents the value true if the string argument is not null and is equal, ignoring case, to the string &quot;true&quot;. &lt;br/&gt;
Example: Boolean.parseBoolean(&quot;True&quot;) returns true.&lt;br/&gt;
Example: Boolean.parseBoolean(&quot;yes&quot;) returns false.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="51786" author="ashadi" created="Mon, 11 Mar 2013 15:31:51 +0100"  >&lt;p&gt;also affects pre 1.5  it only accepts the word &quot;TRUE&quot; lower or uppercase mix up doesn&apos;t matter, but the only way to turn it on &lt;del&gt;the word &apos;on&apos; is wrong&lt;/del&gt; is the word &quot;true&quot; any other value it will be accepted and be turned false &lt;del&gt;off&lt;/del&gt; but will show the value introduced, works on single and multi player.&lt;/p&gt;

&lt;p&gt;tried on a flat world, changing to any difficulty, and died on purpose several times wither fall damage or killed by zombies.&lt;/p&gt;

&lt;p&gt;way to reproduce and easy to be misleaded into&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;type /gamerule keepInventory&lt;/li&gt;
	&lt;li&gt;shows keepInventory off&lt;br/&gt;
--&amp;gt;this part i thought i could write &apos;on&apos; due to the game telling me it was &apos;off&apos;&lt;/li&gt;
	&lt;li&gt;type /gamerule keepInventory on&lt;/li&gt;
	&lt;li&gt;shows keepInventory on&lt;br/&gt;
--&amp;gt;didn&apos;t knew the value is still off, seems &apos;on&apos; and &apos;off&apos; are just display info not a real value&lt;/li&gt;
	&lt;li&gt;die in anyway&lt;/li&gt;
	&lt;li&gt;inventory droped&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;worked on win7, lastest java and preMc release at the time of the post, i found out in multiplayer while deep underground killed by cavespiders  x.x  R.I.P. our loot&lt;/p&gt;</comment>
                            <comment id="21233" author="mustek" created="Tue, 13 Nov 2012 12:36:21 +0100"  >&lt;p&gt;See issue &lt;a href=&quot;https://bugs.mojang.com/browse/MC-2887&quot; title=&quot;Fire doesn&amp;#39;t spread :(&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-2887&quot;&gt;&lt;del&gt;MC-2887&lt;/del&gt;&lt;/a&gt; for an example of confusion that this issue causes.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Bonfire Testing</name>
                                                                <inwardlinks description="discovered while testing">
                                        <issuelink>
            <issuekey id="14753">MC-2887</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="56505">MC-34802</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="75508">MC-49720</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="80198">MC-53934</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="91928">MC-64483</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 8 Feb 2013 04:08: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_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i05vsf:</customfieldvalue>

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