Join our discord
In partnership with NodeCraft Logo NodeCraft


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

Raid JSON

From Pixelmon Wiki
Revision as of 13:46, 27 April 2023 by Jclark (talk | contribs) (Big overhaul of raids.json Datapack Section)

Different aspects of the Pixelmon mod can be tweaked through different types of JSON files via a Datapack. This page covers the raids.json file, which defines what Pokémon can spawn in Raid Dens in which biome and at what Star level(s).

Understanding the JSON Data

While the JSON file may have a lot of lines within it, it is done in a way where the Biomes and Species of pokemon are grouped together under what could be called Raid Groups or Biome Categories. The file contains biomes from Vanilla, BiomesOPlenty, byg, and terraforged.

Note: Adding additional biomes or using biomes that may or may not be compatible with the pixelmon mod may result in the mod not working as intended.

Here you can see a more visual representation of what the code structure looks like without the data.

{
    "group": {
        "biomes": [],
        "species": []
    }
}


Biome Categories

This JSON file is grouped into 43 Biome Categories: Badlands, Beaches, Birches, Burntforest, coldocean, Coralmangroves, Graggardens, Deadsea, Deserts, End, Evil, Flowery, Forests, Freezingbeaches, Freezingforests, Freezingmountains, Freezingocean, Freezingplains, Freshwater, Frozenwater, hills, jungles, lukewarmocean, magical, mountainousforests, mountainous, mushroom, nether, ocean, otherfreezing, plains, pollutedlake, redwoods, roofed, savannas, shatteredglacier, Stonybeaches, Subzerohypogeal, Swamps, Taigas, Tundra, Ultradeepsea, Volcano, Warmocean

NOTE: The Biome Categories are not fixed names and can be changed as needed, they primarily group the actual biomes and species defined below.

Biomes

Each biome category contains two arrays: biomes and species.

  • biomes - A list of biome ids where Pokémon can spawn in a raid den.
        "biomes": [
             "minecraft:plains",
             "byg:red_rock_mountains"      
        ]

Species

  • species - A list of Pokémon that can spawn in a raid den. The numbers behind the Pokémon name represent the star level(s) the Pokémon will spawn at. The general format is: "#,#,#,#,#-Pokemon".

# can be 1-5 (star level) and there can be multiple star levels per Pokémon, up to a maximum of 5 if all 5 star levels are included. They must be separated by a comma. The last star level number has a - dash symbol after it followed by the Pokémon's name.

Below is an example of the different variations of raid levels as mentioned above.

        "species": [
             "4-Pikachu",
             "1,2-Diglett",
             "3,4,5-Dugtrio",
             "1,3,4,5-Ditto",
             "1,2,3,4,5-Cyndaquil"
        ]


Creating a Data pack

Following the steps from the Datapack section, all you have to do is to:

  1. Create a raids folder
  2. Copy over the original raids.json file.
  3. Modify the data as you so desire.

Troubleshooting

  1. JSON Validation (Making sure commas are used properly)

Default Raids JSON

Show/Hide

© 2012 - 2025 Pixelmon Mod