Pot



Pots are common items generated at world creation in random areas. When broken with any weapon or tool, they will drop Coins and/or random common items. Pots cannot be picked up, never respawn, and cannot be crafted.

Upon Breaking
Upon breaking a Pot, the game follows the process below to decide what happens:
 * 1) First of all, 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 5-15, one at a time, before disappearing. This chance ranges, depending on the location and type of pot, between 0.4% and 1.6% (1/250 and 1/62.5). If the Coin Portal spawns, the process ends.
 * 2) If it is in front of dungeon walls and below the surface level, there is a 1/40(2.5%) to drop a . If it drops, the process ends.
 * 3) 1/45 chance to drop a bottle of potion. The possible types of potions vary vary with depth, and the chances of different potions are equal. If potion drops, the process ends.
 * 4) * Surface:, , , , , , ,.
 * 5) * Underground:, , , , , , , , ,.
 * 6) * Cavern:, , , , , , , , , , , , ,.
 * 7) * Underworld:, , , , , , , , , , , ,.
 * 8) If it's multiplayer, there is 1/30 chance to drop 1 . If it drops, the process ends.
 * 9) Generate a random number   from 1 to 8(inclusive), then:
 * 10) If   is 1: If 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.
 * 11) If   is 2: If the player closest to the pot is not full of mana,  drops 1.
 * 12) If   is 3: Drops  or (if in liquid). The amount is 2-5, and in Expert mode, there will be an additional 1-6.
 * 13) If   is 4: 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, else if in hardmode, it will be replaced by  or  (50%/50%). The amount of dropped ammo is 20-40.
 * 14) If   is 5: Drops 1  or (when in Underworld or in hardmode). In expert mode, there will be 1/3 chance to drop 1 more.
 * 15) If   is 6 and in Cavern layer or Underworld layer, drops 1-4 . In expert mode, will drops additional 0-3 . The process ends.
 * 16) If   is 6 or 7 and not in Underworld layer and not in hardmode, drops 20-40 . The process ends.
 * 17) Drops money.

History
Topf Pot