Mojira Archive
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?

Incomplete

Alberto López

2020-12-14, 06:30 PM

2023-01-20, 06:01 PM

2023-01-20, 06:01 PM

1

0

Plausible

1.16.200, 1.16.221 Hotfix

-