<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:19:53 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-9074] Command selector syntax does not recognize decimals</title>
                <link>https://bugs.mojang.com/browse/MC-9074</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;(THIS HAS BEEN RESOLVED)&lt;br/&gt;
Searge: &quot;Decimals are not recognized, the selector parameters are all integers. But it should now consistently fail instead of creating a player on the scoreboard with the selector as name.&quot;&lt;/p&gt;

&lt;p&gt;Using decimals in the arguments for a player causes the command to fail. It appears that the player arguments are registered as the name of a player or it gives an error stating that &quot;The entity UUID provided is in a invalid format&quot;. This is present in both Singleplayer and Multiplayer.&lt;/p&gt;

&lt;p&gt;Doing /tp @a&lt;span class=&quot;error&quot;&gt;&amp;#91;ry=95.0,rym=85.0&amp;#93;&lt;/span&gt; ~0 ~10 ~0 should teleport any player looking in that direction. It instead says &quot;The entity UUID provided is in an invalid format&quot; without moving the player. If the command were to be /tp @a&lt;span class=&quot;error&quot;&gt;&amp;#91;ry=95,rym=85&amp;#93;&lt;/span&gt; ~0 ~10 ~0 , no error appears and the player is teleported if looking in the specified direction. (Notice the only difference is adding decimals to specify the exact direction)&lt;/p&gt;

&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;1. &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-xml&quot;&gt;/tp @p ~0 ~0 ~0 90 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;2. &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-xml&quot;&gt;/testfor @p[ry=95,rym=85]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; (Should say &quot;Found &lt;span class=&quot;error&quot;&gt;&amp;#91;Your username here&amp;#93;&lt;/span&gt;&quot;)&lt;/p&gt;

&lt;p&gt;3. &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-xml&quot;&gt;/testfor @p[ry=95.0,rym=85.0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; (Should say &quot;The entity UUID provided is in an invalid format&quot;)&lt;/p&gt;


&lt;p&gt;This also applies to giving coordinates with decimals.  If you would like to reproduce the issue using coordinates instead of rotational values, here are the commands:&lt;/p&gt;

&lt;p&gt;1. &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-xml&quot;&gt;/tp @p 0 1 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;2. &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-xml&quot;&gt;/testfor @p[0,1,0,r=1]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;3. &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-xml&quot;&gt;/testfor @p[0.0,1.0,0.0,r=1]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;In the examples I&apos;m using easy numbers for the sake of simplicity, but a real-minecraftian-world command that needs this kind of usage looks more like this:&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-xml&quot;&gt;/scoreboard players set @a[-34,21,128,r=10,rym=-122.2,ry=-119.1] hBlock 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The attached image shows the result of using this command.&lt;/p&gt;


&lt;p&gt;When using scoreboards, a player is created with the name &quot;@a&lt;span class=&quot;error&quot;&gt;&amp;#91;-34,21,128,r=10,rym=-122.2,ry=-119.1&amp;#93;&lt;/span&gt;&quot; instead of giving a score of 1 to players who are facing in that direction. If you wish to reproduce this, here are the commands:&lt;/p&gt;

&lt;p&gt;1. &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-xml&quot;&gt;/scoreboard objectives add test dummy Test
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;2. &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-xml&quot;&gt;/scoreboard objectives setdisplay sidebar test
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;3. &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-xml&quot;&gt;/scoreboard players set @p[r=5] test 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; (Should display your username on the sidebar with a &apos;test&apos; score of 1.&lt;br/&gt;
4. &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-xml&quot;&gt;/scoreboard players set @p[r=5.0] test 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; (Instead of finding the player, it creates a player with the name &quot;@p&lt;span class=&quot;error&quot;&gt;&amp;#91;r=5.0&amp;#93;&lt;/span&gt;&quot;)&lt;/p&gt;

&lt;p&gt;As the last author of this bug brings up a good point, I&apos;m going to keep their original post here:&lt;/p&gt;

&lt;p&gt;As the title states, when using a command such as /testfor, you cannot enter the command with decimals in the arguments.&lt;/p&gt;

&lt;p&gt;Example:&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-xml&quot;&gt;testfor @p[10.0,64,0.0,5]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem is how the game interprets the command when no decimals are used.&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-xml&quot;&gt;testfor @p[10,64,0,5]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In this example, the game actually looks at x=10.5 and z=0.5, and you cannot center your check point from there.&lt;/p&gt;

&lt;p&gt;With how it is now, all points need to be a circle with an odd width, instead of even.&lt;/p&gt;</description>
                <environment>Windows 7; Java Version 7 Update 65&lt;br/&gt;
Windows 10 Technical Preview Build 9879; Java Version 8 Update 25</environment>
        <key id="22534">MC-9074</key>
            <summary>Command selector syntax does not recognize decimals</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="jaruca">Jar Uca</reporter>
                        <labels>
                    </labels>
                <created>Sat, 2 Feb 2013 23:49:43 +0100</created>
                <updated>Thu, 11 Aug 2016 23:51:37 +0200</updated>
                            <resolved>Wed, 25 Nov 2015 14:34:45 +0100</resolved>
                                    <version>Snapshot 13w05b</version>
                    <version>Minecraft 1.6</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 1.8</version>
                    <version>Minecraft 1.8.1</version>
                    <version>Minecraft 15w40b</version>
                                    <fixVersion>Minecraft 15w49a</fixVersion>
                                                        <votes>7</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="286306" author="marcono1234" created="Tue, 16 Feb 2016 18:35:43 +0100"  >&lt;p&gt;Please add &lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=searge&quot; class=&quot;user-hover&quot; rel=&quot;searge&quot;&gt;searge&lt;/a&gt;&apos;s &lt;a href=&quot;https://bugs.mojang.com/browse/MC-9074?focusedCommentId=268132&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-268132&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;comment about the fix&lt;/a&gt; to the description&lt;/p&gt;</comment>
                            <comment id="272524" author="JIRAUSER71590" created="Tue, 15 Dec 2015 22:22:37 +0100"  >&lt;p&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=TheMagnificent42&quot; class=&quot;user-hover&quot; rel=&quot;TheMagnificent42&quot;&gt;TheMagnificent42&lt;/a&gt; read the comment above yours, this is intended how it now behaves. they won&apos;t be recognised, but they will not create a fake player, instead just make the command fail&lt;/p&gt;</comment>
                            <comment id="272522" author="themagnificent42" created="Tue, 15 Dec 2015 21:54:18 +0100"  >&lt;p&gt;Same thing happens with &lt;span class=&quot;error&quot;&gt;&amp;#91;r=x.x&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="268132" author="searge" created="Wed, 25 Nov 2015 14:34:45 +0100"  >&lt;p&gt;Decimals are not recognized, the selector parameters are all integers. But it should now consistently fail instead of creating a player on the scoreboard with the selector as name.&lt;/p&gt;</comment>
                            <comment id="253215" author="neko" created="Sun, 4 Oct 2015 04:11:51 +0200"  >&lt;p&gt;Confirmed for 15w40b.&lt;/p&gt;</comment>
                            <comment id="228530" author="marcono1234" created="Tue, 26 May 2015 14:11:31 +0200"  >&lt;p&gt;The problem seems to be rather that the selectors only accept integers as numbers and then compare the integer value of the entity with the integer in the selector, see also: &lt;a href=&quot;https://bugs.mojang.com/browse/MC-80173&quot; title=&quot;Player rotation detection missaligned&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-80173&quot;&gt;&lt;del&gt;MC-80173&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="210302" author="jaruca" created="Sun, 30 Nov 2014 02:43:26 +0100"  >&lt;p&gt;Done with the command&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-xml&quot;&gt;/scoreboard players set @a[-34,21,128,r=10,rym=-122.2,ry=-119.1] hBlock 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;As you can see, instead of searching for people using the arguments @a&lt;span class=&quot;error&quot;&gt;&amp;#91;-34,21,128,r=10,rym=-122.2,ry=-119.1&amp;#93;&lt;/span&gt;, Minecraft set it as the name of a player.&lt;/p&gt;</comment>
                            <comment id="168376" author="gamegirlxl" created="Thu, 26 Jun 2014 20:13:20 +0200"  >&lt;p&gt;If you add &quot;f&quot; or &quot;d&quot; to the end of these decimals does that change this (this is from Java, signifying either float or double, which can have decimals)?  Examples: 100.0f, 32.5d&lt;/p&gt;</comment>
                            <comment id="97730" author="torabi" created="Thu, 8 Aug 2013 15:00:06 +0200"  >&lt;p&gt;Additionally, when you put decimals in the command, it just silently fails. There&apos;s no indication why it doesn&apos;t work.&lt;/p&gt;</comment>
                            <comment id="81702" author="cavemaneca" created="Wed, 3 Jul 2013 19:55:04 +0200"  >&lt;p&gt;This is still in the most recent version. (Sorry for the late update)&lt;/p&gt;</comment>
                            <comment id="54926" author="bljat" created="Mon, 18 Mar 2013 03:04:26 +0100"  >&lt;p&gt;Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="102876">MC-74799</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="123045">MC-89808</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="147746">MC-106085</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="109740">MC-80173</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="86159" name="2014-11-27_01.22.29.png" size="10843" author="jaruca" created="Sun, 30 Nov 2014 02:43:26 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 3 Feb 2013 03:21: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_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_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0na3z:</customfieldvalue>

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