# ↔️Default Slot/Max Slot

Although you have set which [items can be enchanted](/for-4.1.8/auto-add-lore/item-can-be-enchanted.md), if you do not set default slots and max slots for them, they will still not be able to be enchanted properly.

You can set each item's default slot and max slot at `config.yml`.

```yaml
  default-slots:
    default: 3
    vip: 5
  #default-slots-by-item:
  #  diamond_sword:
  #    default: 20
  #    vip: 30
  #  # You can type third plugin item ID here.
  #  # For now, EnchantmentSlots support:
  #  # MMOItems, EcoItems, EcoArmor, MythicMobs, NeigeItems, ItemsAdder, Oraxen, ExecutableItems.
  #  superior_sword:
  #    default: 100
  #    vip: 200
  # Only work for extra slot items.
  # Remove this section if you don't want this feature.
  max-slots:
    default: 10
    vip: 15
  # max-slots-by-item:
  # Similar to default-slots-by-item, remove the section to not use this feature.
  slots-conditions:
    vip:
      1:
        type: permission
        permission: 'group.vip'
```

## Default Slots

The `default-slots` section determines the default slot quantity for all items.&#x20;

Among them, `default` represents the default quantity, while the other options are the **condition ID**s in the `slot-conditions` section. Players who meet the corresponding conditions will use the value after the corresponding condition ID. We will ultimately take the highest value.

## Default Slots by Item

You can set different numbers of enchantment slots for specific items through this section, and also support setting different values for different players based on **conditional ID**s. The vanilla items will use the material ID, while items from [supported item plugins](/for-4.1.8/info/compatibility.md) will use their custom item ID.

## Max Slots/Max Slots by Item

Players can use [Extra slot items](/for-4.1.8/features/extra-slot-item.md) to increase the enchantment slots of items, but this is not infinite. The `max-slots` section determines the maximum number of items that can be expanded through **Extra slot items**, `while max-slots-by-item` sets separate values for specific items.

## Slot Conditions

You can set countless condition groups here, and each **condition ID** can be used in the options above. Players who meet specific conditions can use values different from the `default` option. Use [Condition Format](/for-4.1.8/format/condition-format.md) in each condition group section.


---

# 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://enchantmentslots.superiormc.cn/for-4.1.8/enchantment-slot/default-slot-max-slot.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.
