Join our discord
In partnership with NodeCraft Logo NodeCraft


You are not logged in! Create an account or login to contribute! Log in here!

Difference between revisions of "Drop JSONs"

From Pixelmon Wiki
(Moved drop JSON data off to its own page. Probably needs further work, but this will do for now.)
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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]].
+
<seo title="External drop JSON files" metakeywords="Pixelmon Reforged external JSONs spawns drops moves rules NPCs stats structures shops shopkeepers" metadescription="A guide explaining how to enable and work with Pixelmon's NPC drop files."/>
Drop files are located at <code><''Minecraft'' directory>/pixelmon/drops</code>.
+
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 Normal Pokémon, [[Boss]] Pokémon, [[Raids]], loot from [[PokéLoot Chests]] as well as the Blank [[Galarian TM]]/[[TR]] Imprint Rate. Drop files are located at <code><''Minecraft'' directory>/pixelmon/drops</code>.
  
 
Examples of how to edit these files can be found on [[External JSON files/Examples|this page]].
 
Examples of how to edit these files can be found on [[External JSON files/Examples|this page]].
 +
 +
===blankimprintrate.json===
 +
This file contains a list of all [[Galarian TM]]s and [[TR]]s along with the number of uses needed to complete the disk beside each move.<br>
 +
There are two JSON arrays: <code>tm_gen8</code> and <code>tr_gen8</code>.
  
 
===bossdrops.json===
 
===bossdrops.json===
This file contains data about [[boss Pokémon]] drops and spawning data for Mega Evolved [[boss Pokémon]].
+
This file contains data about [[boss Pokémon]] drops. There are seven JSON arrays: <code>common</code>, <code>uncommon</code>, <code>rare</code>, <code>epic</code>, <code>legendary</code>, <code>ultimate</code> and <code>spooky</code>. These arrays each contain [[item IDs]] for the possible drops of each tier.
*<code>megaDrops</code>: This array contains [[item IDs]] for the possible drops of uncommon and rare boss Pokémon.
 
*<code>shinyMegaDrops</code>: This array contains [[item IDs]] for the possible drops of legendary and ultimate boss Pokémon.
 
*<code>bosses</code>: This array contains spawning data for Mega Evolved boss Pokémon.
 
**<code>name</code>: The name of a Pokémon with a Mega Evolution.
 
**<code>spawnlocation</code>: The [[spawn location]] where the Mega Evolved boss Pokémon can spawn in.
 
**<code>biomes</code>: Unused.
 
**<code>flying</code>: This object contains data about the flying AI of an air or air persistent Mega Evolved boss Pokémon. These are the same flying parameters found in the [[Database_editing#PIXELMONFLY|Pixelmon database]].
 
**<code>swimming</code>: This object contains data about the flying AI of a water Mega Evolved boss Pokémon. These are the same swimming parameters found in the [[Database_editing#PIXELMONSWIM|Pixelmon database]].
 
  
 
===pokechestdrops.json===
 
===pokechestdrops.json===
This file allows the special drop tables to be modified. The file contains three JSON arrays, <code>tier1</code>, <code>tier2</code>, and <code>tier3</code>. Each array contains the [[item IDs]] of items that can be dropped in each special drop tier.
+
This file allows the [[special drop]] tables to be modified. The file contains four JSON arrays: <code>tier1</code>, <code>tier2</code>, <code>tier3</code> and <code>ultraSpace</code>. Each array contains the [[item IDs]] of items that can be dropped in each [[special drop]] tier.
  
 
===pokedrops.json===
 
===pokedrops.json===
Line 27: Line 23:
 
*<code>optdrop1</code>: The second item that the Pokémon can drop 100% of the time.
 
*<code>optdrop1</code>: The second item that the Pokémon can drop 100% of the time.
 
*<code>optdrop2</code>: The third item that the Pokémon can drop 100% of the time.
 
*<code>optdrop2</code>: The third item that the Pokémon can drop 100% of the time.
*<code>raredrop</code>: An item that the Pokémon can drop 10% of the time.
+
*<code>raredrop</code>: 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.
 
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.
  
Line 62: Line 58:
 
|style="text-align:center"|<code>raredropmax</code>
 
|style="text-align:center"|<code>raredropmax</code>
 
|}
 
|}
 +
 +
===raiddrops.json===
 +
This file contains data about [[Raids|Raid]] Drops. There are five JSON arrays, each for the respective Star Level: <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code> and <code>5</code>. Each of these Star Level arrays contain Type Drops, which are Drops are based on the [[Dynamax]] Pokémon's [[type]]. The <code>Any</code> array in each Star Level contains the Star Drops. A complete table of these drops can be found on [[Max Raid Battles|this page]].<br>
 +
*<code>item</code>: The [[item ID]] of the item to drop.<br>
 +
*<code>weight</code>: Defines the weight value of the item. Formula: <code>weight</code>/<code>sum of all weights</code> = probability of obtaining

Latest revision as of 01:07, 29 October 2021

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 Normal Pokémon, Boss Pokémon, Raids, loot from PokéLoot Chests as well as the Blank Galarian TM/TR Imprint Rate. Drop files are located at <Minecraft directory>/pixelmon/drops.

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

blankimprintrate.json

This file contains a list of all Galarian TMs and TRs along with the number of uses needed to complete the disk beside each move.
There are two JSON arrays: tm_gen8 and tr_gen8.

bossdrops.json

This file contains data about boss Pokémon drops. There are seven JSON arrays: common, uncommon, rare, epic, legendary, ultimate and spooky. These arrays each contain item IDs for the possible drops of each tier.

pokechestdrops.json

This file allows the special drop tables to be modified. The file contains four JSON arrays: tier1, tier2, tier3 and ultraSpace. 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

raiddrops.json

This file contains data about Raid Drops. There are five JSON arrays, each for the respective Star Level: 1, 2, 3, 4 and 5. Each of these Star Level arrays contain Type Drops, which are Drops are based on the Dynamax Pokémon's type. The Any array in each Star Level contains the Star Drops. A complete table of these drops can be found on this page.

  • item: The item ID of the item to drop.
  • weight: Defines the weight value of the item. Formula: weight/sum of all weights = probability of obtaining

© 2012 - 2025 Pixelmon Mod