<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:20:14 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-9185] the /list command in a command block does not output a signal the size of the number of players online</title>
                <link>https://bugs.mojang.com/browse/MC-9185</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;I was trying to figure a way out to test for the number of players on the server and compare it to a dummy number.  I would subtract the two and if everyone&apos;s ruReady dummy objective was set to 2 then doors would open.  I was using &quot;scoreboard players list&quot; to get the number of players.  However, that list outputs the number of people on the scoreboard and the scoreboard doesn&apos;t update when someone leaves the game.  So for instance if I had 4 players and we all were ready (had ruReady set to 1) then the doors would open, but if that person left before they were ready then the doors would never open even though all the players online are ready because that one last person had not hit the button to be ready.  So I thought about using /list instead of /scoreboard players list.  List gives only the players online.  However list only outputs one block of signal no matter how many people are on. &lt;/p&gt;</description>
                <environment>any</environment>
        <key id="22729">MC-9185</key>
            <summary>the /list command in a command block does not output a signal the size of the number of players online</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="asharwood">Andrew Harwood</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Feb 2013 19:03:50 +0100</created>
                <updated>Mon, 4 Feb 2013 22:00:48 +0100</updated>
                            <resolved>Mon, 4 Feb 2013 21:04:23 +0100</resolved>
                                    <version>Snapshot 13w05b</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="43532" author="asharwood" created="Mon, 4 Feb 2013 22:00:22 +0100"  >&lt;p&gt;oh thanks for that&lt;/p&gt;

&lt;p&gt;testing...&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;testfor @a[c]&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="43519" author="kumasasa" created="Mon, 4 Feb 2013 21:08:29 +0100"  >&lt;p&gt;Tipp: If you want to write brackets, embed it with {code}&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;testfor @a[c]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="43518" author="kumasasa" created="Mon, 4 Feb 2013 21:04:23 +0100"  >&lt;p&gt;Reseolved.&lt;/p&gt;</comment>
                            <comment id="43516" author="asharwood" created="Mon, 4 Feb 2013 20:58:00 +0100"  >&lt;p&gt;crap this system gets rid of brackets.  it should be &quot;testfor @a[&lt;span class=&quot;error&quot;&gt;&amp;#91;c&amp;#93;&lt;/span&gt;]&quot;&lt;/p&gt;</comment>
                            <comment id="43515" author="howzieky" created="Mon, 4 Feb 2013 20:54:49 +0100"  >&lt;p&gt;Hey what do you mean &quot;testfor @ac&quot;? I get everything BUT the &apos;c&apos;&lt;/p&gt;</comment>
                            <comment id="43512" author="asharwood" created="Mon, 4 Feb 2013 20:32:58 +0100"  >&lt;p&gt;I can&apos;t resolve it and can&apos;t remove it.  I will let a mod get rid of it. &lt;/p&gt;</comment>
                            <comment id="43510" author="asharwood" created="Mon, 4 Feb 2013 20:31:46 +0100"  >&lt;p&gt;Oh man you are right.  I am so very sorry to waste time...i didn&apos;t see the &quot;testfor @a&lt;span class=&quot;error&quot;&gt;&amp;#91;c&amp;#93;&lt;/span&gt;&quot; command.  Thanks for this.  I will resolve this bug. &lt;/p&gt;</comment>
                            <comment id="43508" author="kumasasa" created="Mon, 4 Feb 2013 20:26:05 +0100"  >&lt;p&gt;Is the comparator supposed to send a signal proportinoal with the number of players ?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.minecraftwiki.net/wiki/Redstone_Comparator&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.minecraftwiki.net/wiki/Redstone_Comparator&lt;/a&gt; says&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Comparators fed by command blocks will now indicate whether the last run command was run successfully&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Comparators can be used to get an analog redstone signal indicating the amount of found players by using the new /testfor command.&lt;/p&gt;&lt;/blockquote&gt;
</comment>
                    </comments>
                    <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_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0jjp3:</customfieldvalue>

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