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:namerolls 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
- server.properties builder: Build the file with plain-English explanations of what each setting does.
- LuckPerms rank builder: Design a rank ladder and get every command to create it, in order.
- WorldGuard region generator: Pick what a region should allow and get the commands to define it.
- Modpack and loader matcher: Check a loader, Minecraft version and Java version actually work together.
- Item and block ID library: Search every valid Minecraft ID, generated from the server we actually run.
- Datapack packager: Build a valid datapack zip with the right pack.mcmeta for your version.
- Permission node browser: Search the nodes people actually use, with what each one lets someone do.
- Advancement and recipe maker: Write a custom advancement or crafting recipe and get valid JSON.