MC Toolkit

Guides / Commands & Data

Post effects and loot pools: the two halves of one chest

A loot pool's weights decide what drops; the /posteffect command decides how it feels. Both are numbers you can check before writing the datapack.

A weighted loot pool and a /posteffect command are usually written in different files by different people, and they fail in the same way: the numbers are never checked before the datapack ships. Both are cheap to verify first.

The loot pool is arithmetic, not vibes

A pool entry has a weight, and the chance of any entry is its weight divided by the sum of all weights in that pool. There is no hidden normalisation and no minimum — a weight of 0 means the entry never rolls, and a pool whose weights sum to anything at all behaves the same way. The trap is mixing rolls: a pool with rolls: 2 samples twice, so an entry with a quarter of the weight appears in roughly half of all chests, not a quarter.

EntryWeightShare of one roll
Iron ingot2020 ÷ 40 = 50%
Gold ingot1230%
Diamond820%

Add a fourth entry at weight 40 and every number above halves. That is the whole balancing job, and it is why "the diamond rate feels wrong" is almost always a weight you forgot to scale.

Loot tables are one of the larger registry families in the game — the 26.2 data this site measures lists 1355 of them — so a pool you cannot reason about numerically is a pool you will never finish tuning by hand.

/posteffect is a snapshot command

Java's /posteffect is a snapshot-era command and does not exist in current release builds, and it has no Bedrock equivalent at all. Bedrock handles screen tinting through resource packs and the camera shake system instead, so a Java tutorial here will not port.

The command takes an effect identifier and a strength, and the strength is a float rather than a percentage. Effects are a small registry — 40 in the 26.2 data — so the identifier list is short enough to check by hand rather than guess. Naming an effect that does not exist fails silently in some snapshot builds, which is the second reason to verify before committing.

Where the two meet

A chest that drops a rare item and a chest that drops a common one should not look identical. Roll the pool first to get the real distribution, then pick the post effect strength that matches how often the player will actually see it. Doing it in the other order produces a dramatic effect that fires constantly, which reads as noise.

For a town build, that usually means a low-strength effect on the common pool and the strong one reserved for the entry with the smallest weight — the same ratio you already computed.

Build the /posteffect command and roll the weighted pool in the Post Effect & Loot Tools.

Post Effect & Loot Tools →

More guides

Browse all →

Looking for more Minecraft tools?

A suite of client-side generators, viewers and converters — all free, all in your browser.