The Drops tag can be added to your custom mobs to allow them to drop items of your choice upon their death. There are three types of custom drops available in MythicMobs to distinguish between.
Drops are the simplest way to implement custom drops.
internal_mobname: Type: <mobtype> Drops: - <item/exp/droptable> <amount> <chance> - <item/exp/droptable> <amount> <chance> - ...
Can be either an item from MythicMobs, a vanilla item, exp, a drop table or an item/experience for a supported plugin.
The amount of items to be dropped. Can be a number range; for example 1-3.
|champions-exp||Will drop experience points for the plugin Champions.|
|skillapi-exp||Will drop experience points for the plugin SkillAPI.|
|heroesexp||Will drop experience points for the plugin Heroes.|
|mcmmo-exp||Will drop experience points for the plugin MCMMO.|
|exp||Will drop regular Minecraft experience points.|
|money||Will drop money for the plugin Vault.|
|mythicdrop <item>||Will drop an <item> from the plugin MythicDrops.|
|phatloot <item>||Will drop an <item> from the plugin PhatLoot.|
Drops per Level work exactly like regular drops, with the exception that the amount of items dropped will be relative to the level of the mob. The syntax is exactly the same as above for regular drops.
internal_mobname: Type: <mobtype> DropsPerLevel: - <item/exp/droptable> <amount> <chance> - ...
Drops per Level will be attempted to be dropped by the plugin X times depending on the level of the mob. So if you for instance had a mob with this configuration:
some_mob: Type: shulker DropsPerLevel: - diamond 3 1 - gold_ingot 2 0.5… and the mob is on level 5, it would drop exactly 15 diamonds with a chance of 100 %, and between 2-10 gold ingots, each two ingots having a 50 % chance 3) to be dropped.
You can find more information about levels here on the page Mob Levels.
Droptables are collections of multiple drops that can be assigned to mobs. Using them makes it easier to organize your drops in almost any case where your mobs are supposed to drop multiple items.
Drop Tables are stored in their own respective configuration-files located in /MythicMobs/DropTables. They have the advantage of being able to utilize Conditions and can be shared by multiple mobs without the need of duplicating it. Drop Tables can also make use of both regular Drops and Drops per Level inside of them.
Drop Tables can be nested - a Drop Table can contain multiple other Drop Tables.
internal_mobname: Type: <mobtype> Drops: - <internal_droptablename>
Note that you musn't provide <amount> nor <chance> when referring to a droptable.
internal_droptablename: #lets you specify exactly how many items will drop from this table TotalItems: <amount> #defaults to TotalItems' value MinItems: <amount> #defaults to TotalItems' value MaxItems: <amount> Conditions: - condition 1 - condition 2 - ... Drops: - <item/exp/droptable> <amount> <chance> - ... DropsPerLevel: - <item/exp/droptable> <amount> <chance> - ...
This is all there is to it!
This mob will always drop a bunch of experience and some rotten flesh, but is also using a droptable which is described further below.
snow_loving_zombie: Type: zombie Health: 100 Equipment: - snowsword:0 Drops: - exp 75-125 1 - rare_snowsword_droptable
This example is a droptable that has a 5 % chance of dropping a custom sword, but only if the mob is killed in an “ICE_PLAINS” biome and if a player is within 20 blocks.
rare_snowsword_droptable: Conditions: - inbiome ICE_PLAINS - playerwithin 20 Drops: - snowsword 1 0.05