How to Make a Loot Table in Minecraft (Mod Maker guide)
Learn how to create a custom Loot table in your web browser with 9Minecraft Mod Maker. Control what items generate naturally in containers without coding.
Open the Studio and a workspace
Start by opening 9Minecraft Mod Maker directly in your web browser. You do not need to download or install anything to get started.
Open your existing workspace or create a new one. Check that your project uses a supported version: NeoForge 26.1.2, NeoForge 1.21.1, Data pack 26.1, Data pack 1.21.1, or Bedrock add-on 26.1.
Add the Loot table element
Click the green plus button to add a new element to your workspace. Look inside the Data-driven content group and choose Loot table.
A Loot table represents what items should be generated naturally in containers.
Choose the Loot table namespace
Look for the field named Loot table namespace. This setting tells the game whether you are replacing an existing table or making a brand new one.
If you want to change a vanilla loot table, you have to choose "minecraft". If you want to create a new loot table for your mod elements, choose "mod".
Set the Loot table registry name
Next, find the Loot table registry name field. Click on the dropdown list and choose the category of the loot table.
Keep in mind that this field does not define the loot table type. It is only used to standardize loot table names. For example, use blocks/registry_name for block loot tables.
Select the Loot table type
Move to the Loot table type field. This parameter defines which type of the loot table you make.
Notice that the following types provide tool context: Blocks, Fishing, and Generic. Pick the option that best matches what you are creating.
Save and test with Build & run
Once you have filled in the fields, save your new Loot table element so it is added to your workspace.
Click the Build & run button to test your project and verify how your items generate naturally in containers.
Export your finished project
When you are happy with how your Loot table works, use the export option in the studio.
This gives you the finished file for your chosen version, ready to be shared or used in your Minecraft worlds.
Tips
- Always choose "minecraft" in the Loot table namespace field if your goal is to change a vanilla loot table, and choose "mod" for your own custom mod elements.
- Remember that the Loot table registry name dropdown only helps standardize names like blocks/registry_name and does not define the actual Loot table type.
- If you need tool context for your loot, make sure to select Blocks, Fishing, or Generic in the Loot table type field.
- Verify your workspace is set to a supported target like NeoForge 26.1.2, NeoForge 1.21.1, Data pack 26.1, Data pack 1.21.1, or Bedrock add-on 26.1.