I attach an addon for test below, which adds a custom item with id storage:item that involves minecraft:storage_item and a storage:peek command that query the availability (isValid) of inventory and its container of the item that the command source entity holding.
Current Behavior
minecraft:storage_item item component seems to bind an inventory without container to the item.
Trying to access container of custom storage item will cause an InvalidContainerError: Invalid Container during call for container. Inventory does not have Container Component.
And it is why a failed result is returned by storage:peek command, as the image attached below.
Expected behavior
minecraft:storage_item item component should bind an inventory and a container to the item, just like minecraft:inventory entity component bind both of them to the entity, so that script could access the container successfully, just like how it does on bundles.
Attachments
Comments 0
No comments.