In partnership with NodeCraft Logo NodeCraft

From Pixelmon Wiki

Different aspects of the Pixelmon mod can be tweaked through different types of external JSON files. This page covers the drop files, which define what items drop from both normal and boss Pokémon, as well as loot from PokéLoot Chests. Drop files are located at <Minecraft directory>/pixelmon/drops.

Examples of how to edit these files can be found on this page.

bossdrops.json

This file contains data about boss Pokémon drops and spawning data for Mega Evolved boss Pokémon.

  • megaDrops: This array contains item IDs for the possible drops of uncommon and rare boss Pokémon.
  • shinyMegaDrops: This array contains item IDs for the possible drops of legendary and ultimate boss Pokémon.
  • bosses: This array contains spawning data for Mega Evolved boss Pokémon.
    • name: The name of a Pokémon with a Mega Evolution.
    • spawnlocation: The spawn location where the Mega Evolved boss Pokémon can spawn in.
    • biomes: Unused.
    • flying: This object contains data about the flying AI of an air or air persistent Mega Evolved boss Pokémon.
    • swimming: This object contains data about the flying AI of a water Mega Evolved boss Pokémon.

pokechestdrops.json

This file allows the special drop tables to be modified. The file contains three JSON arrays, tier1, tier2, and tier3. Each array contains the item IDs of items that can be dropped in each special drop tier.

pokedrops.json

This file allows regular Pokémon drops to be edited. It is an array of JSON objects, one for each Pokémon. Pokémon that are not implemented in Pixelmon are also contained in this file, although these entries are currently unused by Pixelmon.

  • pokemon: The name of the Pokémon whose drops are being defined in the object.

All other fields follow a similar format, but allow for multiple drops with different rarities and quantities to be defined. JSON keys are created by combining a drop type and a data type.

Drop types include:

  • maindrop: The first item that the Pokémon can drop 100% of the time.
  • optdrop1: The second item that the Pokémon can drop 100% of the time.
  • optdrop2: The third item that the Pokémon can drop 100% of the time.
  • raredrop: An item that the Pokémon can drop 5% of the time.

It is not necessary to include all four drop types in a drop entry; Pokémon can have up to four items to drop, but may also drop fewer than four items.

Data types include:

  • data: The item ID of the item to drop.
  • min: The minimum quantity of the item that the Pokémon can drop. This number can also be 0 for the item to not always be dropped (or to make the drop rarer for raredrop) . If this field is omitted, its default value is 0.
  • max: The maximum quantity of the item that the Pokémon can drop. If this field is omitted, its default value is 1.

Drop quantities are chosen uniformly randomly between min and max, inclusive of both numbers.

Drop types and data types can be combined into the following JSON keys:

maindrop optdrop1 optdrop2 raredrop
data maindropdata optdrop1data optdrop2data raredropdata
min maindropmin optdrop1min optdrop2min raredropmin
max maindropmax optdrop1max optdrop2max raredropmax

© 2014 - 2020 Pixelmon Mod