LOOT TABLE CONFIGURATION

Odds & Pity

Control how often players receive rewards from containers. Loot Containers supports fixed reward odds and progressive odds, allowing server owners to choose between consistent probabilities and an increasing chance after unsuccessful attempts.

Understanding reward chances

Every loot table has a reward chance system. When a reward is generated, the mod selects an item, builds the item, and then rolls the configured reward chance.

If the chance roll fails, the generated item is discarded and no reward is returned. If the roll succeeds, the selected item is returned to the reward system.

Important

Item selection and reward chance are separate operations. Your rarity weights determine which item is selected, while the odds system determines whether that selected item is awarded.

Fixed odds

Fixed odds use the same probability for every attempt. Previous failures do not increase the chance of receiving a reward.

Configuration

Set chanceSystem to FIXED to use fixed odds. You can configure the probability using either a percentage or a ratio.

Percentage example
{
        "chanceSystem": "FIXED",
        "fixedOdds": {
          "format": "PERCENTAGE",
          "percentage": 5.0
        }
      }
Ratio example
{
        "chanceSystem": "FIXED",
        "fixedOdds": {
          "format": "RATIO",
          "numerator": 1,
          "denominator": 100
        }
      }

Percentage format

The percentage setting represents a percentage from 0 to 100. For example, 5.0 means a 5% reward chance.

Ratio format

The numerator and denominator settings represent a fraction. For example, 1 divided by 100 produces a 1% reward chance.

ConfigurationReward chance
1 / 1001%
1 / 205%
1 / 1010%
1 / 425%
1 / 250%
1 / 1100%
Validation

Percentage values are clamped between 0 and 100. Ratio values must have a positive numerator and denominator, and the numerator cannot exceed the denominator. Invalid values produce a 0% chance.

Progressive odds

Progressive odds increase the reward chance after unsuccessful attempts. This system is commonly known as pity or a pity system.

Instead of keeping the same probability forever, the chance gradually increases until it reaches the configured maximum.

Progressive configuration
{
        "chanceSystem": "PROGRESSIVE",
        "progressiveOdds": {
          "startingChance": 1.0,
          "increasePerFailure": 1.0,
          "maximumChance": 100.0,
          "failuresBeforeIncrease": 0,
          "resetAfterReward": true
        }
      }

Progressive settings

startingChance

Default: 1.0

The initial reward chance, expressed as a percentage. A value of 1.0 means 1%.

increasePerFailure

Default: 1.0

The number of percentage points added after each eligible failed attempt. A value of 1.0 increases the chance by one percentage point.

maximumChance

Default: 100.0

The highest reward chance the progressive system can reach. The value is limited to the range of 0 to 100.

failuresBeforeIncrease

Default: 0

The number of failures allowed before the progressive increase begins. This delays the first increase.

For example, setting this to 3 means the first three failures do not increase the chance. The fourth attempt uses the starting chance plus one increase.

resetAfterReward

Default: true

Determines whether the player's failure count resets after successfully receiving a reward.

  • true: Resets the failure count to zero.
  • false: Keeps the existing failure count.

How progressive chance is calculated

The progressive system uses the following calculation:

Chance = Starting Chance + (Eligible Failures × Increase Per Failure)

The result is then limited by the configured maximum chance.

Eligible failures are calculated by subtractingfailuresBeforeIncrease from the current failure count. Negative results are treated as zero.

Worked example

Imagine a loot table configured with:

  • Starting chance: 1%
  • Increase per failure: 2 percentage points
  • Maximum chance: 15%
  • Failures before increase: 2
Previous failuresNext attempt chance
01%
11%
21%
33%
45%
57%
69%
711%
813%
915%
10+15%
Remember

The chance is calculated before each attempt. A failed attempt increases the failure count for the next attempt, not the attempt that just failed.

How pity is tracked

Failure counts are tracked separately for each player and loot table. This means progress on one loot table does not affect another.

  • Each player has their own failure counts.
  • Each loot table has an independent failure count per player.
  • Failure counts are saved using Minecraft's SavedData system.
  • Saved pity data persists across server restarts.

The mod stores this information using thelootcontainers_pity saved-data identifier.

Example

PlayerLoot tableFailures
Player AOverworld8
Player ANether2
Player BOverworld4

These are three independent counters. Player A's Overworld failures do not affect Player A's Nether progress or Player B's progress.

Recommended starting values

The following are suggested balancing configurations, not built-in defaults. Adjust them to match your server's progression and reward frequency.

StyleStartIncreaseMaximum
Very rare rewards1%0.5%10%
Balanced rewards2%1%25%
Generous rewards5%2%50%
Frequent rewards10%5%100%

Balancing advice

  • Use a lower starting chance for powerful or extremely rare rewards.
  • Increase the chance slowly if containers are opened frequently.
  • Use a lower maximum chance when rewards should remain uncommon.
  • Increase the maximum chance if players should eventually have a much better opportunity to receive a reward.
  • Enable resetting if you want each successful reward to begin a new pity cycle.

Reward chance field

Not implemented yet

Loot table definitions currently contain arewardChance field with a default value of0.25. However, the current reward-generation code does not use this field.

Fixed and progressive odds currently use their own settings instead. The shared reward chance system is planned for a future implementation. Changing rewardChance currently has no effect on reward rolls.

Frequently asked questions

Does pity guarantee a reward?

Only if the progressive maximum chance reaches 100%. A lower maximum chance does not guarantee a reward, even after many failed attempts.

Does fixed odds use pity?

No. Fixed odds do not track or increase chances based on failed attempts.

Does pity carry over between loot tables?

No. Each player has a separate failure counter for every loot table.

What happens when a player receives a reward?

If progressive odds are enabled andresetAfterReward is true, that player's failure count for the current loot table resets to zero.

Are pity counts saved when the server closes?

Yes. Pity data is stored using Minecraft's SavedData system.

CONTINUE READING

Explore loot tables

Learn how item pools, rarity weights, reward quantities, and container assignments work together.

Read Loot Tables →