1

In Minecraft 1.12, I used the Loot Table generator from Minecraft Tools to create custom Loot Tables for chests. The download path was:

.minecraft > saves > WORLDNAME > data > loot_tables > mctools > chests > TABLENAME

In 1.13, I have used the same path but when I open the chest in game, there are no contents. I am using the updated /give command but it appears the problem is in the folder path. If so, what is that new path?

3

You need to create a so called datapack. A datapack is a folder structure that contains recipes, advancements, loot tables and more.

These are the steps for your loot table:

  • Go to .minecraft/saves/yourworld/datapacks
  • Create a folder with a name of your choice. I recommend a name without spaces or special characters. This is your datapack name
  • Inside that folder, create a pack.mcmeta file, similar to a resource pack and a folder called data.
  • Inside the data folder, create a folder with a name of your choice. This will be your namespace. If you name this folder minecraft, then you can overwrite the default loot tables in minecraft if you want.
  • Inside the namespace folder, create a folder called loot_tables.
  • Inside the loot_tables folder, you can place your loot tables. You are allowed to add additional folders here to organise your loot tables.

Now you can use your loot table in minecraft. To access it, you specify the path as follows: namespace:path/to/loottable, where namespace is the namespace that you defined. The path starts from inside the loot_tables folder.


This is what the content of pack.mcmeta looks like:

{ 
    "pack": 
    { 
        "pack_format": 1,
        "description": "Tutorial Data Pack"
     } 
}

Source: https://minecraft.gamepedia.com/Tutorials/Creating_a_data_pack#Creating_an_MCMETA_file

  • Great answer. Only, how do you create a "pack.mcmeta file"? @D-Inventor – user212269 Aug 1 '18 at 0:17
  • I will add an example pack.mcmeta file as soon as I can. If you can't wait, I'd suggest you check out the minecraft wiki on datapacks. minecraft.gamepedia.com/Data_pack it's literally the same as in a resource pack. – D-Inventor Aug 1 '18 at 4:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.