User:4e696e6a6f795844/Sandbox3

Upon Breaking
Upon breaking a Pot, the game follows the process below to decide what happens:
 * There is a small chance that a Coin Portal will spawn in place of the Pot's normal drops. A Coin Portal displays briefly as a floating circular effect, dispensing 4-15, one at a time, before disappearing. The chance of a portal spawning is based on the pot type and the closest player's luck.
 * {| class="terraria" style="text-align:center;"

! Image !! Pot Type !! Chance of coin portal spawning
 * || Forest Pots || 1/500
 * || Tundra Pots || 1/461
 * || Jungle Pots || 1/400
 * || Dungeon Pots || 1/384
 * || Underworld Pots || 1/365
 * || Corruption/Crimson Pots || 1/365
 * || Spider Cave Pots || 1/272
 * || Pyramid Pots || 1/125
 * || Lihzahrd Pots || 1/250 / 1/500
 * || Marble Cave Pots || 1/375
 * || Underground Desert Pots || 1/461
 * }
 * If it is in front of dungeon walls and below the surface level, there is a 1/35 (2.85%) to drop a . If it drops, the process ends.
 * If the player is playing on the secret world seed for the worthy, there is a 1/4 chance the pot will drop a bomb. If this happens, the process ends.
 * 1/45 chance to drop a bottle of potion. If potion drops, the process ends. The possible types of potions vary with depth:
 * {| class="terraria"
 * || Lihzahrd Pots || 1/250 / 1/500
 * || Marble Cave Pots || 1/375
 * || Underground Desert Pots || 1/461
 * }
 * If it is in front of dungeon walls and below the surface level, there is a 1/35 (2.85%) to drop a . If it drops, the process ends.
 * If the player is playing on the secret world seed for the worthy, there is a 1/4 chance the pot will drop a bomb. If this happens, the process ends.
 * 1/45 chance to drop a bottle of potion. If potion drops, the process ends. The possible types of potions vary with depth:
 * {| class="terraria"
 * If the player is playing on the secret world seed for the worthy, there is a 1/4 chance the pot will drop a bomb. If this happens, the process ends.
 * 1/45 chance to drop a bottle of potion. If potion drops, the process ends. The possible types of potions vary with depth:
 * {| class="terraria"

! Surface !! Underground !! Cavern !! Underworld (1/10)
 * - style="vertical-align:top;"
 * style="padding: 0 0.5em;" |

(1/10)

(1/10)

(1/10)

(1/10)

(1/10)

(1/10)

(3/10) (1/11)
 * style="padding: 0 0.5em;" |

(1/11)

(1/11)

(1/11)

(1/11)

(1/11)

(1/11)

(1/11)

(1/11)

(2/11) (1/15)
 * style="padding: 0 0.5em;" |

(1/15)

(1/15)

(2/15)

(1/15)

(1/15)

(1/15)

(1/15)

(1/15)

(1/15)

(1/15)

(1/15)

(1/15)

(1/15) (1/14)
 * style="padding: 0 0.5em;" |

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/14)

(1/5) (May drop along with any of the potions above)


 * }
 * In multiplayer, there is 1/30 chance to drop 1 . If it drops, the process ends.
 * Generate a random number  from 1 to 8  (inclusive), then:
 * If  is 1 and the player closest to the pot is not full of health: drops 1, and then 50% chance to drop 1 more. In Expert mode, there will be 2 additional 50% chance of dropping 1 . So in Expert mode, there is 1/8 chance to drop 1 , 3/8 chance to drop 2 , 3/8 chance to drop 3 , and 1/8 chance to drop 4.
 * If  is 2 drop torches, as per the table below. Note that if the pot is in a liquid, the torches will instead be replaced with . If the pot is an Tundra Pot, it will drop  instead.
 * {| class="terraria"

! Pot Type / Pot Location !! Torch Type !! Amount
 * ❌ / Hallow || || 4-12
 * / Corruption || || 4-12
 * / Crimson || || 4-12
 * / ❌ || || 4-12
 * / ❌ || || 2-6
 * / ❌ || || 4-12
 * }
 * If  is 3: Drops a stack of ammo. The default type is . If in Surface layer or Underground layer, there is a 50% chance being replaced by  / . Then, if in Underworld, it will be replaced by, otherwise, in Hardmode, it will be replaced by  or  (in worlds with silver) /  (in worlds with tungsten) (50%/50%). The amount of dropped ammo is 10-20.
 * If  is 4: Drops 1  or  (when in Underworld or in Hardmode). In expert mode, there will be 1/3 chance to drop 1 more.
 * If  is 5: If the Pot is not a Desert Pot, or is above the underground layer,   is set to 6. Otherwise, if in Cavern layer or Underworld layer, the pot drops 1-4  . If the Pot is a Desert Pot, the pot will drop  instead. The process ends.
 * If  is 6 and not in Underworld layer and not in Hardmode, drops 20-40 . The process ends.
 * If  is 7 or 8, the pot drops money. The value is heavily influenced by location and the kind of pot broken. All pots start off dropping  to, and the game applies the bonuses below to get the total money dropped.
 * {| class="terraria"
 * If  is 3: Drops a stack of ammo. The default type is . If in Surface layer or Underground layer, there is a 50% chance being replaced by  / . Then, if in Underworld, it will be replaced by, otherwise, in Hardmode, it will be replaced by  or  (in worlds with silver) /  (in worlds with tungsten) (50%/50%). The amount of dropped ammo is 10-20.
 * If  is 4: Drops 1  or  (when in Underworld or in Hardmode). In expert mode, there will be 1/3 chance to drop 1 more.
 * If  is 5: If the Pot is not a Desert Pot, or is above the underground layer,   is set to 6. Otherwise, if in Cavern layer or Underworld layer, the pot drops 1-4  . If the Pot is a Desert Pot, the pot will drop  instead. The process ends.
 * If  is 6 and not in Underworld layer and not in Hardmode, drops 20-40 . The process ends.
 * If  is 7 or 8, the pot drops money. The value is heavily influenced by location and the kind of pot broken. All pots start off dropping  to, and the game applies the bonuses below to get the total money dropped.
 * {| class="terraria"

! Criteria ! Money Modifier
 * Pot is on the surface
 * Pot is above the cavern layer
 * Pot is in the bottom 250 tiles of the world.
 * 25% chance
 * 12.5% chance
 * 8.33% chance
 * 6.25% chance
 * 5% chance
 * Expert mode
 * Expert mode and 25% chance
 * Expert mode and 33.33% chance
 * Expert mode and 25% chance
 * Repeat this step for each of the following defeated: Eye of Cthulhu, Eater of Worlds / Brain of Cthulhu, Skeletron, The Destroyer, The Twins, Skeletron Prime, Plantera, Queen Bee, Golem, Pirate Invasion, Goblin Invasion, Frost Legion
 * }
 * {| class="terraria" style="text-align:center;"
 * 8.33% chance
 * 6.25% chance
 * 5% chance
 * Expert mode
 * Expert mode and 25% chance
 * Expert mode and 33.33% chance
 * Expert mode and 25% chance
 * Repeat this step for each of the following defeated: Eye of Cthulhu, Eater of Worlds / Brain of Cthulhu, Skeletron, The Destroyer, The Twins, Skeletron Prime, Plantera, Queen Bee, Golem, Pirate Invasion, Goblin Invasion, Frost Legion
 * }
 * {| class="terraria" style="text-align:center;"
 * Expert mode
 * Expert mode and 25% chance
 * Expert mode and 33.33% chance
 * Expert mode and 25% chance
 * Repeat this step for each of the following defeated: Eye of Cthulhu, Eater of Worlds / Brain of Cthulhu, Skeletron, The Destroyer, The Twins, Skeletron Prime, Plantera, Queen Bee, Golem, Pirate Invasion, Goblin Invasion, Frost Legion
 * }
 * {| class="terraria" style="text-align:center;"
 * Expert mode and 25% chance
 * Repeat this step for each of the following defeated: Eye of Cthulhu, Eater of Worlds / Brain of Cthulhu, Skeletron, The Destroyer, The Twins, Skeletron Prime, Plantera, Queen Bee, Golem, Pirate Invasion, Goblin Invasion, Frost Legion
 * }
 * {| class="terraria" style="text-align:center;"
 * Repeat this step for each of the following defeated: Eye of Cthulhu, Eater of Worlds / Brain of Cthulhu, Skeletron, The Destroyer, The Twins, Skeletron Prime, Plantera, Queen Bee, Golem, Pirate Invasion, Goblin Invasion, Frost Legion
 * }
 * {| class="terraria" style="text-align:center;"
 * }
 * {| class="terraria" style="text-align:center;"
 * {| class="terraria" style="text-align:center;"

! Image !! Pot Type !! Money Modifier
 * || Forest Pots || 100%
 * || Tundra Pots ||
 * || Jungle Pots ||
 * || Dungeon Pots ||
 * || Underworld Pots || 
 * || Corruption/Crimson Pots ||
 * || Spider Cave Pots || 
 * || Pyramid Pots || 
 * || Lihzahrd Pots ||  / 100%
 * || Marble Cave Pots || 
 * || Underground Desert Pots ||
 * }
 * The absolute least a pot can drop is, while the most is.
 * || Spider Cave Pots || 
 * || Pyramid Pots || 
 * || Lihzahrd Pots ||  / 100%
 * || Marble Cave Pots || 
 * || Underground Desert Pots ||
 * }
 * The absolute least a pot can drop is, while the most is.
 * || Underground Desert Pots ||
 * }
 * The absolute least a pot can drop is, while the most is.
 * The absolute least a pot can drop is, while the most is.