<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 07:48: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>[BDS-9536] BDS query.get_equipped_item_name always returns null/empty string</title>
                <link>https://bugs.mojang.com/browse/BDS-9536</link>
                <project id="11700" key="BDS">Bedrock Dedicated Server</project>
                    <description>&lt;p&gt;This code works fine in Windows 10 single-player:&lt;/p&gt;

&lt;p&gt;&#160;&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-quote&quot;&gt;&quot;format_version&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;1.10.0&quot;&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;animation_controllers&quot;&lt;/span&gt;: {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;controller.animation.appletest&quot;&lt;/span&gt;: {
      &lt;span class=&quot;code-quote&quot;&gt;&quot;initial_state&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;,
      &lt;span class=&quot;code-quote&quot;&gt;&quot;states&quot;&lt;/span&gt;: {
        &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;: {
          &lt;span class=&quot;code-quote&quot;&gt;&quot;transitions&quot;&lt;/span&gt;: [
            {
              &lt;span class=&quot;code-quote&quot;&gt;&quot;eating&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;query.is_using_item &amp;amp;&amp;amp; query.get_equipped_item_name(&lt;span class=&quot;code-quote&quot;&gt;&apos;main_hand&apos;&lt;/span&gt;) == &lt;span class=&quot;code-quote&quot;&gt;&apos;apple&apos;&lt;/span&gt; &amp;amp;&amp;amp; query.item_in_use_duration &amp;gt;= 640&quot;&lt;/span&gt;
            }
          ]
        },
        &lt;span class=&quot;code-quote&quot;&gt;&quot;eating&quot;&lt;/span&gt;: {
          &lt;span class=&quot;code-quote&quot;&gt;&quot;on_entry&quot;&lt;/span&gt;: [
            &lt;span class=&quot;code-quote&quot;&gt;&quot;/say i&apos;ve eaten an apple!&quot;&lt;/span&gt;
          ],
          &lt;span class=&quot;code-quote&quot;&gt;&quot;transitions&quot;&lt;/span&gt;: [
            {
              &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;!query.is_using_item || query.item_in_use_duration &amp;lt; 640 || query.get_equipped_item_name(&lt;span class=&quot;code-quote&quot;&gt;&apos;main_hand&apos;&lt;/span&gt;) != &lt;span class=&quot;code-quote&quot;&gt;&apos;apple&apos;&lt;/span&gt;&quot;&lt;/span&gt;
            }
          ]
        }
      }
    }
  }
}

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The exact same code is completely broken in BDS 1.16.20.03. Any custom items that require the &lt;b&gt;get_equipped_item_name&lt;/b&gt; query no longer work due to it always returning a blank string.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I also tried the most basic test in a custom animation controller:&lt;/p&gt;

&lt;p&gt;&#160;&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-quote&quot;&gt;&quot;format_version&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;1.10.0&quot;&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;animation_controllers&quot;&lt;/span&gt;: {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;controller.animation.appletest&quot;&lt;/span&gt;: {
      &lt;span class=&quot;code-quote&quot;&gt;&quot;initial_state&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;,
      &lt;span class=&quot;code-quote&quot;&gt;&quot;states&quot;&lt;/span&gt;: {
        &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;: {
          &lt;span class=&quot;code-quote&quot;&gt;&quot;transitions&quot;&lt;/span&gt;: [
            {
              &lt;span class=&quot;code-quote&quot;&gt;&quot;eating&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;query.is_using_item &amp;amp;&amp;amp; query.get_equipped_item_name(&lt;span class=&quot;code-quote&quot;&gt;&apos;main_hand&apos;&lt;/span&gt;) == &lt;span class=&quot;code-quote&quot;&gt;&apos;apple&apos;&lt;/span&gt;&quot;&lt;/span&gt;
            }
          ]
        },
        &lt;span class=&quot;code-quote&quot;&gt;&quot;eating&quot;&lt;/span&gt;: {
          &lt;span class=&quot;code-quote&quot;&gt;&quot;on_entry&quot;&lt;/span&gt;: [
            &lt;span class=&quot;code-quote&quot;&gt;&quot;/say i&apos;ve eaten an apple!&quot;&lt;/span&gt;
          ],
          &lt;span class=&quot;code-quote&quot;&gt;&quot;transitions&quot;&lt;/span&gt;: [
            {
              &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;!query.is_using_item&quot;&lt;/span&gt;
            }
          ]
        }
      }
    }
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This doesn&apos;t work either. &lt;b&gt;query.is_using_item&lt;/b&gt; is working only by itself. As soon as I add &lt;b&gt;query.get_equipped_item_name&lt;/b&gt;, it breaks because of the empty string.&lt;/p&gt;</description>
                <environment></environment>
        <key id="367532">BDS-9536</key>
            <summary>BDS query.get_equipped_item_name always returns null/empty string</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ZizzyZizzy">Zizzy zizzy</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Aug 2020 04:32:22 +0200</created>
                <updated>Thu, 25 Feb 2021 11:54:25 +0100</updated>
                            <resolved>Thu, 25 Feb 2021 11:54:25 +0100</resolved>
                                    <version>1.16.40</version>
                                                            <votes>5</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="842788" author="zizzyzizzy" created="Wed, 18 Nov 2020 00:48:01 +0100"  >&lt;p&gt;This has been fixed in 1.16.100.&lt;/p&gt;

&lt;p&gt;However, this is beginning to get comical. Now any entity spawned from anything that shoots no longer moves. It just spawns and hovers with no velocity, both in single player and on BDS. I&apos;ll open yet another new bug report.&lt;/p&gt;</comment>
                            <comment id="841496" author="JIRAUSER420943" created="Sun, 15 Nov 2020 22:14:01 +0100"  >&lt;p&gt;Has this bug been fixed in the current beta? Many changes to how the game handles names have been tweaked, but it is not clear whether this has or has had an affect on the BDS for the would-be 1.16.100 update (since we are not able to test it).&lt;/p&gt;</comment>
                            <comment id="832704" author="JIRAUSER556245" created="Sat, 31 Oct 2020 21:36:28 +0100"  >&lt;p&gt;I should also note that this bug occurs for vanilla items and custom ones. Yes, the custom items have been defined in the Lang file.&lt;/p&gt;</comment>
                            <comment id="821688" author="JIRAUSER556245" created="Tue, 6 Oct 2020 14:31:43 +0200"  >&lt;p&gt;should be part of BDS bug report type though&lt;/p&gt;</comment>
                            <comment id="821687" author="JIRAUSER556245" created="Tue, 6 Oct 2020 14:31:00 +0200"  >&lt;p&gt;happens in 1.16.40&lt;/p&gt;</comment>
                            <comment id="795244" author="JIRAUSER494806" created="Mon, 24 Aug 2020 16:31:55 +0200"  >&lt;p&gt;I&apos;ve been trying to run an event using this query, and found out it never works! it&apos;s one of the most used queries, so it hopefully will get a fix soon.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="350525">BDS-7012</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_11500" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>ADO</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>427512</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10302"><![CDATA[Community Consensus]]></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_11300" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>Operating System Version</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Ubuntu</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i1l4u7:</customfieldvalue>

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