[MCPE-19832] "minecraft:behavior.pickup_items" doesn't actually exist internally and has no effect Created: 23/Jan/17 Updated: 03/Apr/17 Resolved: 03/Apr/17 |
|
| Status: | Resolved |
| Project: | Minecraft (Bedrock codebase) |
| Component/s: | None |
| Affects Version/s: | 1.0.2, 1.0.3, 1.0.4.0 |
| Fix Version/s: | 1.0.5.54 |
| Type: | Bug | ||
| Reporter: | Zeb | ||
| Resolution: | Fixed | Votes: | 6 |
| Labels: | add-on, behavior-pack, villager | ||
| Issue Links: |
|
||||||||
| Confirmation Status: | Confirmed | ||||||||
| Platform: | Windows | ||||||||
| CHK: | |||||||||
| ADO: | 59556 | ||||||||
| Description |
|
In the vanilla villager.json file, this component is applied: "minecraft:behavior.pickup_items": { "priority": 7, "items": [ "minecraft:bread", "minecraft:carrots", "minecraft:potatoes", "minecraft:wheat", "minecraft:beetroot", "minecraft:beetroot_seeds" ] } However, a code analysis by Jocopa3 showed that this component doesn'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. This means that changing the parameters used in the minecraft:behavior.pickup_items component has no effect on villager behavior whatsoever. (In fact, in the vanilla villager.json, the item filter list in this component doesn't have wheat_seeds listed, which SHOULD mean that villagers wouldn't be able to pick that item up, but they do anyway, since the component doesn't actually exist internally and the behavior is hardcoded.) 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. Here is the code analysis by Jocopa3:
|
| Comments |
| Comment by Zeb [ 03/Apr/17 ] |
|
After some more looking into it, I can confirm that minecraft:behavior.pickup_items does indeed exist almost definitely since 1.0.4.1. Resolving as fixed as of 1.0.5.54! |
| Comment by Klontola [ 03/Mar/17 ] |
|
Its mean, villager behaviors are broken? |
| Comment by Klontola [ 03/Mar/17 ] |
|
How about this? An user named siapa aja have reported a same issue, |
| Comment by Zeb [ 25/Feb/17 ] |
|
In 1.0.4.1, some changes were made to villagers, and now the instance of "minecraft:behavior.pickup_items" has been changed to this: "minecraft:behavior.pickup_items": { "priority": 9, "max_dist": 3, "goal_radius": 2, "speed_multiplier": 0.5 }, 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's a new bug introduced in 1.0.4.1. |
| Comment by internetuser1bill [ 14/Feb/17 ] |
|
Confirmed and affects version 1.0.4.0 |