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

# Actions

Actions can be used as rewards when completing levels. More info [**HERE**](/minewords/levels-categories-tutorial.md#rewards).

## Message <a href="#message" id="message"></a>

Sends a message to the player.

```yaml
message: &7Level &b%level% &7completed. You earned &a$50 &7and &e5 XP

# Only if use_minimessage option is enabled in the config
message: <gray>Level <blue>%level% <gray>completed. You earned <green>$50 <gray>and <green>5 XP
```

## Centered Message <a href="#centered-message" id="centered-message"></a>

Sends a centered message to the player.

```yaml
centered_message: &b[ EASY CATEGORY COMPLETED! ]

# Only if use_minimessage option is enabled in the config
centered_message: <blue>[ EASY CATEGORY COMPLETED! ]
```

{% hint style="warning" %}
When <kbd>use\_minimessage</kbd> is enabled in the config:

This action only supports color MiniMessages tags. (You can't use other tags like \<hover> or \<click>, if you want to do so, use the `message` action and center the text manually)
{% endhint %}

## Console Command <a href="#console-command" id="console-command"></a>

Executes a command from the console.

```yaml
console_command: eco give %player% 5000
```

## Player Command <a href="#player-command" id="player-command"></a>

Executes a command from the player.

```yaml
player_command: menu
```

## Play Sound <a href="#play-sound" id="play-sound"></a>

Plays a sound to the player. Use this format: `"playsound: sound;volume;pitch` \
You can find a list of sounds here: <https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html>&#x20;

```yaml
playsound: BLOCK_NOTE_BLOCK_PLING;1;0.1
```

## Play Sound Resource Pack

Plays a resource pack sound to the player. The format is the same as `playsound` action.

```yaml
playsound_resource_pack: scorpions:custom.my_custom_sound;10;1
```


---

# 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:

```
GET https://ajneb97.gitbook.io/minewords/actions.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.
