main/Layout
Layout
The config file currently has one top-level section, which is mobs. Each mob needs to use the list format (-) and have a name and conditions section:
mobs: - name: pig conditions: - name: wolf conditions:
If a mob isn't in the config file it will drop exp and items like normal. There's no need to add empty mob sections. The mobs that can be used are: Blaze, CaveSpider, Chicken, Cow, Creeper, EnderDragon, Enderman, Ghast, Giant, MagmaCube, MushroomCow, Pig, PigZombie, Player, Sheep, Silverfish, Skeleton, Slime, Snowman, Spider, Squid, Villager, Wolf, and Zombie (case doesn't matter).
The conditions section needs an outcome section in the list format:
mobs: - name: pig conditions: - outcome:
If there is an outcome section without any other sections (like the example above) it will be treated as the default outcome if all the other conditions are false.
There are three optional sections - mob, player, and world. Each of these can contain a few sub-sections. See the relevant pages for more information:
mobs: - name: pig conditions: - outcome: mob: player: world:
When the file looks like this is means that if the conditions (to be set out in the mob, player, and world sections) are false, the mob will drop exp and items as if the plugin wasn't installed. I.e. there is no default outcome.
Each mob can have as many conditions as you like, and can contain a default outcome or not. When the plugin parses the conditions, the first one it finds that returns true will be chosen, so put the most unlikely set of conditions first:
mobs: - name: pig conditions: - outcome: mob: player: world: - outcome: mob: player: world: - outcome: mob: player: world: - outcome:
Comments