# InventoryItemAdded

Example usage:

```lua
Events.InventoryItemAdded(function(event)
    -- Sends a notification to a player that receives the Laser Sword item
    if (event.item == ItemType.LASER_SWORD) then
        MessageService.sendInfo(event.player, "You have unlocked the power of the force!")
    end
end)
```

### Parameters

#### player: [Player](/scripting/bedwars-scripting/objects/player.md)

The player who received a new item.

#### item: [ItemType](/scripting/bedwars-scripting/types/itemtype.md)

The type of item received by the player.

#### amount: number

The amount of the item received by the player.


---

# Agent Instructions: 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://docs.easy.gg/scripting/bedwars-scripting/events/inventoryitemadded.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.
