Wiki ArticleJava EditionData packsResource packs
pack.mcmeta
The pack.mcmeta file is used to define metadata of a resource pack or data pack. The presence of this file identifies a directory or ZIP archive file as a resource pack or data pack.
The pack.mcmeta file is defined using the following JSON format:
This feature is exclusive to Java Edition.
The pack.mcmeta file is used to define metadata of a resource pack or data pack. The presence of this file identifies a directory or ZIP archive file as a resource pack or data pack.
Format
The pack.mcmeta file is defined using the following JSON format:
- *: Because the file has to be backwards compatible with older versions of the game, these deprecated fields have to be added when the pack also supports old versions (data pack format < 82; resource pack format < 65).
- †: These fields must be absent if the pack does not support old versions, but must be present if the pack does support old versions.
- [NBT Compound / JSON Object] The root object.
- [NBT Compound / JSON Object] pack: Holds the pack information.
- [String][NBT List / JSON Array][NBT Compound / JSON Object] description: A text component that appears when hovering over the pack's name in the list given by the
/datapack listcommand, or when viewing the pack in the Create World screen. - [Int] pack_format*: (optional) The main format of this pack.
- [Int][Int Array] min_format: Specifies the minimum version supported. Can be a single integer or a list of two integers, where the first one is pack (major) version, second one a minor version. Specifying a single integer is interpreted as that major version, for example value
82or[82]is equivalent to[82, 0]. - [Int][Int Array] max_format: Specifies the maximum version supported, analogous as
min_format. Specifying a single integer is interpreted as any minor version. - [Int][Int Array][NBT Compound / JSON Object] supported_formats*†: The major versions this pack supports. Has to match the major versions specified in [Int][Int Array] min_format and [Int][Int Array] max_format. Examples:
42,[42, 45],{ "min_inclusive": 42, "max_inclusive": 45 }.
- [String][NBT List / JSON Array][NBT Compound / JSON Object] description: A text component that appears when hovering over the pack's name in the list given by the
- [NBT Compound / JSON Object] features: (optional) Section for selecting experimental features.
- [NBT List / JSON Array] enabled: List of enabled feature flags.
- [String]: Resource location of a feature flag.
- [NBT List / JSON Array] enabled: List of enabled feature flags.
- [NBT Compound / JSON Object] filter: (optional) Section for filtering out files from packs applied below this one. Any file that matches one of the patterns inside [NBT List / JSON Array] block is treated as if it was not present in the pack at all.
- [NBT List / JSON Array] block: List of patterns.
- [NBT Compound / JSON Object]: A pattern.
- [String] namespace: A regular expression for the namespace of files to be filtered out. If unspecified, it applies to every namespace.
- [String] path: A regular expression for the paths of files to be filtered out. If unspecified, it applies to every file.
- [NBT Compound / JSON Object]: A pattern.
- [NBT List / JSON Array] block: List of patterns.
- [NBT Compound / JSON Object] overlays: (optional) Section for specifying the overlays, which are sub-packs applied over the "normal" contents of a pack. Their directories have their own assets and data directories, and are placed in the pack's root directory.
- [NBT List / JSON Array] entries: List of overlays. The order is important, as the first in the list is applied first.
- [NBT Compound / JSON Object]: An overlay.
- [String] directory: The directory to overlay for the respective versions (allowed characters:
a-z,0-9,_and-). In this directory,pack.mcmetaandpack.pngare ignored. - [Int][Int Array] min_format: Specifies the minimum version to apply this overlay on. See
min_formatin thepacksection above. - [Int][Int Array] max_format: Specifies the maximum version to apply this overlay on. See
max_formatin thepacksection above. - [Int][Int Array][NBT Compound / JSON Object] formats*†: The major formats to apply this overlay on. Must be present in all overlays if at least one of them requires it for backwards compability and has to match the major versions specified in [Int][Int Array] min_format and [Int][Int Array] max_format. Examples:
42,[42, 45],{ "min_inclusive": 42, "max_inclusive": 45 }.
- [String] directory: The directory to overlay for the respective versions (allowed characters:
- [NBT Compound / JSON Object]: An overlay.
- [NBT List / JSON Array] entries: List of overlays. The order is important, as the first in the list is applied first.
- [NBT Compound / JSON Object] language: (optional) Only present in resource packs — Contains additional languages to add to the language menu.
- [NBT Compound / JSON Object] Language code for a language, corresponding to a
.jsonfile with the same name in the directoryassets/<namespace>/lang.- [String] name: The full name of the language
- [String] region: The country or region name
- [Boolean] bidirectional: If true, the language reads right to left.
- [NBT Compound / JSON Object] Language code for a language, corresponding to a
- [NBT Compound / JSON Object] pack: Holds the pack information.
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.7.4 | 13w47a | The description value of pack.mcmeta can now be raw JSON text format. | |||||
| 1.19 | 22w11a | Added optional field filter - specifies file filters.
| |||||
| 1.19.3 | 22w46a | Added support to include non-ASCII characters (encoded as UTF-8) directly instead of using escape sequences. | |||||
| 1.20.2 | 23w31a | Added optional field supported_formats - specifies a range for pack formats that the pack supports.
| |||||
Added optional field overlays - specifies sub-packs that are applied over the "normal" contents of a pack.
| |||||||
| 1.21.9 | 25w31a | The supported_formats field has been removed.
| |||||
The pack_format field is now optional.
| |||||||
Added required field min_format - specifies the minimum version supported.
| |||||||
Added required field max_format - specifies the maximum version supported.
| |||||||
For overlays entries:
| |||||||
External links
Navigation
| |||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||