pack.mcmeta

From Minecraft Wiki
Jump to navigation Jump to search
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 folder or zip file as a resource pack or data pack.

Format[edit | edit source]

The pack.mcmeta file is defined using following JSON format:

  • The root object.
    •  pack: Holds the pack information.
      •  description: A JSON text that appears when hovering over the pack's name in the list given by the /datapack list command, or when viewing the pack in the Create World screen.
      •  pack_format: Determines the version(s) of Minecraft that this pack is compatible with. See Pack format for a full list of pack format numbers.
      •  supported_formats: (Optional) Describes a range for pack formats that this pack supports. The range has to include the value of  pack_format. Examples: 42, [41,42], {"min_inclusive": 41, "max_inclusive": 42}.
    •  filter: (Optional) Section for filtering out files from packs applied below this one. Any file that matches one of the patterns inside  block is treated as if it was not present in the pack at all.
      •  block: List of patterns.
        • : A pattern.
          •  namespace: A regular expression for the namespace of files to be filtered out. If unspecified, it applies to every namespace.
          •  path: A regular expression for the paths of files to be filtered out. If unspecified, it applies to every file.
    •  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.
      •  entries: List of overlays. The order is important, as the first in the list is applied first.
        • : An overlay.
          •  formats: Describes a range for pack formats when this overlay should be active. Examples: 42, [41,42], {"min_inclusive": 41, "max_inclusive": 42}.
          •  directory: The directory to overlay for the respective versions (allowed characters: a-z, 0-9, _ and -). In this directory, pack.mcmeta and pack.png are ignored.
    •  language: Only present in resource packs — Contains additional languages to add to the language menu.
      • Language code for a language, corresponding to a .json file with the same name in the folder assets/<namespace>/lang.
        •  name: The full name of the language
        •  region: The country or region name
        •  bidirectional: If true, the language reads right to left.

External links[edit | edit source]

Navigation[edit | edit source]