Drops

p4f6hk8e.jpg

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

Drops are the simplest way to implement custom drops.

internal_mobname:
  Type: <mobtype>
  Drops:
  - <item/exp/droptable> <amount> <chance>
  - <item/exp/droptable> <amount> <chance>
  - ...

<item/exp/droptable>
Can be either an item from MythicMobs, a vanilla item, exp, a drop table or an item/experience for a supported plugin.

<amount>
The amount of items to be dropped. Can be a number range; for example 1-3.

<chance>
The chance for the specified item to be dropped. Must be a number between 0 and 1 1).
Note: Versions 2.5.0 and onwards allow lower chances than 0.1 . 2)

Special DropsExplanation
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.

DropsPerLevel

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

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!

Examples

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

1)
1 = 100 %, 0.5 = 50 % …
2)
This new limit is 2^-1022 or 2.225074e-308
3)
totaling a 0.03125 % chance to drop the maximum possible amount of 10 gold ingots; 50%*50%*50%*50%*50%
databases/drops/overview.txt · Last modified: 2018/08/02 10:33 by jaylawl
GNU Free Documentation License 1.3
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0