Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
Game mechanicsNovember 22, 20266 min read

Loot Tables and Item Drops

A loot table decides what falls out of every chest and enemy. Here is how weighted rolls work, starting rarity percentages, how to stop bad luck streaks and how to make a drop feel exciting.

Startbase Team
Editorial ink illustration of an open wooden treasure chest spilling coins and a sword hilt, the gem in ember orange

Key takeaways

  • Use weights, not percentages that must add to 100. Adding an item then never silently breaks the others.
  • Nest tables: roll the rarity first, then the item within that rarity. It keeps balance readable as the item list grows.
  • Protect players from long dry streaks with a pity counter, and make rare drops look and sound rare.

A loot table is a list of possible drops, each with a weight, that the game rolls against when an enemy dies or a chest opens. To make one, give each entry a weight (common things large, rare things small), pick a random number up to the total weight, and walk the list until the number is used up. Layer tables (rarity first, then the item), add a guaranteed drop where players expect one, and cap bad luck with a pity counter. That is the whole mechanic; the craft is in the numbers.

How a weighted roll works

Say a slime drops nothing (weight 60), a coin pouch (30), a potion (9) or a slime crown (1). The total is 100. Roll a random number from 0 to just under 100: below 60 is nothing, 60 to 89 is coins, 90 to 98 is a potion, 99 is the crown. With weights the total does not need to be 100; if you add a new item at weight 5 the total becomes 105 and everything else becomes slightly rarer, with nothing to recalculate by hand.

Write each entry with a little more than a weight: an item id (or another table's id), a minimum and maximum count (`coins 3 to 8`), and optional conditions (only at night, only after the boss, only if the player is level 5 or higher). Conditions are filtered before the roll, so the weights are always over what is actually possible.

Rarity tiers and starting rates

Most games roll in two steps: first a rarity, then an item of that rarity. Starting weights for an action RPG or looter, per item drop (not per kill):

  • Common: about 70 percent. Basic gear, materials, small consumables.
  • Uncommon: about 22 percent. A better stat roll or a minor effect.
  • Rare: about 6.5 percent. A build-relevant effect.
  • Epic: about 1.3 percent. Strong, noticeable, worth a celebration.
  • Legendary: about 0.2 percent. A rule-changing item; players should find one in a few hours of play, not never.

Check those numbers against play time, not just against each other. If an enemy dies every 3 seconds and 30 percent of kills drop an item, the player sees about 6 items a minute and 360 an hour. At 0.2 percent legendary, that is about 0.7 legendaries per hour. Do the same math for your game; the most common balance mistake is rates tuned in a spreadsheet that turn into one legendary per twelve hours on screen.

Tip

Tune rarity weights while playing. Ask for them as dials and they appear in the engine panel of the games template, so you can raise epic drops for a test session without editing data.

Nested tables and guaranteed drops

Real games rarely have one table. A boss chest might be: always 50 to 80 gold, always one roll on the boss table, plus two rolls on the forest table, plus a 25 percent chance at a crafting material. Build tables that can contain other tables and you get this for free: `bossChest` rolls `gold`, `forestBoss` and `forestCommon` twice. Changing the forest table changes every chest and enemy that uses it.

  • Guaranteed slots for things players expect (a boss always drops its signature item the first time).
  • Rolls with replacement (the same item can drop twice) for materials and coins; without replacement for gear, so a chest never shows two identical swords.
  • First-kill tables: the first time a named enemy dies it uses a better table, so early encounters feel generous.
  • Level bands: the same table id maps to different item pools by area or player level, so a goblin drops iron gear in act 1 and steel in act 2.

Bad luck protection

Independent random rolls produce streaks. With a 1 percent drop, roughly 37 percent of players will not see it in 100 tries, and about 13 percent will not see it in 200. To most players that feels broken. A pity counter fixes it: count rolls since the last item of that rarity, and after a threshold either guarantee it or raise its weight every roll.

  • Hard pity: guaranteed at roughly 2 to 3 times the expected number of rolls (at 1 percent, at most 200 to 300).
  • Soft pity: after the expected number, add a little weight each roll (for example +10 percent of the base weight per roll), so the streak ends naturally.
  • Duplicate protection: when a unique item would drop and the player already owns it, reroll or convert it to currency.

Save pity counters with the game, or players learn that quitting resets their luck. If your game sells random rewards for real money, many app stores and some countries require you to publish the odds; treat that as a reason to keep paid randomness out of a first game entirely.

Making a drop feel like a drop

The roll is invisible; players only experience the presentation. Give each rarity a color (white, green, blue, purple, orange is a widely understood order), a beam or glow that scales with rarity, and a sound that gets bigger as rarity rises. Pop items out of the enemy with a small arc (spread 30 to 60 pixels in a 2D game) so several drops do not overlap. A brief pause before a legendary lands, around 0.2 to 0.4 seconds, gives the moment space. The game feel guide covers the hit stop and particles behind this.

  • Auto-pickup coins and materials within about 1.5 tiles; make gear a tap or a walk-over so players can leave junk.
  • Despawn timers: around 60 seconds for common drops, never for rare ones, or a player who stepped away loses the item they waited for.
  • Drops in walls: an item that pops into a wall or off a ledge is gone. Clamp drop positions to walkable ground.
  • Clutter: too many drops is a performance and readability problem on phones. Merge coins into one pile and cap items on the floor (around 40 to 60).

How loot combines with other systems

Loot feeds an inventory, which needs a plan for when it is full (a mail slot, auto-convert to gold, or leaving the item on the floor with a message). Materials feed a crafting system, where tables decide how fast recipes unlock. Quest objectives can add conditional entries (the wolf pelt only drops while the pelt quest is active). In a roguelike, seeded rolls make runs repeatable for bug reports and daily challenges, so use a seeded random generator rather than the default one.

A loot table brief to paste

Add data-driven loot tables to my 2D action RPG. Each table is a list of entries with weight, item id or nested table id, min and max count, and optional conditions (area, player level, quest active, first kill). Roll rarity first (common 70, uncommon 22, rare 6.5, epic 1.3, legendary 0.2) then an item of that rarity from the area pool. Enemies: 30 percent chance to drop an item plus 2 to 6 coins. Bosses: always 50 to 80 gold, their signature item on first kill, and two rolls on the area table without duplicates. Pity: if no epic or better in 120 item drops, the next one is epic; save the counter. Drops pop out in a small arc, land only on walkable ground, glow by rarity color with a rising sound per tier; coins auto-collect within 1.5 tiles; commons despawn after 60 s, rares never. Use a seeded random generator and expose the rarity weights and drop chance as dials.

Frequently asked questions

What is a loot table in a game?

A loot table is a list of items an enemy or chest can drop, each with a weight that sets how likely it is. The game rolls a random number against the total weight to pick what drops, often in several steps such as rarity first, then the item.

What drop rate should a rare item have?

Work backward from play time. Decide how often a player should see the item (once every half hour, once a run), count how many rolls happen in that time, and set the weight from that. Then add a pity counter so unlucky players still get it.

What is a pity timer?

A counter of rolls since the last rare drop. After a set number, the game guarantees the drop or raises its chance, so no player suffers an extreme unlucky streak.

Should loot be random or fixed?

Mix them. Fixed rewards for story moments and first boss kills, random drops for repeatable enemies and chests. Fixed rewards keep progress reliable; random ones keep repeated play interesting.

On this page

  • How a weighted roll works
  • Rarity tiers and starting rates
  • Nested tables and guaranteed drops
  • Bad luck protection
  • Making a drop feel like a drop
  • How loot combines with other systems
  • A loot table brief to paste

Keep reading

More in Game mechanics
Editorial ink illustration of a wooden toy figure in mid-air above a gap, the puff cloud under its feet in ember orange
Game mechanicsNovember 22, 2026

How to Add a Double Jump to Your Game

A double jump is one counter and one reset rule, but the details decide whether it feels like control or like cheating. Here are the values and the bugs to watch for.

8 min read
Editorial ink illustration of a small figure streaking along a stone floor with faded ghost copies behind it, the front figure's scarf in ember orange
Game mechanicsNovember 22, 2026

How to Add a Dash Move

A dash is a short burst of fixed speed that overrides normal movement. Get its distance, its ending and its refill rule right and it becomes the move players use most.

7 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.