> For the complete documentation index, see [llms.txt](https://ajneb97.gitbook.io/epiccraftingsplus/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/epiccraftingsplus/actions.md).

# Actions

Actions can be used when crafting an item, specifically in the [**Actions When Crafted**](/epiccraftingsplus/craftings-tutorial.md#actions-when-crafted) option. They can also be used when clicking inventory items.

## Player Command

Executes a command from the player. You can use PlaceholderAPI variables.

```yaml
player_command: spawn
```

## Console Command

Executes a command from the console. Use %player% variable for player name.  You can use PlaceholderAPI variables.

```yaml
console_command: lp user %player% parent set vip
```

## Player Command as Op

Executes a command from the player as OP. (Not recommended)

```yaml
player_command_as_op: help
```

## Title

Sends a title and subtitle to the player. Use this format: \
`<fadeIn>;<stay>;<fadeOut>;<title>;<subtitle>`\
fadeIn, stay and fadeOut must be in ticks, 20ticks = 1second.\
If you want just a title, or just subtitle write "none".

```yaml
title: 20;40;20;&6&lCRAFTED AN EPIC SWORD;none
```

## Playsound

Plays a sound to the player. Use this format: `<sound>;<volume>;<pitch>`\
You can find a list of sounds here: \
Latest Versions: <https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html>\
Legacy Versions: <https://helpch.at/docs/1.8.8/index.html?org/bukkit/Sound.html>

```yaml
playsound: BLOCK_NOTE_BLOCK_PLING;10;0.1
```

## Playsound 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
```

## Firework

Spawns a firework from the player location. Use this format:\
`"firework: colors:<color1>,<color2> type:<type> fade:<color1>,<color2> power:<power>"`\
The fade property is optional.\
Firework Colors: <https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Color.html>\
Firework Types: <https://hub.spigotmc.org/javadocs/spigot/org/bukkit/FireworkEffect.Type.html>

```yaml
firework: colors:YELLOW,RED type:BALL fade:AQUA power:0
```

## Message

Sends a message to the player. You can use PlaceholderAPI variables.

```yaml
message: &fHello there

# Only if use_minimessage option is enabled in the config
message: <white>Hello there
```

## Close Inventory

Closes the player inventory.

```yaml
close_inventory
```


---

# 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/epiccraftingsplus/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.
