> For the complete documentation index, see [llms.txt](https://tastycake.gitbook.io/itemscore/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tastycake.gitbook.io/itemscore/how-to-use/use-the-item-editor/actions.md).

# Actions

{% hint style="success" %}
**NEW!**\
**You can now create your own events / actions, simply click on the "Create new custom event" button in the actions menu and select any event that your server supports with the player variable (more than 50 to choose from) and then it will act like a normal premade action**
{% endhint %}

{% stepper %}
{% step %}

### Select an action or an event

Select the action or event you want to add to your item (of course you can add multiple)
{% endstep %}

{% step %}

### Add methods

You can set several methods and make operations to happen between them, right click an empty method to load from a template, and right click on a created method to save it as a template.

To set a method simply click on the "Click to add a method" button and then select which category has the method you want to use, click to the category to choose a method from it and right click on the category to set the method to the category itself (basically when right clicking it will be "\<category>" and when clicking and selecting a method it will be "\<category.\<method>>
{% endstep %}

{% step %}

### Filling parameters

After adding a method you will see it require some parameters, if the parameter requires a simple object like "String", "Integer", etc, basically everything you can just type to set, just click on the parameter and input the value, if you want to get more advanced, you can right click and it will open the methods menu again but now you set the value of the parameter to a method, basically the value of the parameter will be the result of the methods / category you will add there.

You my notice that if you middle click it will turn the parameter to a chest and if you click on it, it will also open the methods menu, but this time instead of returning the result of the methods, it will return it as a String (text) like this: "\<category.\<method>>
{% endstep %}
{% endstepper %}


---

# 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://tastycake.gitbook.io/itemscore/how-to-use/use-the-item-editor/actions.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.
