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
1
# ------ Random Loot Section ------ #
2
randomLoot:
3
# Should random loot be generated in world?
4
randomLootEnabled: true # <--- set here to true
Copied!
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
1
# ------ Villager Trades Section ------ #
2
villagerTrades:
3
# Should villagers be able to trade custom books / items?
4
villagerTradesEnabled: true # <--- set here to true
Copied!
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

Mobs can drop any AE Plugin Item from here
To enable it, simply go into <your server folder>/plugins/AdvancedEnchantments/mobs.yml file, add mobs, chances, items
mobs.yml
1
# You can give custom AE items when mobs are killed
2
# Item names must be same as from '/ae giveitem' command (for future references).
3
4
# Current items: whitescroll, renametag, blocktrak, stattrak, soultracker, mobtrak, transmog, randomenchantmentbook, secret:<amount>:<group>
5
6
# Format: "<item name>:<count>"
7
8
mobs:
9
ZOMBIE:
10
chance: 75
11
items:
12
- "randomenchantmentbook:1"
13
SKELETON:
14
chance: 50
15
items:
16
- "whitescroll:1"
Copied!
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