Loot tables

Minecraft loot table generator

Loot tables control every drop in Minecraft — what a mob leaves behind, what fills a dungeon chest, what you pull out of the water. They are pure JSON with weights, pools, conditions, and functions, and they are easy to get subtly wrong. Describe the drops you want and ModCrafter writes valid tables you can install straight away.

What loot tables control

Pools of entries, each with a weight and optional conditions, produce a result whenever the game asks the table for loot. Functions then modify what comes out: count ranges, enchantments, custom names, and looting bonuses.

  • Mob drops, including player-kill-only conditions
  • Chest loot for structures and custom containers
  • Block drops, silk touch behaviour, and fortune scaling
  • Fishing and gameplay tables
  • Weighted rarity tiers and guaranteed drops

Balancing drop rates

Weights are relative, not percentages, so a 1-in-100 feel is easier to describe than to write. Say the rarity you want in words — "about a 5% chance" — and the generated table uses weights or a chance condition that matches.

Testing your loot

After installing, use /loot give @s loot <namespace>:<table> to sample a table without hunting for the mob or structure. If something looks off, describe the problem in chat and regenerate.

Example prompts you can try

Paste any of these into the ModCrafter AI datapack generator and download the finished zip.

Frequently asked questions

Can I make a drop only happen from player kills?

Yes. The generated table can include a killed-by-player condition so mob farms and environmental deaths do not trigger it.

Can loot tables include enchanted or renamed items?

Yes. Loot functions can set enchantments, custom names, lore, and stack counts.

Do custom loot tables override vanilla ones?

If the pack uses the same namespaced path as a vanilla table, it replaces it. Otherwise it adds a new table you can call yourself.

How do I install the pack?

Unzip nothing — drop the downloaded .zip straight into your world's datapacks folder, then run /reload in game.

Keep exploring ModCrafter