> For the complete documentation index, see [llms.txt](https://hiveminddocs.gitbook.io/hivemind/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-gathering-system-ugs/components/bp_basic_inventorycomponent.md).

# BP\_Basic\_InventoryComponent

This componet handles looting of items and storing them.

{% hint style="danger" %}
Note: This component is not production ready and is not meant to be used in a finished product.
{% endhint %}

## <mark style="color:blue;">Functions</mark>

* <mark style="color:yellow;">Has Item</mark>: Determines if an item exist
* <mark style="color:yellow;">Stack Item By Index</mark>: Adds an item to an item stack by item slot index
* <mark style="color:yellow;">Loot</mark>: Adds an item to the inventory if there is available space.
* <mark style="color:yellow;">Has Inventory Space</mark>: Check if there is available space for an item
* <mark style="color:yellow;">On Item Looted</mark>: This is an event dispatcher you can bind a function to, will be executed upon successfully adding an item to the inventory.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-gathering-system-ugs/components/bp_basic_inventorycomponent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
