The Underground, introduced in Diamond, Pearl, and Platinum, allows the player to set up a Secret Base, dig for items, and communicate with other players. This page contains documentation about the mechanics behind digging for items.
The items that can appear while digging in the Underground are dependent on the version of the game the player is using. Diamond and Pearl use different tables to determine possible items and their rarity. Platinum uses the tables for Diamond if the player's Trainer ID is odd, and the tables for Pearl if their ID is even.
There are two different tables used by the game: one is used before the player receives the National Pokédex, and the other is used afterward. Additionally, a change occurs to the rarity of Prism Spheres after picking up the Adamant Orb at Spear Pillar in Diamond, or to the rarity of Pale Spheres after picking up the Lustrous Orb in Pearl. This doesn't happen in Platinum.
Every day at midnight, the game will reset all of the dig spots in the Underground. The dig spots, once generated, are always consistent regardless of where the player enters the Underground from. The player will be able to see spots nearby them as sparkles on the map.
When dig spots are generated, the game follows the following process:
When the game chooses which treasures to include in any one dig spot, it starts by choosing whether to place 2, 3, or 4 treasures. This is random, and the possible treasures that can be placed do not change depending on the number of total treasures in the dig spot.
When a random treasure is selected to add to the current session, the game follows the following process:
The very first time the player attempts to Dig, a "tutorial mode" is entered, which will always contain 3 treasures and no undiggable rocks.
Some treasures have rotated versions that are rotated 90, 180, or 270 degrees from the 'initial' position that can be used in place of the initial positions. The list of potentially rotated items, and their angles of rotation, is shown below.
| Item | Angles |
|---|---|
| Moon Stone | 0 deg, 90 deg |
| Leaf Stone | 0 deg, 90 deg |
| Helix Fossil | 0 deg, 90 deg, 180 deg, 270 deg |
| Claw Fossil | 0 deg, 90 deg, 180 deg, 270 deg |
| Root Fossil | 0 deg, 90 deg, 180 deg, 270 deg |
| Old Amber | 0 deg, 90 deg |
| Rare Bone | 0 deg, 90 deg |
Some rotations can be more common than others, even for the same item. The details are given in the 'Item Table' section below.
The player can use a pickaxe and a hammer to clear rocks on the minigame grid and expose the treasures, but each use of either tool causes the wall to get closer to collapsing. The minigame session ends when the wall collapses or all placed treasures have been dug up, whichever happens first.
The wall starts with 196 health and collapses when it reaches 0. The pickaxe decreases health by 4, and the hammer decreases it by 8.
Each tile on the wall has its own health, between 0 and 6, indicated visually by the appearance of the tile. A tile whose health is 0 exposes any treasures, undiggable rocks, or blank wall behind it, meaning the tile has been fully excavated. When first beginning a minigame session, all tiles have a health of 2, 4, or 6.
When generating the minigame grid's surface, the game follows the following process:
When using a tool on a tile, the selected tile will first have its health decreased by two. Following the health decrease, the game will then decrease the health of adjacent tiles, but only if the selected tile is not showing an undiggable rock. The following patterns demonstrate the total health decreases (including the initial 2 on the selected tile) surrounding the selected tile, with the bolded number representing the selected tile.
| 1 | ||
| 1 | 3 | 1 |
| 1 |
| 1 | 2 | 1 |
| 2 | 4 | 2 |
| 1 | 2 | 1 |
The Sphere items can be Small or Large, and within those categories, can be different numerical sizes.
A Sphere starts with a random size within a certain range. Red, Green, and Blue Spheres have an initial size between 1 and 4 (inclusive), and Prism and Pale Spheres always start with a size of 1.
If the Sphere is a Large Sphere, 10 is added to the initial size.
A size increase will be applied to all Spheres obtained from one minigame session, but only if all treasures were dug up in that session. The exact size bonus depends on the amount of health that the wall has remaining at the time all treasures are cleared:
| Wall health | Bonus |
|---|---|
| 156+ | 9 |
| 117-155 | 8 |
| 78-116 | 7 |
| 39-77 | 6 |
| 1-38 | 5 |
| 0 | 0 |
It's impossible to get a bonus size of 9, though, because you cannot dig up all treasures while simultaneously keeping the wall at full health.
Every item in a given table is assigned a weight. To calculate the exact appearance rate of any given items, you would add the weights of the available items together, then take the weight of the individual item, multiply it by 100, and divide it by the total weight. My tables below give both the raw weight values of each item and the calculated appearance rate of the item, calculated using the calculation described in the last sentence. However, the calculated rates are not always 100% accurate to what the game will use. There are two reasons for this:
In this section, items that have rotations will have all their rotations' weights combined into one instance of the item.
Remember that Platinum uses the Diamond rates if the player's Trainer ID is odd and the Pearl rates if the ID is even.
| Item | Diamond | Pearl |
|---|---|---|
| Prism Sphere S | 2.95% | 2.17% |
| Pale Sphere S | 2.16% | 2.96% |
| Red Sphere S | 16.42% | 19.11% |
| Blue Sphere S | 19.08% | 16.45% |
| Green Sphere S | 14.75% | 14.78% |
| Prism Sphere L | 1.47% | 1.28% |
| Pale Sphere L | 1.28% | 1.48% |
| Red Sphere L | 8.16% | 9.46% |
| Blue Sphere L | 9.44% | 8.18% |
| Green Sphere L | 7.37% | 7.39% |
| Sun Stone | 0.39% | 0.10% |
| Star Piece | 0.20% | 0.20% |
| Moon Stone | 0.20% | 0.40% |
| Hard Stone | 0.39% | 0.39% |
| Thunderstone | 0.39% | 0.10% |
| Everstone | 0.39% | 0.39% |
| Fire Stone | 0.39% | 0.10% |
| Water Stone | 0.10% | 0.39% |
| Leaf Stone | 0.20% | 0.40% |
| Rare Bone | 0.20% | 0.20% |
| Revive | 0.79% | 0.79% |
| Max Revive | 0.10% | 0.10% |
| Red Shard | 1.28% | 1.28% |
| Blue Shard | 1.28% | 1.28% |
| Yellow Shard | 1.28% | 1.28% |
| Green Shard | 1.28% | 1.28% |
| Heart Scale | 3.24% | 3.25% |
| Shield Fossil | N/A | 2.46% |
| Skull Fossil | 2.46% | N/A |
| Light Clay | 0.10% | 0.10% |
| Iron Ball | 0.10% | 0.10% |
| Icy Rock | 0.20% | 0.10% |
| Smooth Rock | 0.10% | 0.20% |
| Heat Rock | 0.20% | 0.10% |
| Damp Rock | 0.10% | 0.20% |
| Flame Plate | 0.10% | 0.10% |
| Splash Plate | 0.10% | 0.10% |
| Zap Plate | 0.10% | 0.10% |
| Meadow Plate | 0.10% | 0.10% |
| Icicle Plate | 0.10% | 0.10% |
| Fist Plate | 0.10% | 0.10% |
| Toxic Plate | 0.10% | 0.10% |
| Earth Plate | 0.10% | 0.10% |
| Sky Plate | 0.10% | 0.10% |
| Mind Plate | 0.10% | 0.10% |
| Insect Plate | 0.10% | 0.10% |
| Stone Plate | 0.10% | 0.10% |
| Spooky Plate | 0.10% | 0.10% |
| Draco Plate | 0.10% | 0.10% |
| Dread Plate | 0.10% | 0.10% |
| Iron Plate | 0.10% | 0.10% |
| Item | Diamond | Pearl |
|---|---|---|
| Prism Sphere S | 2.74% | 1.96% |
| Pale Sphere S | 2.03% | 2.65% |
| Red Sphere S | 11.14% | 16.09% |
| Blue Sphere S | 15.20% | 12.17% |
| Green Sphere S | 10.84% | 10.50% |
| Prism Sphere L | 1.32% | 0.98% |
| Pale Sphere L | 1.01% | 1.28% |
| Red Sphere L | 6.18% | 7.36% |
| Blue Sphere L | 7.60% | 5.99% |
| Green Sphere L | 5.37% | 5.20% |
| Odd Keystone | 0.20% | 0.20% |
| Sun Stone | 1.52% | 0.29% |
| Star Piece | 1.01% | 0.98% |
| Moon Stone | 0.30% | 1.48% |
| Hard Stone | 2.03% | 1.96% |
| Thunderstone | 3.04% | 0.49% |
| Everstone | 2.03% | 1.96% |
| Fire Stone | 3.04% | 0.49% |
| Water Stone | 0.51% | 2.94% |
| Leaf Stone | 0.50% | 2.94% |
| Helix Fossil | 1.20% | 0.40% |
| Dome Fossil | 0.10% | 1.28% |
| Claw Fossil | 1.20% | 0.40% |
| Root Fossil | 0.40% | 1.16% |
| Old Amber | 0.50% | 0.49% |
| Rare Bone | 1.02% | 0.98% |
| Revive | 1.01% | 0.98% |
| Max Revive | 0.20% | 0.20% |
| Red Shard | 1.72% | 1.67% |
| Blue Shard | 1.72% | 1.67% |
| Yellow Shard | 1.72% | 1.67% |
| Green Shard | 1.72% | 1.67% |
| Heart Scale | 3.04% | 2.94% |
| Shield Fossil | N/A | 1.18% |
| Skull Fossil | 1.22% | N/A |
| Light Clay | 0.51% | 0.20% |
| Iron Ball | 0.20% | 0.49% |
| Icy Rock | 1.11% | 0.49% |
| Smooth Rock | 0.51% | 1.08% |
| Heat Rock | 1.11% | 0.49% |
| Damp Rock | 0.51% | 1.08% |
| Flame Plate | 0.10% | 0.10% |
| Splash Plate | 0.10% | 0.10% |
| Zap Plate | 0.10% | 0.10% |
| Meadow Plate | 0.10% | 0.10% |
| Icicle Plate | 0.10% | 0.10% |
| Fist Plate | 0.10% | 0.10% |
| Toxic Plate | 0.10% | 0.10% |
| Earth Plate | 0.10% | 0.10% |
| Sky Plate | 0.10% | 0.10% |
| Mind Plate | 0.10% | 0.10% |
| Insect Plate | 0.10% | 0.10% |
| Stone Plate | 0.10% | 0.10% |
| Spooky Plate | 0.10% | 0.10% |
| Draco Plate | 0.10% | 0.10% |
| Dread Plate | 0.10% | 0.10% |
| Iron Plate | 0.10% | 0.10% |
In this section, items that have rotations will have their rotations' weights listed separately for each rotation.
| Item | Before National Pokédex | After National Pokédex | ||
|---|---|---|---|---|
| Diamond | Pearl | Diamond | Pearl | |
| Prism Sphere S | 30 | 22 | 27 | 20 |
| Pale Sphere S | 22 | 30 | 20 | 27 |
| Red Sphere S | 167 | 194 | 110 | 164 |
| Blue Sphere S | 194 | 167 | 150 | 124 |
| Green Sphere S | 150 | 150 | 107 | 107 |
| Prism Sphere L | 15 | 13 | 13 | 10 |
| Pale Sphere L | 13 | 15 | 10 | 13 |
| Red Sphere L | 83 | 96 | 61 | 75 |
| Blue Sphere L | 96 | 83 | 75 | 61 |
| Green Sphere L | 75 | 75 | 53 | 53 |
| Odd Keystone | N/A | N/A | 2 | 2 |
| Sun Stone | 4 | 1 | 15 | 3 |
| Star Piece | 2 | 2 | 10 | 10 |
| Moon Stone | 1 | 2 | 1 | 8 |
| Moon Stone (90 deg) | 1 | 2 | 2 | 7 |
| Hard Stone | 4 | 4 | 20 | 20 |
| Thunderstone | 4 | 1 | 30 | 5 |
| Everstone | 4 | 4 | 20 | 20 |
| Fire Stone | 4 | 1 | 30 | 5 |
| Water Stone | 1 | 4 | 5 | 30 |
| Leaf Stone | 1 | 2 | 3 | 15 |
| Leaf Stone (90 deg) | 1 | 2 | 2 | 15 |
| Helix Fossil | N/A | N/A | 3 | 1 |
| Helix Fossil (90 deg) | N/A | N/A | 3 | 1 |
| Helix Fossil (180 deg) | N/A | N/A | 3 | 1 |
| Helix Fossil (270 deg) | N/A | N/A | 3 | 1 |
| Dome Fossil | N/A | N/A | 1 | 13 |
| Claw Fossil | N/A | N/A | 3 | 1 |
| Claw Fossil (90 deg) | N/A | N/A | 3 | 1 |
| Claw Fossil (180 deg) | N/A | N/A | 3 | 1 |
| Claw Fossil (270 deg) | N/A | N/A | 3 | 1 |
| Root Fossil | N/A | N/A | 1 | 3 |
| Root Fossil (90 deg) | N/A | N/A | 1 | 3 |
| Root Fossil (180 deg) | N/A | N/A | 1 | 3 |
| Root Fossil (270 deg) | N/A | N/A | 1 | 3 |
| Old Amber | N/A | N/A | 2 | 2 |
| Old Amber (90 deg) | N/A | N/A | 3 | 3 |
| Rare Bone | 1 | 1 | 5 | 5 |
| Rare Bone (90 deg) | 1 | 1 | 5 | 5 |
| Revive | 8 | 8 | 10 | 10 |
| Max Revive | 1 | 1 | 2 | 2 |
| Red Shard | 13 | 13 | 17 | 17 |
| Blue Shard | 13 | 13 | 17 | 17 |
| Yellow Shard | 13 | 13 | 17 | 17 |
| Green Shard | 13 | 13 | 17 | 17 |
| Heart Scale | 33 | 33 | 30 | 30 |
| Shield Fossil | N/A | 25 | N/A | 12 |
| Skull Fossil | 25 | N/A | 12 | N/A |
| Light Clay | 1 | 1 | 5 | 2 |
| Iron Ball | 1 | 1 | 2 | 5 |
| Icy Rock | 2 | 1 | 11 | 5 |
| Smooth Rock | 1 | 2 | 5 | 11 |
| Heat Rock | 2 | 1 | 11 | 5 |
| Damp Rock | 1 | 2 | 5 | 11 |
| Flame Plate | 1 | 1 | 1 | 1 |
| Splash Plate | 1 | 1 | 1 | 1 |
| Zap Plate | 1 | 1 | 1 | 1 |
| Meadow Plate | 1 | 1 | 1 | 1 |
| Icicle Plate | 1 | 1 | 1 | 1 |
| Fist Plate | 1 | 1 | 1 | 1 |
| Toxic Plate | 1 | 1 | 1 | 1 |
| Earth Plate | 1 | 1 | 1 | 1 |
| Sky Plate | 1 | 1 | 1 | 1 |
| Mind Plate | 1 | 1 | 1 | 1 |
| Insect Plate | 1 | 1 | 1 | 1 |
| Stone Plate | 1 | 1 | 1 | 1 |
| Spooky Plate | 1 | 1 | 1 | 1 |
| Draco Plate | 1 | 1 | 1 | 1 |
| Dread Plate | 1 | 1 | 1 | 1 |
| Iron Plate | 1 | 1 | 1 | 1 |