mojira.dev
MCPE-111155

minecraft:pickup_items doesn't store the items on the entity's inventory

I have a custom entity, it pickup items from the ground, but I want it to store the picked up items on its inventory. It has the following components:

 -------------------------------------------------------------------------------------------

"minecraft:behavior.pickup_items":

{                "priority": 11,                "max_dist": 3,                "goal_radius": 2,                "speed_multiplier": 0.5 }

,

"minecraft:shareables": {

              "items": [

{                              "item": "fur:shards",                              "priority": 0,                              "pickup_limit": 5,                              "stored_in_inventory": true                         }

                ]

},

"minecraft:inventory":

{                "container_type": "inventory",                "inventory_size": 27 }

,

 -------------------------------------------------------------------------------------------

The items dissapear from the ground when the entitity pick up them (through "minecraft:behavior.pickup_items"), but when the player opens the entity's inventory then he can see there is no item stored.

As you can see, inside "minecraft:shareables" it says "stored_in_inventory": true, but it doesn't work.

I think it's a bug, the entity should be able to store the picked up items on its inventory, right?

Comments 4

Does it still occur in the latest version, and if so, can you add it to the affected versions?

Yes, it still happens in MC 1.16.221. "Affects Version" updated.

Resolving temporarily as Awaiting Response. Could you please attach the addon you're using to this ticket?

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Alberto López

(Unassigned)

Plausible

Windows

1.16.200, 1.16.221 Hotfix

Retrieved