<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 15:24:45 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>[MCPE-19832] &quot;minecraft:behavior.pickup_items&quot; doesn&apos;t actually exist internally and has no effect</title>
                <link>https://bugs.mojang.com/browse/MCPE-19832</link>
                <project id="10200" key="MCPE">Minecraft (Bedrock codebase)</project>
                    <description>&lt;p&gt;In the vanilla villager.json file, this component is applied:&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;minecraft:behavior.pickup_items&quot;&lt;/span&gt;: {
  &lt;span class=&quot;code-quote&quot;&gt;&quot;priority&quot;&lt;/span&gt;: 7,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;items&quot;&lt;/span&gt;: [
    &lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:bread&quot;&lt;/span&gt;,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:carrots&quot;&lt;/span&gt;,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:potatoes&quot;&lt;/span&gt;,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:wheat&quot;&lt;/span&gt;,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:beetroot&quot;&lt;/span&gt;,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:beetroot_seeds&quot;&lt;/span&gt;
  ]
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, a code analysis by Jocopa3 showed that this component doesn&apos;t actually exist, and so the component has no effect on villager behavior whatsoever. In fact, the ability of villagers to pick up items is hardcoded.&lt;/p&gt;

&lt;p&gt;This means that changing the parameters used in the &lt;tt&gt;minecraft:behavior.pickup_items&lt;/tt&gt; component has no effect on villager behavior whatsoever. (In fact, in the vanilla villager.json, the item filter list in this component doesn&apos;t have wheat_seeds listed, which SHOULD mean that villagers wouldn&apos;t be able to pick that item up, but they do anyway, since the component doesn&apos;t actually exist internally and the behavior is hardcoded.)&lt;/p&gt;

&lt;p&gt;There have been some reports of odd villager behavior, where villagers would not pick up items, and when they do, they seem to pick up twice as many items as you give them, allowing for easy item duplication if you have a farmer villager. I believe that a lot of this odd villager behavior may be related to this.&lt;/p&gt;

&lt;p&gt;Here is the code analysis by Jocopa3:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;There is a function called Villager::reloadHardcoded which loads hardcoded villager settings. That function is hardcoded to call Mob::setCanPickUpLoot(true), which makes it so villagers can always pick up loot. However, I don&apos;t know if the reloadHardcoded function is used at all, or when it&apos;s used.&lt;/p&gt;

&lt;p&gt;The Villager::readAdditionalSaveData is also hardcoded to callMob::setCanPickUpLoot(true), which means whenever additional save data for villagers is read, it&apos;s hardcoded to also make villagers pick up loot. Though, I don&apos;t know how behavior packs work, so I don&apos;t know if they can change that value or not.&lt;br/&gt;
My guess is that behavior packs initially modify whether villagers can pick up loot or not, but that changed value is overwritten later by either of the two functions I mentioned.&lt;/p&gt;

&lt;p&gt;Looking into it further, I don&apos;t see behavior.pickup_items mentioned anywhere in the game... does that behavior attribute actually exist, or is it currently just a placeholder/temporarily removed behavior?&lt;/p&gt;

&lt;p&gt;behavior.harvest_farm_block and behavior.take_flower exist and are functional, but behavior.pickup_items simply isn&apos;t implemented at all&lt;/p&gt;

&lt;p&gt;By &quot;not implemented&quot; I mean the function which initializes all behaviors (named: GoalDefinition::_initMap) doesn&apos;t have an entry for behavior.pickup_items, so whenever that behavior is defined in a behavior file, the game ultimately ignores it&lt;/p&gt;&lt;/blockquote&gt;</description>
            <key id="161018">MCPE-19832</key>
            <summary>&quot;minecraft:behavior.pickup_items&quot; doesn&apos;t actually exist internally and has no effect</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>
                                            <reporter username="SuperGeniusZeb">Zeb</reporter>
                        <labels>
                            <label>add-on</label>
                            <label>behavior-pack</label>
                            <label>villager</label>
                    </labels>
                <created>Mon, 23 Jan 2017 23:27:08 +0100</created>
                <updated>Mon, 3 Apr 2017 05:43:26 +0200</updated>
                            <resolved>Mon, 3 Apr 2017 05:39:59 +0200</resolved>
                                    <version>1.0.2</version>
                    <version>1.0.3</version>
                    <version>1.0.4.0</version>
                                    <fixVersion>1.0.5.54</fixVersion>
                                                        <votes>6</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="375725" author="zebulanstanphill@gmail.com" created="Mon, 3 Apr 2017 05:39:59 +0200"  >&lt;p&gt;After some more looking into it, I can confirm that &lt;tt&gt;minecraft:behavior.pickup_items&lt;/tt&gt; does indeed exist almost definitely since 1.0.4.1. Resolving as &lt;b&gt;fixed&lt;/b&gt; as of 1.0.5.54! &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/biggrin.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="370502" author="kontola" created="Fri, 3 Mar 2017 14:54:52 +0100"  >&lt;p&gt;Its mean, villager behaviors are broken?&lt;/p&gt;</comment>
                            <comment id="370501" author="kontola" created="Fri, 3 Mar 2017 14:51:54 +0100"  >&lt;p&gt;How about this? An user named siapa aja have reported a same issue, &lt;a href=&quot;https://bugs.mojang.com/browse/MCPE-20176&quot; title=&quot;Villager now dangerous when i drop sword or anything for my friend&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MCPE-20176&quot;&gt;&lt;del&gt;MCPE-20176&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="369625" author="zebulanstanphill@gmail.com" created="Sat, 25 Feb 2017 23:23:13 +0100"  >&lt;p&gt;In 1.0.4.1, some changes were made to villagers, and now the instance of &quot;minecraft:behavior.pickup_items&quot; has been changed to 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-java&quot;&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;minecraft:behavior.pickup_items&quot;&lt;/span&gt;: {
	&lt;span class=&quot;code-quote&quot;&gt;&quot;priority&quot;&lt;/span&gt;: 9,
	&lt;span class=&quot;code-quote&quot;&gt;&quot;max_dist&quot;&lt;/span&gt;: 3,
	&lt;span class=&quot;code-quote&quot;&gt;&quot;goal_radius&quot;&lt;/span&gt;: 2,
	&lt;span class=&quot;code-quote&quot;&gt;&quot;speed_multiplier&quot;&lt;/span&gt;: 0.5
},&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I currently have no idea if this component still has no effect or not. However, one interesting thing to note is that in 1.0.4.1, all villagers now pick up ANY item. So there&apos;s a new bug introduced in 1.0.4.1.&lt;/p&gt;</comment>
                            <comment id="367621" author="piravinth" created="Tue, 14 Feb 2017 18:42:06 +0100"  >&lt;p&gt;Confirmed and affects version 1.0.4.0 &lt;br/&gt;
This is YouTube video (&lt;a href=&quot;https://www.youtube.com/watch?v=PJcWgHtm7Rc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.youtube.com/watch?v=PJcWgHtm7Rc&lt;/a&gt;) shows a weapon smith villager collect and store the 2 stacks of seeds that I threw at him however they should not be able to collect seeds.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="164637">MCPE-20205</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>59556</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 25 Feb 2017 06:57: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_11300" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>Operating System Version</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Windows 10 Version 1607</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10402" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Platform</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10901"><![CDATA[Windows]]></customfieldvalue>

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

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