<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:19:31 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-8966] /clear &lt;player&gt; &lt;item id&gt; Not functioning as expected</title>
                <link>https://bugs.mojang.com/browse/MC-8966</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;When attaching a comparator to a command block which has the command &quot;/clear &amp;lt;player&amp;gt; &amp;lt;item id&amp;gt;&quot;, the comparator will return true, even if the item in question is not removed from the players inventory.&lt;/p&gt;

&lt;p&gt;I expected it to not output a redstone signal at all if there were no items removed. However it appears that the only way for that to happen is for that player to not exist on the server&lt;/p&gt;</description>
                <environment></environment>
        <key id="22342">MC-8966</key>
            <summary>/clear &lt;player&gt; &lt;item id&gt; Not functioning as expected</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="-1">Unassigned</assignee>
                                    <reporter username="bludragon">Tristan Abshire</reporter>
                        <labels>
                            <label>command</label>
                            <label>command_block</label>
                            <label>redstone</label>
                    </labels>
                <created>Fri, 1 Feb 2013 23:06:17 +0100</created>
                <updated>Fri, 29 Dec 2017 23:13:25 +0100</updated>
                            <resolved>Fri, 5 Apr 2013 18:10:54 +0200</resolved>
                                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w04a</version>
                    <version>Snapshot 13w05a</version>
                    <version>Snapshot 13w05b</version>
                                    <fixVersion>Minecraft 1.5</fixVersion>
                                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="58965" author="bljat" created="Fri, 5 Apr 2013 18:10:47 +0200"  >&lt;p&gt;You&apos;re right it has been fixed like originaly requested. Thanks for pointing that out.&lt;/p&gt;</comment>
                            <comment id="58959" author="zedarean" created="Fri, 5 Apr 2013 17:54:22 +0200"  >&lt;p&gt;It seems they no longer function this way, but rather the way you had originally thought it should. I&apos;ve done tests with this, and it only outputs a signal if the item is cleared. This is why I opened a separate issue; the enchant command outputs a signal if no item is enchanted. Why is inconsistant command block behavior not considered a bug? This issue has been resolved, and works just like the original poster thought it should. My issue has not been resolved, and thus should not have been flagged as a duplicate, unless there is some command block behavior I&apos;m simply not understanding. &lt;/p&gt;</comment>
                            <comment id="43514" author="cubethethird" created="Mon, 4 Feb 2013 20:47:24 +0100"  >&lt;p&gt;Seems I was partially mistaken. Any command successfully executed will output a signal. If the command was /testfor, the signal strength will be based on the number of players it found. The command /clear therefore works as intended.&lt;/p&gt;</comment>
                            <comment id="42615" author="bludragon" created="Sat, 2 Feb 2013 01:50:52 +0100"  >&lt;p&gt;It should then only output the number of players it does change then, shouldn&apos;t it?&lt;/p&gt;

&lt;p&gt;I mean, personally, here&apos;s how I think the scenario would go around if it were actual people.&lt;br/&gt;
You got 5 people, 3 of whom have various amounts of apples.&lt;br/&gt;
The admin says, &quot;I&apos;m going to take everyone&apos;s apples&quot; and proceeds to do so.&lt;br/&gt;
He takes apples from the three who have them, therefore succeeding.&lt;br/&gt;
He cannot take apples from the other two, because they do not have any, therefore a fail.&lt;/p&gt;</comment>
                            <comment id="42560" author="cubethethird" created="Fri, 1 Feb 2013 23:27:24 +0100"  >&lt;p&gt;The signal strength is based on the number of players on which the command is used, regardless if the command makes any changes.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="20989">MC-8120</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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03jvz:</customfieldvalue>

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