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 "Samosa's Playground"

From Pixelmon Wiki
m
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
===Catching Pokémon===
+
<seo title="Raid JSONs" metakeywords="Pixelmon Reforged JSONs Datapacks spawns drops moves rules NPCs stats structures shops shopkeepers" metadescription="A guide explaining how to configure Pixelmon's raid file."/>
{|class="mw-collapsible mw-collapsed sortable wikitable"
+
Different aspects of the Pixelmon mod can be tweaked through different types of JSON files via a [[Datapack]]. This page covers the base_allies, spawn files and the raids.json file, which define the NPC allies, what Pokémon can spawn in [[Raid Den|Raid Dens]] in which biome and at what Star level(s) and the loot dropped respectively.
! Statistics for catching Pokémon
 
|-
 
| Capture Attempts
 
|-
 
| Pokemon Caught
 
|-
 
| Shiny Pokemon Caught
 
|-
 
| Alolan Pokemon Caught
 
|-
 
| Galarian Pokemon Caught
 
|-
 
| Hisuian Pokemon Caught
 
|-
 
| Paldean Pokemon Caught
 
|-
 
| Legendary Pokemon Caught
 
|-
 
| Legendary Pokemon defeated/fainted
 
|-
 
| Mythical Pokemon Caught
 
|-
 
| Ultra Beast Pokemon Caught
 
|-
 
| Paradox Pokemon Caught
 
|-
 
| Non-Default Palette Pokemon Caught
 
|-
 
| Alter Palette Pokemon Caught
 
|-
 
| Ashen Palette Pokemon Caught
 
|-
 
| Drowned Palette Pokemon Caught
 
|-
 
| JUMP! Palette Pokemon Caught
 
|-
 
| Online Palette Pokemon Caught
 
|-
 
| Pinkan Palette Pokemon Caught
 
|-
 
| Spirit Palette Pokemon Caught
 
|-
 
| Strike Palette Pokemon Caught
 
|-
 
| Summer Palette Pokemon Caught
 
|-
 
| Valencian Palette Pokemon Caught
 
|-
 
| Valentine Palette Pokemon Caught
 
|-
 
| Zombie Palette Pokemon Caught
 
|-
 
| XXS Size Pokemon Caught
 
|-
 
| XS Size Pokemon Caught
 
|-
 
| S Size Pokemon Caught
 
|-
 
| L Size Pokemon Caught
 
|-
 
| XL Size Pokemon Caught
 
|-
 
| XXL Size Pokemon Caught
 
|-
 
| Hidden Ability Pokemon Caught
 
|-
 
| Pokemon with Marks Caught/Obtained
 
|-
 
| Highest Catch Combo
 
|-
 
| Wild Transformed Dittos Captured
 
|-
 
| Critical Captures
 
|}
 
  
===Poke Balls===
+
==Loot Tables==
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Poke Balls
 
|-
 
| Poke Balls Thrown
 
|-
 
| Poke Balls Thrown Outside of Battle
 
|-
 
| Poke Balls Used From Bag in Battle
 
|-
 
| Master Balls Used
 
|}
 
  
===Battle===
+
The <code>raids.json</code> file is where the loot table for raids are defined. As of 9.3.0, raid drops are now defined using [https://minecraft.wiki/w/Loot_table Minecrafts loot table system] and as such the file can be found in the path <code>pixelmon\loot_table\raids.json</code>. Due to this change, a [https://misode.github.io/loot-table/ loot table generator for Vanilla] can be used to generate the raid loot tables technically.
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Battles
 
|-
 
| Total Damage Done
 
|-
 
| White Outs / Black Outs
 
|-
 
| Time Since last Black Out
 
|-
 
| Items Dropped from Pokemon Battles
 
|-
 
| Items Earned from Boss Battles
 
|-
 
| Items Earned from Trainer Battles
 
|-
 
| Items Earned from Wild Battles
 
|-
 
| Consumable Items Used During Battles
 
|-
 
| Highest Amount of Damage Dealt with One Move
 
|-
 
| Max Damage Calculated/Possible with One Move
 
|-
 
| Battles Initiated by Aggressive Pokemon
 
|-
 
| Total Battle Damage Recieved
 
|-
 
| Critical Hits Dealt
 
|-
 
| Critical Hits Recieved
 
|-
 
| Times Status was Applied (Total)
 
|-
 
| Times Status was Recieved
 
|-
 
| Total Recoil Damage Taken
 
|}
 
  
===Battle Opponents' Participant Types===
+
Below is a section of the <code>raids.json</code> file which defines loot available for all type 1-star raids.
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Battle Opponents' Participant Types
 
|-
 
| Wild Pokemon Battles Fought
 
|-
 
| Wild Pokemon Battles Won
 
|-
 
| Wild Pokemon Encountered
 
|-
 
| Wild Shiny Pokemon Encountered
 
|-
 
| Wild Pokemon Defeated
 
|-
 
| Wild Pokemon Battles Fled
 
|-
 
| Trainer Battles Fought
 
|-
 
| Trainer Battles Won
 
|-
 
| Trainers Defeated
 
|-
 
| Trainers' Pixelmon Defeated
 
|-
 
| Player Battles Fought
 
|-
 
| Player Battles Won
 
|-
 
| Players Defeated
 
|-
 
| Players' Pixelmon Defeated
 
|}
 
  
===Battle Types===
+
<spoiler text="Show">
{|class="mw-collapsible mw-collapsed sortable wikitable"
+
<div onload="prettyPrint()">
! Statistics for Battle Types
+
<pre class="prettyprint">
|-
+
    {
| Single Battles Fought
+
      "rolls": {
|-
+
        "min": 1.0,
| Single Battles Won
+
        "max": 5.0,
|-
+
        "type": "minecraft:uniform"
| Double Battles Fought
+
      },
|-
+
      "bonus_rolls": 0.0,
| Double Battles Won
+
      "name": "raid",
|-
+
      "entries": [
| Triple Battles Fought
+
        {
|-
+
          "name": "pixelmon:rare_candy",
| Triple Battles Won
+
          "weight": 25,
|-
+
          "type": "minecraft:item"
| Rotation Battles Fought
+
        },
|-
+
        {
| Rotation Battles Won
+
          "name": "pixelmon:ruby",
|-
+
          "weight": 50,
| Horde Battles Fought
+
          "type": "minecraft:item"
|-
+
        },
| Horde Battles Won
+
        {
|-
+
          "name": "pixelmon:sapphire",
| Pixelmon Grass Battles
+
          "weight": 50,
|-
+
          "type": "minecraft:item"
| Cave Rock Battles
+
        },
|}
+
        {
 +
          "name": "minecraft:amethyst_shard",
 +
          "weight": 50,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:crystal",
 +
          "weight": 50,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:dynamax_candy",
 +
          "weight": 100,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:xs_exp_candy",
 +
          "weight": 100,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:s_exp_candy",
 +
          "weight": 100,
 +
          "type": "minecraft:item"
 +
        }
 +
      ],
 +
      "conditions": [
 +
        {
 +
          "terms": [
 +
            {
 +
              "stars": 1,
 +
              "condition": "pixelmon:star_level"
 +
            }
 +
          ],
 +
          "condition": "minecraft:all_of"
 +
        }
 +
      ]
 +
    },
 +
</pre>
 +
</div>
 +
</spoiler>
  
=== Battle Gimmicks/Mechanics===
+
* The <code>rolls</code> part specifies how many rolls will be done of a pool. In each roll of a pool, the pool draws one entry from all its entries. Each roll of a pool is independent.
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Battle Gimmicks/Mechanics
 
|-
 
| Times Mega Evolved
 
|-
 
| Times a Z Move was Used
 
|-
 
| Times Underwent Ultra Burst
 
|-
 
| Times Underwent Primal Reversion
 
|-
 
| Times Dynamaxed
 
|-
 
| Times Gigantamaxed
 
|}
 
  
===Boss Battles and Max Raid Battles===
+
* The <code>entries</code> part is where items to be added to the loot pool are defined. These are added with a name/value, a weight and a type. An entry can either be a single item or an entire seperate loot tables items which can be seen later in this page.
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Boss Battles and Max Raid Battles
 
|-
 
| Bosses Battled
 
|-
 
| Bosses Defeated
 
|-
 
| Bosses Defeated Common Tier
 
|-
 
| Bosses Defeated Uncommon Tier
 
|-
 
| Bosses Defeated Rare Tier
 
|-
 
| Bosses Defeated Epic Tier
 
|-
 
| Bosses Defeated Legendary Tier
 
|-
 
| Bosses Defeated Ultimate Tier
 
|-
 
| Max Raid Battles Participted In
 
|-
 
| Max Raid Battles Won
 
|-
 
| One-Star Max Raid Battles Won
 
|-
 
| Two-Star Max Raid Battles Won
 
|-
 
| Three-Star Max Raid Battles Won
 
|-
 
| Four-Star Max Raid Battles Won
 
|-
 
| Five-Star Max Raid Battles Won
 
|}
 
  
===Breeding===
+
* The <code>conditions</code> part is where the condition for the loot table is defined, such as the star level needed for the system to pick an item from that loot table which is seen further in the <code>terms</code> section. Furthermore, the last <code>condition</code> section is what defines the typing that is checked in order for this loot table to apply. The above example uses <code>minecraft:all_of</code> which means all types of raids (Bug, Fairy, Psychic etc) will use this loot table.
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Breeding
 
|-
 
| Pokemon Bred
 
|-
 
| Pokemon Eggs Hatched
 
|-
 
| Random Ditto-Ditto Pokemon Eggs Hatched
 
|-
 
| Shiny Pokemon Hatched
 
|-
 
| Max IVs Pokemon Hatched
 
|}
 
  
===Fishing===
+
Below is a section of the <code>raids.json</code> which defines the loot table for 2-star level Grass Raids.
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Fishing
 
|-
 
| Pokemon Fishing Rods Cast
 
|-
 
| Pokemon Reeled In
 
|-
 
| Items Reeled in While Fishing/Using Pixelmon Rods
 
|}
 
  
===Leveling Up and Evolution===
+
<spoiler text="Show">
{|class="mw-collapsible mw-collapsed sortable wikitable"
+
<div onload="prettyPrint()">
! Statistics for Leveling up and Evolution
+
<pre class="prettyprint">
|-
+
    {
| Pokemon Exp. Gained
+
      "rolls": {
|-
+
        "min": 1.0,
| Pokemon Exp. Gained from Exp. All
+
        "max": 5.0,
|-
+
        "type": "minecraft:uniform"
| Pokemon Exp. Gained from Exp. Share
+
      },
|-
+
      "bonus_rolls": 0.0,
| Pokemon Exp. Gained from Exp, Candy
+
      "name": "raid",
|-
+
      "entries": [
| Bonus Exp. Gained from Lucky Eggs
+
        {
|-
+
          "name": "pixelmon:miracle_seed",
| Level Ups
+
          "weight": 5,
|-
+
          "type": "minecraft:item"
| Level Ups from Consumables (Rare Candy, Rare Soda, Ultra Rare Soda
+
        },
|-
+
        {
| Pokemon Evolved
+
          "value": "pixelmon:intermediate/grass",
|}
+
          "weight": 50,
 +
          "type": "minecraft:loot_table"
 +
        },
 +
        {
 +
          "name": "pixelmon:tamato_berry",
 +
          "weight": 50,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:aguav_berry",
 +
          "weight": 50,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:pomeg_berry",
 +
          "weight": 50,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:iapapa_berry",
 +
          "weight": 50,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:tiny_mushroom",
 +
          "weight": 30,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:big_mushroom",
 +
          "weight": 20,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:balm_mushroom",
 +
          "weight": 10,
 +
          "type": "minecraft:item"
 +
        },
 +
        {
 +
          "name": "pixelmon:leaf_stone",
 +
          "weight": 25,
 +
          "type": "minecraft:item"
 +
        }
 +
      ],
 +
      "conditions": [
 +
        {
 +
          "terms": [
 +
            {
 +
              "stars": 2,
 +
              "condition": "pixelmon:star_level"
 +
            },
 +
            {
 +
              "terms": [
 +
                {
 +
                  "type": "Grass",
 +
                  "condition": "pixelmon:secondary_type"
 +
                },
 +
                {
 +
                  "type": "Grass",
 +
                  "condition": "pixelmon:secondary_type"
 +
                }
 +
              ],
 +
              "condition": "minecraft:any_of"
 +
            }
 +
          ],
 +
          "condition": "minecraft:all_of"
 +
        }
 +
      ]
 +
    }
 +
</pre>
 +
</div>
 +
</spoiler>
  
===EVs, IVs, Nature, Abilities, Friendship===
+
* Notice that one of the entries is an entire loot table for Grass types which is used in other parts of Pixelmon. This has been given a <code>value</code> of <code>pixelmon:intermediate/grass</code> in this file as opposed to the earlier example. This means one of the rolls can pull an item from that loot table. This grass loot table can be found in <code>pixelmon\loot_table_intermediate</code> path.
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for EVs, IVs, Nature, Abilities, Friendship
 
|-
 
| EVs Gained (Total)
 
|-
 
| EVs Gained via Battle
 
|-
 
| EVs Gained via Exp. Share
 
|-
 
| EVs Gained via Consumables (Feathers, Vitamins, Juices)
 
|-
 
| EVs Gained via Power Items
 
|-
 
| EVs Gained from Defeated Pokemon
 
|-
 
| EVs Gained from Macho Brace
 
|-
 
| EVs Gained from Pokerus
 
|-
 
| EVs Removed
 
|-
 
| Wild Pokemon Natures Synchronized
 
|-
 
| Items Collected from Pickup
 
|-
 
| Held Items Rereolled with Super Luck
 
|-
 
| Friendship Gained
 
|-
 
| Friendship Gained from Soothe Bells
 
|-
 
| Friendship Lost
 
|}
 
  
===Moves===
+
* This example also uses different conditions as it is specific to 2-star Grass types raids. The <code>terms</code> have been set to include Grass as a <code>pixelmon:secondary_type</code>
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Moves
 
|-
 
| Moves Forgotten
 
|-
 
| Moves Learned
 
|-
 
| Moves Learned via Level Up
 
|-
 
| Moves Taught via Item
 
|-
 
| Moves Taught via NPC
 
|-
 
| Egg Moves Learned
 
|-
 
| Egg Moves Learned via Mirror Herb
 
|}
 
  
===Trading and Gifting===
+
==Raid Spawns==
{|class="mw-collapsible mw-collapsed sortable wikitable"
 
! Statistics for Trading and Gifting
 
|-
 
| Pokemon Traded
 
|-
 
| Pokemon Traded with NPCs
 
|-
 
| Pokemon Traded with Players
 
|}
 
  
===Exploration===
+
Raid spawns, as of 9.3.0, are now defined per Pokémon species. These files can be access through the <code>pixelmon\pixelmon\raid\spawn\</code> file path. By default, raid spawns are pulled from the standard Pokémon spawns however these can be edited in any way.
{|class="mw-collapsible mw-collapsed sortable wikitable"
+
 
! Statistics for Exploration
+
Below is the default spawning JSON for [[Bulbasaur]].
|-
+
 
| Legendary Bird Shrines Activated
+
<pre>{
|-
+
  "spawns": [
| Mew Cloning Attempts
+
    {
|-
+
      "spec": "Bulbasaur",
| Tidal Bells/Clear Bells Activated
+
      "loot_table": "pixelmon:raid_den/raids",
|-
+
      "stars": {
| Ilex Shrines Activated
+
        "type": "minecraft:uniform",
|-
+
        "min_inclusive": 1,
| Arc Chalices Activated
+
        "max_inclusive": 2
|-
+
      },
| Dialga/Palkia/Giratina Time Space Altars Activated
+
      "biomes": "#pixelmon:raid/spawn/0001_bulbasaur",
|-
+
      "weight": 1.0
| Zygarde Reassembled
+
    }
|-
+
  ]
| Mystery Boxes Activated/Opened
+
}</pre>
|-
+
 
| Pokeloot Found (Total)
+
* The <code>spec</code> field is where the Species is defined along with any additional [[Pokemon spec]] which can be added, such as forms and palettes.
|-
+
* The <code>loot_table</code> field is what Loot table is to be used for this Pokemon. By default, Bulbasaur will use the standard loot tables in the <code>raids.json</code> file however this can be changed.
| Poke Chest Found
+
* The <code>stars</code> field is
|-
 
| Ultra Chest Found
 
|-
 
| Master Chest Found
 
|}
 

Latest revision as of 22:11, 10 May 2025

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

Loot Tables

The raids.json file is where the loot table for raids are defined. As of 9.3.0, raid drops are now defined using Minecrafts loot table system and as such the file can be found in the path pixelmon\loot_table\raids.json. Due to this change, a loot table generator for Vanilla can be used to generate the raid loot tables technically.

Below is a section of the raids.json file which defines loot available for all type 1-star raids.

Show


  • The rolls part specifies how many rolls will be done of a pool. In each roll of a pool, the pool draws one entry from all its entries. Each roll of a pool is independent.
  • The entries part is where items to be added to the loot pool are defined. These are added with a name/value, a weight and a type. An entry can either be a single item or an entire seperate loot tables items which can be seen later in this page.
  • The conditions part is where the condition for the loot table is defined, such as the star level needed for the system to pick an item from that loot table which is seen further in the terms section. Furthermore, the last condition section is what defines the typing that is checked in order for this loot table to apply. The above example uses minecraft:all_of which means all types of raids (Bug, Fairy, Psychic etc) will use this loot table.

Below is a section of the raids.json which defines the loot table for 2-star level Grass Raids.

Show


  • Notice that one of the entries is an entire loot table for Grass types which is used in other parts of Pixelmon. This has been given a value of pixelmon:intermediate/grass in this file as opposed to the earlier example. This means one of the rolls can pull an item from that loot table. This grass loot table can be found in pixelmon\loot_table_intermediate path.
  • This example also uses different conditions as it is specific to 2-star Grass types raids. The terms have been set to include Grass as a pixelmon:secondary_type

Raid Spawns

Raid spawns, as of 9.3.0, are now defined per Pokémon species. These files can be access through the pixelmon\pixelmon\raid\spawn\ file path. By default, raid spawns are pulled from the standard Pokémon spawns however these can be edited in any way.

Below is the default spawning JSON for Bulbasaur.

{
  "spawns": [
    {
      "spec": "Bulbasaur",
      "loot_table": "pixelmon:raid_den/raids",
      "stars": {
        "type": "minecraft:uniform",
        "min_inclusive": 1,
        "max_inclusive": 2
      },
      "biomes": "#pixelmon:raid/spawn/0001_bulbasaur",
      "weight": 1.0
    }
  ]
}
  • The spec field is where the Species is defined along with any additional Pokemon spec which can be added, such as forms and palettes.
  • The loot_table field is what Loot table is to be used for this Pokemon. By default, Bulbasaur will use the standard loot tables in the raids.json file however this can be changed.
  • The stars field is

© 2012 - 2025 Pixelmon Mod