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
# ------ 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
# ------ 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
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
# 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
Last updated
Was this helpful?