# Item

**Properties**

| Property            | Type         | Description                                                    |
| ------------------- | ------------ | -------------------------------------------------------------- |
| `Event`             | `ItemEvents` | The event that triggers the item's action.                     |
| `Command`           | `string`     | The command to be executed when the event is fired.            |
| `CoolDown`          | `float`      | The delay after the event is fired.                            |
| `ConsoleMessage`    | `string`     | The message to be sent to the console when the event is fired. |
| `BroadcastMessage`  | `string`     | The message to be broadcast when the event is fired.           |
| `BroadcastDuration` | `ushort`     | The duration of the broadcast.                                 |
| `HintMessage`       | `string`     | The message to be shown as a hint when the event is fired.     |
| `HintDuration`      | `float`      | The duration of the hint.                                      |
| `DestroyAfterUse`   | `bool`       | Whether the item should be destroyed after use.                |

**Example:**

<pre class="language-yaml"><code class="lang-yaml"><strong>CustomItemType: Item
</strong>CustomData:
- event: Use
  command: "say A custom item was used!"
  cool_down: 5.0
  console_message: "Custom item used by a player."
  broadcast_message: "A special item has been activated!"
  broadcast_duration: 3
  hint_message: "You used the special item."
  hint_duration: 2.5
  destroy_after_use: true
</code></pre>


---

# 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.uci.ucserver.it/uncomplicatedcustomitems/api/custom-data/item.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.
