Data pack

The data pack system provides a way for players to further customize their Minecraft experience. Data packs can be used to override or add new advancements, dimensions, functions, loot tables, predicates, item modifiers, recipes, structures, tags, damage types, world generation settings, and biomes without any code modification.
== Usage ==
Data packs can be placed in the folder of a world. Each data pack is either a sub-folder or a file within the folder. After it is in the folder, a data pack is enabled for that world when the world is reloaded or loaded.
Data packs load their data based on the load order. This order can be seen and altered by using the command and is stored in the file.
The player can also select data packs at the world creation screen by clicking the Data Packs button and dragging-and-dropping their data pack folders/zip-files there. This is similar to the resource pack selection screen, and allows the player to enable data packs before the world is generated, and easily customize the load order too.
== Contents ==
=== Folder structure ===
More than one directory for different namespaces may exist under the directory.
=== ===
A data pack is identified by Minecraft based on the presence of the file in the root directory of the data pack, which contains data in JSON format.
* The root object.
**: Holds the data pack information.
***: A JSON text that appears when hovering over the data pack's name in the list given by the command, or when viewing the pack in the Create World screen.
*** : Pack version. If this number does not match the current required number, the data pack displays a warning and requires additional confirmation to load the pack. See #Pack format for a full list of pack format numbers.
** : Section for filtering out files from data packs applied below this one. Any file that matches one of the patterns inside will be treated as if it was not present in the pack at all.
*** : List of patterns
****
*****: A regular expression for the namespace of files to be filtered out. If unspecified, it applies to every namespace.
*****: A regular expression for the paths of files to be filtered out. If unspecified, it applies to every file.
, as used by the "vanilla" data pack in 1.19, as found in the client and official server jars:
{
 "pack": {
 "pack_format": 10,
 "description": "The default data for Minecraft"
 }
}
=== ===
This folder contains all the data under one or multiple namespaces. It can contain , , , , , , , , , , , and/or folders. The folder can contain , , , , , , , , , , , and folders.
The , and folders are currently experimental features.
Each advancement, function, loot table, predicate, structure, recipe and tag file can be placed directly in their respective folder but sub-folders are also allowed.
== Pack format ==
The table below describes the version range using each pack format number:
== Template ==
The folder structure of the vanilla data pack:
== History ==
== Issues ==
== Gallery ==
World-type-custom.png|Example of a custom world created with a data pack.
== See also ==
*Add-on
*Advancements
*Biome
*Dimension
*Function
*Item modifier
*Loot table
*Recipe
*Structure
*Tag
*Predicates
*Tutorials/Installing a data pack
*Tutorials/Creating a data pack
*Resource Pack
*Tutorials/Creating a resource pack
 
de:Datenpaket
es:Paquete de datos
fr:Pack de données
ja:データパック
pl:Paczki danych
pt:Pacote de dados
ru:Набор данных
th:ดาต้าแพ็ก
zh:数据包