Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Data pack

From SAS Gaming Wiki
Revision as of 11:08, 15 April 2026 by SyncBot (talk | contribs) (Sync: updated from Minecraft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Exclusive Template:Relevant tutorial

File:Datapacks.png
Some experimental vanilla datapacks.

A data pack or datapack is a collection of data used to configure a number of features of Minecraft. A data pack is either a folder or a [[Minecraft:wikipedia:Zip (file format)|Template:Code file]] containing a Template:Cd file. Data packs are used to define among others advancements, dimensions, Minecraft:enchantments, Minecraft:loot tables, recipes, structures, and Minecraft:biomes (see Template:Slink for a full list). The definitions of the vanilla features is done using a built-in data pack. Minecraft:Experiments are enabled by adding separate bundled data packs to a world. Similarly, custom data packs can be added to a world to add or modify features and define functions. A datapack can also change/edit terrain.

Usage

Data packs can be added to a world during world creation in the Minecraft:Create New World screen in the More tab by clicking the Data Packs button. This menu allows drag-and-drop of data packs from a file explorer. Alternatively, data packs can be added to an existing world by manually placing them in the Template:Code folder of a world.

When adding or modifying a data pack while the world is loaded, changes done to registry tags, Minecraft:loot tables, Minecraft:recipes, Minecraft:advancements, Minecraft:item modifiers, Minecraft:predicates, functions, and structure templates can be loaded using the Template:Cmd command. Other features require the world or server to be rebooted for changes to take effect (see Template:Slink).

Data packs load their data based on the load order. This order can be seen and altered in the Data Packs screen during world creation, and by using the Template:Cmd command. The loading order of data packs is stored in the [[Minecraft:Java Edition level format#level.dat_format|Template:Cd file]]. If a file exists in multiple data packs only the file in the last data pack is used. This is often referred to this file overriding the files in the earlier packs. However, Minecraft:tag files without Template:Cd merge their content with the files loaded from earlier packs.

If a data pack is corrupted, broken or contains malformed entries that can't simply be ignored by the game (such as by adding a non-existent entry in a vanilla tag), an error is shown when trying to open the world that asks the player if they want to enable Safe Mode, or return to title and fix the issue. Safe Mode disables all data packs except the vanilla one, possibly allowing the world to be opened.

Experimental Settings

Template:Not to be confused with

File:Experimental settings warning screen.png
The warning screen that appears when trying to open a world using experimental settings in singleplayer.

Some data pack features are considered experimental settings by the game. If a world has enabled a data pack that uses these features, opening the world in Minecraft:singleplayer will display a warning screen to the player. Additionally, worlds using experimental settings cannot be played on Minecraft:Realms: Attempting to upload such a world to Realms results in a server error.

Internally, most experimental settings use dynamic registries (as opposed to static registries). This means any changes regarding these features cannot be loaded using the Template:Cmd command: the world must be exited and reopened (singleplayer), or the server rebooted (multiplayer) for the changes to take effect.

For a data pack to be marked as "using experimental settings", it must contain at least one valid file inside one of several specific folders. For instance, defining a custom instrument inside the data/instrument/ folder counts as using experimental settings, whereas defining an instrument through item components does not count as such.

See Template:Slink for which folders are considered experimental settings.

Contents

Data packs use a folder structure to contain the data. On the top level, a data pack has to contain a Template:Cd file containing meta-data about the data pack. The data is organized into Minecraft:namespaces to avoid files from different packs unintentionally interfering with each other. Files are loaded as follows:

Folder structure

If a folder is marked with an asterisk (*), it means that the game considers the feature to be experimental, and having a valid file inside any of these folders will mark the data pack as using experimental settings.

Template:Mono

Template:Main A data pack is identified by Minecraft based on the presence of the Template:Code file in the root directory of the data pack, which contains data in JSON format.

A Template:Code file to produce a data pack that looks like the "vanilla" data pack in 1.21.9 would look like this: Template:Filename Template:Pack.mcmeta

Pack format

Template:For Template:Data pack format

History

Template:For Template:HistoryTable

Issues

Template:Issue list

Gallery

See also

External links

Navigation

Template:Navbox Java Edition Template:Navbox Java Edition technical

Minecraft:de:Datenpaket Minecraft:es:Paquete de datos Minecraft:fr:Pack de données Minecraft:ja:データパック Minecraft:ko:데이터 팩 Minecraft:pl:Paczki danych Minecraft:pt:Pacote de dados Minecraft:ru:Набор данных Minecraft:th:ดาต้าแพ็ก Minecraft:zh:数据包