AdvancedEnchantments
Get AdvancedEnchantmentsJoin DiscordUnlimited Minecraft Hosting
  • AdvancedEnchantments
  • ➡️AdvancedEnchantments UI
  • 🪄Enchantments
    • 📑List of Enchantments
      • Default Enchants (250+)
      • Cosmic Enchants (200+)
      • Vanilla+ Custom Enchants (60+)
    • Creating Enchantments
      • Triggers
      • Effects
      • Area of Effect
      • Settings
      • Effect Info
      • Complex Enchantments
    • Enchantment Conditions
    • ⏱️Repeating Enchantments
  • ℹ️General Information
    • Commands & Permissions
      • AEGive
    • Languages and Localization
    • 🔩Plugin Items
      • All plugin items
      • Item Configuration
      • Slot Increasers
    • Toggling Features
  • ⚙️Configuration
    • Random Loot, Villager Trades and Mob Drops
    • Default Files
    • Enchanter
    • Souls
    • Unsuccessful enchants
    • Per-Level Descriptions
    • Per-Level Books
    • Enchantments In Essentials Kits
    • GKits
      • GKit Permissions
      • Colored Leather Armor
    • Armor Sets
    • Drag&Drop books onto Player Heads
    • Groups
  • 💻For developers
    • Plugin API
    • Create Custom Effects
    • Plugin Compatiblity issues
  • Plugin Information
    • PlaceholderAPI placeholders
    • FAQ & Other Plugin Support
Powered by GitBook
On this page

Was this helpful?

  1. Configuration

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:

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.

PreviousArmor SetsNextGroups

Last updated 1 year ago

Was this helpful?

⚙️