Drops Configuration

Drops configuration let you decide what items drop from monsters

Drop Creation

To create a new drop entry, add in the drops.yml file the name of the monster it should drop from to create a new configuration section:

# Vanilla monsters should be written in CAPITAL letters
ZOMBIE:
  # The rest follows

When creating entries for vanilla monsters the name should be in capital letters! E.g. not "zombie" nor "Zombie" but "ZOMBIE".

You can also make items from from MythicMobs monsters:

# An MM monster
SkeletalMinion:
  # The rest follows

Item Drop Configuration

Now you can add the configuration for each item that should drop from the monster.

ZOMBIE:
  ICESTEEL_INGOT:
    # The rest follows

Each entry in the mob section will configure a specific drop.

Preceding the item id with "pattern:" will make the pattern of a specific item drop instead of the actual item:

ZOMBIE:
  pattern:FIRESTEEL_INGOT:
    # ...

Preceding the item id with "mi:" or "mm:" will make the item from MMOItems or MythicMobs, respectively, drop from that monster:

ZOMBIE:
  mi:TOUGH_LEATHER:
    # ...

Options

Chance

The chance the item has to drop from the monster when it dies. The number must be between 0 and 1 (excluded) and represents a percentage. 0.01 is 10% chance to drop, 0.001 is 1% chance to drop and 1 is 100% chance. The value can be as small as computably possible:

chance: 0.025 # 2.5% chance to drop

If you want an item to always drop (100% drop chance), set the value to 'ALWAYS':

chance: ALWAYS # The item will always drop

Amount

The amount of that specific items that should drop from the monster when it dies. The amount can be a range, i.e. a random amount in that range will drop:

amount: 1

Or

amount: 2-5 # 2 to 5 items could drop

Full Example

Here's a small example of 2 drops configuration:

ZOMBIE:
  FIRESTEEL_INGOT:
    chance: 0.01
    amount: 1
  mi:TOUGH_LEATHER:
    chance: 0.08
    amount: 1-2
SkeletalMinion:
  pattern:ICESTEEL_INGOT:
    chance: 0.025
    amount: 1
  mi:REINFORCED_LEATHER:
    chance: 0.12
    amount: 1-2

Last updated