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
  • Available economy types
  • Configure Basic Items
  • Run commands with items
  • Charge players for clicking item
  • Sell custom enchantments

Was this helpful?

  1. Configuration

Enchanter

Enchanter configuration, economy and how to sell not only enchantments but other items - it's all explained here.

PreviousRandom Loot, Villager Trades and Mob DropsNextSouls

Last updated 2 years ago

Was this helpful?

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

Available economy types

You can use any of these economy types when it comes to enchanter. Simply, changing between price configuration (explained further below you can learn where to change prices)

  • exp

  • money

  • level

  • souls (works with items that are held when opening inventory)

  • diamonds

  • gold (gold ingots)

  • 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'
⚙️
Charge players for clicking items