# Enchanter

#### Enchanter's configuration is located in `plugins/AdvancedPlugins/menus/Enchanter.yml`

### Available economy types&#x20;

You can use any of these economy types when it comes to enchanter. Simply, changing between price configuration (explained further below [Charge players for clicking items](https://ae.advancedplugins.net/configuration/enchanter#charge-players-for-clicking-item) you can learn where to change prices)

* exp&#x20;
* money&#x20;
* level&#x20;
* souls (works with items that are held when opening inventory)&#x20;
* diamonds
* gold (gold ingots)&#x20;
* emeralds

### Configure Basic Items

To set up custom items in the enchanter that have no functionality is very simple and uses basic item formatting from all AE items:

```
      '3':
        item:
          type: ANVIL
          id: 0
          force-glow: false
        name: '&aOpen Tinkerer'
        lore:
        - '&7Open Tinkerer'
```

### Run commands with items

The item will have no functionality, but in the previous case, you might want to add item some functionality. We can do this by adding new settings to run a command:

```
      '3':
        item:
          type: ANVIL
          id: 0
          force-glow: false
        name: '&aOpen Tinkerer'
        lore:
        - '&7Open Tinkerer'
        player-command:
          - 'tinkerer'
```

### Charge players for clicking item

player-command will make the player run specified commands when clicked. You can as well use console-command to run commands from the servers console when the player clicks - this is especially useful when selling products in enchanter:

```
      '2':
        item:
          type: PAPER
          id: 0
          force-glow: false
        price: money:400
        name: '&f&lWhitescroll &7(Click to buy)'
        lore:
        - '&fPrevents an item from being destroyed'
        - '&fdue to a failed Enchantment Book.'
        - '&ePlace scroll on items to apply.'
        - ''
        - '&b&lCOSTS &f$400'
        console-command:
          - 'ae giveitem %player% whitescroll 1'
```

### Sell custom enchantments

To simply sell custom enchantment books define the group to which it should target:

```
      '4':
        item:
          type: STAINED_GLASS_PANE
          id: 3
          force-glow: false
        enchant-group: ELITE
        price: exp:2500
        name: '&b&lElite Enchantment &7(Right Click)'
        lore:
        - '&7Examine to recieve a random'
        - '&belite &7enchantment book.'
        - ''
        - '&b&lCOST &f2500 EXP'
```


---

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