> For the complete documentation index, see [llms.txt](https://itemsadder.devs.beer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://itemsadder.devs.beer/japanese/plugin-usage/adding-content/item-properties/events.md).

# Events

## Use the official files editor to read all the properties

{% content-ref url="/pages/PMcWiU1rPmjnQFvq9H5c" %}
[Files editor](/japanese/plugin-usage/beginners/files-editor.md)
{% endcontent-ref %}

## What are events?

Events describe the time when something happen.\
You can make things happen ([actions](/japanese/plugin-usage/adding-content/item-properties/events/actions.md)) when an event is triggered (play sound, execute command etc.)

### List of events

* block\_break
* attack
* kill
* interact.entity
* interact.left
* interact.left\_shift
* interact.right
* interact.right\_shift
* interact\_mainhand.left
* interact\_mainhand.left\_shift
* interact\_mainhand.right
* interact\_mainhand.right\_shift
* interact\_offhand.left
* interact\_offhand.left\_shift
* interact\_offhand.right
* interact\_offhand.right\_shift
* drop
* pickup
* eat
* drink
* bow\_shot
* gun\_shot
* gun\_no\_ammo
* gun\_reload
* book\_write
* book\_read
* fishing\_start
* fishing\_caught
* fishing\_failed
* fishing\_cancel
* fishing\_bite
* fishing\_in\_ground
* wear
* unwear
* held
* held\_offhand
* unheld
* unheld\_offhand
* item\_throw
* item\_hit\_ground
* item\_hit\_entity
* placed\_block.interact
* placed\_block.break
* placed\_furniture.interact
* placed\_furniture.break
* holding\_item.player\_damaged\_by\_entity
* holding\_item\_offhand.player\_damaged\_by\_entity
* equipped\_armor\_item.player\_damaged\_by\_entity
* bucket\_empty
* bucket\_fill

### EXAMPLE

Why is it written like `interact (dot) right`? Below is a small example of how to correctly write it into your item config.

```yaml
...
events:
  interact:
    right:
      play_sound:
      ...
...
```


---

# 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, and the optional `goal` query parameter:

```
GET https://itemsadder.devs.beer/japanese/plugin-usage/adding-content/item-properties/events.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
