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
  • Generating random loot from plugin into world
  • Villager Trades
  • Mob Drops

Was this helpful?

  1. Configuration

Random Loot, Villager Trades and Mob Drops

Guide on enabling and configuring random loot generation and custom villager trades.

Generating random loot from plugin into world

AdvancedEnchantments supports spawning random loot into any chests generated in wild, e.g. mob spawner rooms, mineshaft etc.

To enable it, simply go into <your server folder>/plugins/AdvancedEnchantments/lootConfiguration.yml file, set randomLootEnabled to true

lootConfiguration.yml
# ------ Random Loot Section ------ #
randomLoot:
  # Should random loot be generated in world?
  randomLootEnabled: true # <--- set here to true
  # Blacklisted groups, these group books cannot generate in random loot
  blacklisted-groups:
    - 'STAFF'         # <--- set here groups you dont want generate in random loot

And restart your server! Now Random loot will spawn in vanilla generated chests / containers - just like default vanilla loot.

Below this, in configuration file, you can configure chances for each item to spawn.

Villager Trades

Villagers can trade custom enchantment books and admin items, e.g. white scrolls, orbs, dusts.

To enable it, simply go into <your server folder>/plugins/AdvancedEnchantments/lootConfiguration.yml file, set villagerTradesEnabled to true

lootConfiguration.yml
# ------ Villager Trades Section ------ #
villagerTrades:
  # Should villagers be able to trade custom books / items?
  villagerTradesEnabled: true # <--- set here to true
  # Blacklisted groups, these group books cannot generate in villager trades
  blacklisted-groups:
    - 'STAFF' # <--- set here groups you dont want to be available in villager trades

And restart your server! Now new villager trades will include custom items from plugin.

Below this setting, in configuration file, you can configure chances for each item to be included in trades. Prices are based on vanilla pricing and are random.

Mob Drops

To enable it, simply go into <your server folder>/plugins/AdvancedEnchantments/mobs.yml file, add mobs, chances, items

mobs.yml
# You can give custom AE items when mobs are killed
# Item names must be same as from '/ae giveitem' command (for future references).

# Current items: whitescroll, renametag, blocktrak, stattrak, soultracker, mobtrak, transmog, randomenchantmentbook, secret:<amount>:<group>

# Format: "<item name>:<count>"

mobs:
  ZOMBIE:
    chance: 75
    items:
      - "randomenchantmentbook:1"
  SKELETON:
    chance: 50
    items:
      - "whitescroll:1"

And restart your server! Now when a mob is killed it will drop the various items you've configured

Note: These items will only drop from active player kills, and not passive deaths

PreviousToggling FeaturesNextEnchanter

Last updated 1 year ago

Was this helpful?

Mobs can drop any AE Plugin Item from

âš™ī¸
here