All tools

Loot table editor

Build a chest or mob loot table and export the JSON or a ready datapack.

What a loot table is

A loot table decides what drops from a mob, what is in a chest, what you get from fishing and what a block drops when broken. Minecraft stores them as JSON files inside datapacks. This editor builds one from a list of items, shows the real chance of each, and exports the JSON or a ready-to-use datapack.

Weights and rolls

Weight is relative, not a percentage. With diamond at weight 1, iron at weight 6 and bread at weight 10, the total is 17, so each roll gives diamond 1 time in 17 (about 5.9%), iron 6 in 17 and bread 10 in 17. The chances table works this out as you edit.

Rolls is how many times the table picks. With 3 rolls a chest gets three picks, and the same item can come up more than once. The amount range uses set_count, so iron set to 1 to 5 drops a random stack in that range each time it is picked.

Table types

The type tells Minecraft what context the table runs in: a chest, a mob drop or a block drop. It matters because some conditions and functions only work in the right context, such as checking which tool broke a block. Pick the one that matches where the table will be used.

Using the table

  • Replacing a vanilla table. Put the file at the same path as the vanilla one in your datapack, for example data/minecraft/loot_table/entities/zombie.json. Your version then replaces the game's.
  • A custom chest. Use the downloaded datapack, then place a chest with the table attached: /setblock ~ ~ ~ chest{LootTable:"name:name"}. The loot is rolled the first time someone opens it.
  • Testing. /loot give @s loot name:name rolls the table straight into your inventory, which is the fastest way to check the odds feel right.

Item IDs must be the full Java ID, such as minecraft:iron_ingot. The item ID library lists every valid one.

The JSON is built in your browser. Nothing is uploaded.

Free to use, no account needed. Everything happens in your own browser. Nothing you type is sent anywhere.

Filed under Setup and config.

Other setup and config tools

All Minecraft server tools · Guides for running a server

All 25 tools

Every tool runs in your browser and is free to use, whether you host with us or not. Most work offline once the page has loaded. The few that check something live, like a server's status or a player's skin, say so on their page.