# Item Sets

For every enchantment we have to specify which items it works on. For this, there are 2 settings:

  • Primary Items - The items that can receive the enchantment legitimately in Survival mode by using an enchanting table.
  • Supported Items - Items that, in Survival mode, cannot receive the enchantment from an enchanting table but can from an enchanted book with an anvil or using commands.

Usually, primary items is a subset of supported items or equal to it.

# Configuration

You can define your own item sets for custom enchantments or edit existing ones in the item_types.yml config file.

# Example of a Diamond Armor Set

This set will make an enchantment to be applicable and have effect only on diamond armor.

item_types.yml
diamond_armor:
  Name: Diamond Armor
  Slots:
  - HEAD
  - CHEST
  - LEGS
  - FEET
  Items:
  - diamond_helmet
  - diamond_chestplate
  - diamond_leggings
  - diamond_boots

The Slots setting determines equipment slots that enchantments works in.