# Drag\&Drop books onto Player Heads

**Steps to Enable Drag & Drop for PLAYER\_HEAD**

To allow custom enchantment books to be applied onto PLAYER\_HEAD items through a drag-and-drop action, you need to modify the `enchantments.yml` file. Here's how to do it:

* **1. Locate the Enchantment Entry:** Find the specific enchantment entry in the `enchantments.yml` file. This file contains all the custom enchantments available on your server.
* **2. Modify the 'Applies' Section:** In the enchantment entry, look for the `applies` section. This section determines which items the enchantment can be applied to.
* **3. Add PLAYER\_HEAD to the Applies Section:** Under the `applies` section, add `- PLAYER_HEAD` to allow the enchantment to be applied to PLAYER\_HEAD items.

  Here's an example for the `glowing` enchantment:

```yaml
glowing:
  display: '%group-color%Glowing'
  description: Gives permanent night vision.
  applies-to: Helmet
  type: EFFECT_STATIC
  group: SIMPLE
  applies:
    - ALL_HELMET
    - PLAYER_HEAD
  levels:
    '1':
      effects:
        - POTION:NIGHT_VISION:0
```

* **4. Save Changes and Reload:** After making the changes, save the `enchantments.yml` file. Then, reload the plugin configurations on your server to apply the changes.

<br>


---

# 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://ae.advancedplugins.net/configuration/drag-and-drop-books-onto-player-heads.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.
