Assigning Loot Tables
How to assign loot tables to entities
Introduction
With 2.0.0, the mobs.yml has completely changed and expanded. You now have to assign each mob a loot table (or use the wildcard).
Assignment
In mobs.yml, you can assign mobs multiple loot tables. Each bundle of Loot Tables makes a Loot Container, which you may see logged on startup. This is the format to assign loot tables to mobs.
Every loot table that you define in this file should be an existing loot table in loot.yml. The plugin creates the loot tables, then assigns each loot table to their respective loot containers.
To list multiple tables, you can do something as simple as this.
Wildcard Table (Default Loot Table)
This table is not enabled by default, and it is something you have to add in to enable. This option allows you to easily assign a set of tables for mobs that share the same loot tables to avoid redundancy. Here is how it should be structured:
In mobs.yml (or any hook file that supports table assigning) you should make a new section that starts with default. This does not go in the list of mobs; this is its own section.
You can add exclusions to the list as well, if you do not want a mob to have any drops at all.
Example File
Last updated