# Events

All events published by the Items plugin through `SparkEventBus`.

| Event                  | Properties                                                                       | Description                             |
| ---------------------- | -------------------------------------------------------------------------------- | --------------------------------------- |
| `ItemAddedEvent`       | `Inventory`, `Item`, `Quantity`, `Slot`, `TargetEntity`, `Context`               | Item added to an inventory              |
| `ItemRemovedEvent`     | `Inventory`, `Item`, `Quantity`, `Slot`, `TargetEntity`                          | Item removed from an inventory          |
| `ItemEquippedEvent`    | `EquipmentEntity`, `EquipmentSlot`, `Item`, `TargetEntity`                       | Item equipped to a slot                 |
| `ItemUnequippedEvent`  | `EquipmentEntity`, `EquipmentSlot`, `Item`, `TargetEntity`                       | Item removed from equipment             |
| `LootTableRolledEvent` | `LootTableId`, `RolledItems`, `TargetEntityId`, `DropPosition`, `TotalItemCount` | Loot table rolled and items distributed |

See [Event System](/documentation/developer-guide/core-systems/event-system.md) for full details on subscribing, publishing, and handling events.


---

# 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.sparkframework.dev/documentation/developer-guide/plugins/items/events.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.
