PDF download Download Article PDF download Download Article

Data packs provide an easier way for players to customize their game in Minecraft. They allow the customization and addition of new advancements, loot tables, recipes, structures, and more. This article provides a basic introduction to data packs and a few of their uses so that players may learn to customize and enhance their own Minecraft experience.

Part 1
Part 1 of 5:

Creating Necessary Files

PDF download Download Article
  1. You can do this by typing in %appdata% in your Windows search bar and hitting enter. Then, click the .minecraft folder and then the saves folder.
  2.  Open the world's folder and then click on the data packs folder inside. This will be where the data pack will be created.
    Advertisement
  3. Create a new folder and name it what you would like your data pack to be called.
  4. Create a new text document and rename it to pack.mcmeta. Make sure that you are changing not only the document name but the extension name as well. You should get a message warning that changing the file name extension might make it unusable.
  5. You can make sure of this in Windows Explorer by clicking "View" and making sure the box next to "File name extensions" is checked. This will allow you to see the extension of every file on your computer.
    • This will work in Notepad but it may be more convenient to use a text editor like Notepad++.
    • The number next to "pack" depends on which version of Minecraft you will be running this data pack on. If your version is 1.16.2, keep the number as 6. If your version is 1.17, change the number to 7. If your version is 1.15-1.16, change the number to 5. If your version is 1.13-1.14, change the number to 4. If your version is 1.16.2 or newer, keep the number as 6. If your version is 1.15-1.16, change the number to 5. If your version is 1.13-1.14, change the number to 4.
    • The text next to "description" is what will show up in the game when you highlight your mouse over the data pack. The description can be changed to anything but keep in mind that files like these may only contain letters, numbers, underscores, hyphens, forward slashes, and periods.
  6. Inside your data pack folder, create a folder called data. The two items inside of your data pack should be the data folder and the MCMETA file.
  7. Inside your data folder, create a new folder called Minecraft. This is where you will be putting the rest of your files for your data pack.
  8. Advertisement
Part 2
Part 2 of 5:

Modifying a Mob's Existing Loot Table

PDF download Download Article
  1. This is where you will be putting any folders that modify the current loot tables in the game.
  2. This is where you will be putting any files that modify the current loot tables for entities in Minecraft.
  3. You can access this by typing %appdata% in your Windows search bar and going to .minecraft\versions and selecting the version you are working with.
  4. This will allow you to view all of the files inside of this specific version.
  5. You can do this by going to data\minecraft\loot_tables\entities. This will allow you to see the files for the loot tables of all entities in the game.
  6. Select the file and copy and paste it into your entities folder inside your own data pack.
  7. Here you can see many things that affect the loot table of that given mob. The essential information that can be gathered from this is as follows:
    • "rolls": This is how many times that particular table will be rolled. This may affect how many of those items the player may receive.
    • "min" and "max": These are the minimum and maximum amounts of a particular item that an entity may drop.
    • "name": This is the item that the entity will drop when the loot table is activated.
    • "condition": This is the action that will cause the entity's loot table to be rolled. The current default for entities is "minecraft:killed_by_player"
  8. You can see a list of all items by starting to type out the command /give player minecraft. In order for a list of item IDs to pop up, you must be in a world that has cheats enabled.
  9. When making basic modifications to loot tables it is highly recommended to stick to changing values and names instead of trying to add new lines of text. In this example, the rabbit loot table is changed to drop 1 blaze rod when killed. This can be shown by changing the "name" value to "mineraft:blaze_rod".
  10.  Save the text file and open the world in order to test and see if the loot table was successfully changed. Type the /reload command to reload the world's data packs and spawn a mob and kill it in order to make sure that the data pack was successful.
  11. Advertisement
Part 3
Part 3 of 5:

Modifying a Crafting Recipe

PDF download Download Article
  1. This is where any modified recipes will be included in the data pack.
  2. You can access this by typing %appdata% in your Windows search bar and going to: .minecraft\versions and selecting the version you are working with.
  3. This will allow you to view all of the files inside of this specific version.
  4. You can do this by going to data\minecraft\recipes. This will allow you to see the files for all of the recipes for any given block in the game.
  5. Make sure that the selected recipe is the desired one. Some items have multiple recipes in game and may have multiple files in the version's recipes folder. An example would be andesite slabs having two recipes: one from the crafting table and another from the stonecutter.
  6. There are a few things to note about a given crafting table recipe.
    • "pattern": This is the pattern of the crafting recipe shown by a 3x3 grid identical to the grid seen in the game. If a recipe doesn't fill in the entire 3x3 grid, it will be able to be crafted in any row or column of the crafting grid. The pattern can be made using the item key below. Keep in mind that the quotations include a grid. This means that it is very important to leave spaces where necessary in order to keep the desired recipe.
    • "key": This is where the items are defined. The character shown above the item is what will be used in the crafting recipe.
    • "result": This is the item that will be crafted once the recipe is completed.
  7. Once again, it is highly recommended to stick to modifying current lines of text instead of adding new ones. If adding another item to the recipe is necessary, make sure that there is a comma after every item except for the last one. If you forget a comma, the recipe will not work. If there is only one item in the recipe, a comma is not needed. The example above shows a modified recipe for a cake. The modified recipe includes a horizontal line of milk buckets.
  8. If a shapeless recipe was selected, it will look slightly different. The "item" in the ingredients bracket shows which item will be the input and the "item" in the result bracket shows the item that will be the output. The count at the bottom shows how many of the result item will be crafted.
  9.  Save the text file and open the world in order to test and see if the loot table was successfully changed. Type the /reload command to reload the world's data packs and test out the recipe in a crafting table to make sure the change was successful.
  10. Advertisement
Part 4
Part 4 of 5:

Changing a Block's Loot Table

PDF download Download Article
  1.  This is where any modified loot tables of blocks will be placed. A block's loot table is the block that will be dropped when a player mines it.
  2. You can access this by typing %appdata% in your Windows search bar and going to: .minecraft\versions and selecting the version you are working with.
  3. This will allow you to view all of the files inside of this specific version.
  4. You can do this by going to data\minecraft\loot_tables\blocks. This will allow you to see the files for the loot tables of all blocks in the game.
  5. Select the file and copy and paste it into your blocks folder inside your own data pack.
  6. Here you can see many things that affect the loot table of that given block. The essential information that can be gathered from this is as follows:
    • "rolls": This is how many times that particular table will be rolled. This may affect how many of that item the player may receive.
    • "type": This decides which item can be dropped. For example if a grass block is mined with a silk touch enchanted pickaxe it will drop a grass block, but if it is mined with anything else, it will drop a dirt block.
    • "name": This is the item that will drop based on the given type.
  7. You can see a list of all items by starting to type out the command /give player minecraft. In order for a list of item IDs to pop up, you must be in a world that has cheats enabled.
  8. When making basic modifications to loot tables it is highly recommended to stick to changing values and names instead of trying to add new lines of text. In this example, the birch planks block loot table is modified. The change involves a diamond shovel dropping when a birch plank is mined.
  9.  Save the text file and open the world in order to test and see if the loot table was successfully changed. Type the /reload command to reload the world's data packs and break the specific block in order to test and see if the data pack was successful.
  10. Advertisement
Part 5
Part 5 of 5:

Moving Your Data Pack to Other Worlds

PDF download Download Article
  1. You can either do this by going to the same folder that you were working with. Or you can go to the Minecraft main menu and click on edit and then open world folder for that particular world.
  2. The data pack can be copy and pasted into any world and will work as long as the versions are the same.
  3. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Video

      Tips

      • Mob and entity loot tables, as well as recipes, are not the only things that can be modified with a data pack. Advancements, chest loot tables, smelting recipes, and structures are just a few more things that can be changed. Keep in mind that this was a basic guide on data packs and that this is just touching the surface of things that can be done with data packs!
      • If you made changes to your data pack and it is not working in the game, make sure that you saved your file in the correct location and used the reload command in the game. Also, be sure that you didn't leave out a quotation mark or a comma. If you accidentally delete one, that means the data pack will not work until you add it back.
      Show More Tips


      • Mob and entity loot tables, as well as recipes, are not the only things that can be modified with a data pack. Advancements, chest loot tables, smelting recipes, and structures are just a few more things that can be changed. Keep in mind that this was a basic guide on data packs and that this is just touching the surface of things that can be done with data packs!
      Show More Tips
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 64,093 times.

      Did this article help you?

      Advertisement