<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:02:55 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-3945] /gamemode does not work as expected with command blocks.</title>
                <link>https://bugs.mojang.com/browse/MC-3945</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;I am building a survival map, but I want to make a small part of the map strictly adventure mode. I have several command blocks hooked up to a 2-repeater pulsar, and once the chunk is loaded, all but two of these command blocks work fine. The two that do not work have the commands listed below:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;/gamemode @a[m=0,r=2000] 2

/gamemode @a[m=1,r=2000] 2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I expected these to make it impossible for any player to be in a game mode other than Adventure.&lt;/p&gt;

&lt;p&gt;Nothing actually happened. I have tried replacing the @a with @p, and it still does not work. I need to have a range on the command blocks so that when the chunk that they are in is loaded the do not change all player&apos;s game modes to Adventure.&lt;/p&gt;

&lt;p&gt;The command blocks are directly powered by repeaters, so power should not be a problem&lt;/p&gt;</description>
                <environment>Windows 7, Java 7</environment>
        <key id="16212">MC-3945</key>
            <summary>/gamemode does not work as expected with command blocks.</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="pinaz9">Patrick Shannon</reporter>
                        <labels>
                            <label>/gamemode</label>
                            <label>command</label>
                    </labels>
                <created>Wed, 28 Nov 2012 23:04:42 +0100</created>
                <updated>Sun, 10 Feb 2013 02:17:07 +0100</updated>
                            <resolved>Wed, 28 Nov 2012 23:45:53 +0100</resolved>
                                    <version>Minecraft 1.4.4</version>
                    <version>Minecraft 1.4.5</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="26158" author="pinaz9" created="Sun, 2 Dec 2012 02:08:17 +0100"  >&lt;p&gt;You&apos;re right. The English page has nothing on the German Page. I might just have to copy the translated page to the wiki and correct a few translation errors.&lt;/p&gt;</comment>
                            <comment id="26152" author="pinaz9" created="Sun, 2 Dec 2012 01:30:24 +0100"  >&lt;p&gt;I could fix that, given the right information.&lt;/p&gt;</comment>
                            <comment id="25980" author="kumasasa" created="Sat, 1 Dec 2012 02:40:54 +0100"  >&lt;p&gt;Well, the &lt;a href=&quot;http://de.minecraftwiki.net/wiki/Befehle&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;German wiki page&lt;/a&gt; is quite well-structured, whereas the &lt;a href=&quot;http://www.minecraftwiki.net/wiki/SMP_Server_commands&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;English counterpart&lt;/a&gt; is somewhat unclear und the relation to the commandblock is not well given...&lt;/p&gt;</comment>
                            <comment id="25976" author="pinaz9" created="Sat, 1 Dec 2012 02:31:53 +0100"  >&lt;p&gt;I got it working now. Thanks for the help. &lt;/p&gt;

&lt;p&gt;For the record (and the wiki), can you list the commands that work for command blocks, as well as the syntax?&lt;/p&gt;</comment>
                            <comment id="25699" author="pinaz9" created="Thu, 29 Nov 2012 16:35:35 +0100"  >&lt;p&gt;Ima herp derp.&lt;br/&gt;
 (&apos; )(,)&lt;br/&gt;
 -------&lt;/p&gt;

&lt;p&gt;I guess I just read the ducumentation wrong. Or maybe the wiki told me wrong.&lt;/p&gt;</comment>
                            <comment id="25594" author="kumasasa" created="Wed, 28 Nov 2012 23:45:53 +0100"  >&lt;p&gt;Your parameters are swapped.&lt;/p&gt;

&lt;p&gt;The syntax is either &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;gamemode &amp;lt;survival | creative | adventure&amp;gt; [playername]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;or&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;gamemode &amp;lt;0 | 1 | 2&amp;gt; [playername]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;not&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;gamemode &amp;lt;playername&amp;gt; &amp;lt;0 | 1 | 2&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="25591" author="bljat" created="Wed, 28 Nov 2012 23:43:14 +0100"  >&lt;p&gt;The correct command for changing gamemode is: /gamemode &quot;gamemode&quot; &quot;target&quot;&lt;span class=&quot;error&quot;&gt;&amp;#91;argument&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="17580">MC-5020</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_10501" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Game Mode</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10305"><![CDATA[Creative]]></customfieldvalue>

                        </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|i01173:</customfieldvalue>

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