> For the complete documentation index, see [llms.txt](https://ae.advancedplugins.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ae.advancedplugins.net/configuration/per-level-books.md).

# Per-Level Books

Learn how to change book item on each enchantment and each level

Starting 9.17.0, it is possible to change items on each level of a specific enchantment. Similar to how [groups can change this](/configuration/groups.md#per-group-enchantment-books). It's very simple to do:

Here is an example with `hasten` enchantment, where you can for example just change the `custom-model-data` or you can even change the whole item:

{% code title="enchantments.yml" overflow="wrap" fullWidth="true" %}

```yaml
hasten:
  display: '%group-color%Hasten'
  applies-to: Tools
  type: MINING
  group: SIMPLE
  applies:
    - ALL_PICKAXE
    - ALL_SPADE
    - ALL_AXE
  levels:
    '1':
    # WE CAN SEE HERE THAT ONLY CUSTOM MODEL DATA IS CHANGED
      item:
        custom-model-data: 99
      chance: 15
      cooldown: 3
      effects:
        - POTION:FAST_DIGGING:0:40
    '2':
    # HERE, MORE PARAMETERS OF THE ITEM ARE BEING CHANGED
      item:
        type: ENCHANTED_BOOK
        name: '&6Harvest II'
        lore: |-
          &7Harvest in a 3x3 area.
          &7Chance to harvest in a 3x3 area.
      chance: 25
      cooldown: 3
      effects:
        - POTION:FAST_DIGGING:1:60
```

{% endcode %}

Any value that is not present here will be taken from the `config.yml` in the `enchantment-book` section

{% code title="config.yml" overflow="wrap" lineNumbers="true" fullWidth="true" %}

```yaml
enchantment-book:
  # If true, books can be applied to items in anvils.
  anvil-application: false
  # If true, books can be applied to items by dragging and dropping them on the item in an inventory.
  drag-drop-application: true
  item:
    type: ENCHANTED_BOOK
    id: 0
    custom-model-data: 0
    force-glow: false
    # Variables: %enchant%, %enchant-no-color%, %description%, %level-description%, %applies%, %success%, %destroy%, %color%, %max-level%
  name: "%group-color%&l&n%enchant-no-color% %level%"
  lore:
    - "&a%success%% Success Rate"
    - "&c%destroy%% Destroy Rate"
    - "&e%description%"
    - "&7%applies-to% Enchantment"
    - "&7Drag n' drop onto item to enchant"
```

{% endcode %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ae.advancedplugins.net/configuration/per-level-books.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
