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.

  1. 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.

  2. 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.

  3. 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".

  4. 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.

  5. 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.

  6. 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.

  7. 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

Try it in the Studio All loot table fields explained →