Atlas

From Minecraft Wiki
Jump to navigation Jump to search
This feature is exclusive to Java Edition. 

Atlases are configuration files in resource packs, that control which textures are included in the atlases.

JSON format[edit | edit source]

Atlases are stored as JSON files in a resource pack in the assets/<namespace>/atlases folder.

  • The root tag.
    •  sources: Contains a list of sprite sources. Every entry runs in during load, in order of definition, adding or removing new textures to the atlas.
      • Source element.
        •  type: The type of the sprite source. Can be one of the following:
          • directory: Lists all files in a directory and its subdirectories, across all namespaces.
            •  source: Directory in pack to be listed (relative to textures directory).
            •  prefix: String to be prefixed to the sprite name when loaded.
          • single: Adds a single file.
            •  resource: Location of a resource within the pack (relative to textures directory, implied .png extension).
            •  sprite: Sprite name (optional, defaults to the value of resource).
          • filter: Removes sprites matching the given pattern (only works for entries already in the list).
            •  namespace: Regular expression of the namespace indentificator to be removed, if omitted, any value is matched.
            •  path: Regular expression of the path to be removed, if omitted, any value is matched.
          • unstitch: Copies rectangular regions from other images.
            •  resource: Location of a resource within the pack (relative to textures directory, implied .png extension).
            •  divisor_x: Used for determining the units used by in the x coordinate of regions.
            •  divisor_y: Used for determining the units used by in the y coordinate of regions.
            •  regions: List of regions to copy from the source image.
              •  sprite: Specifies the sprite name.
              •  x: Specifies the x coordinate of the top-left corner of the region.
              •  y: Specifies the y coordinate of the top-left corner of the region.
              •  width: Specifies the width of the region.
              •  height: Specifies the height of the region.
          • paletted_permutations: Dynamically generate textures in-memory with color sets.
            •  textures: A list of namespaced resource locations of base textures. These textures are used to generate variants of them that have been modified by color palettes.
            •  palette_key: A namespaced resource location of a color palette key file. This is used to define the set of key pixel colors to swap out with the color palettes defined.
            •  permutations: A map of permutations from suffix to a namespaced resource location of a color palette file. The suffix is appended at the beginning to the resource location of the output variant textures, with a _ character separating the suffix and the base texture name. The number of pixels in each color palette must be the same as that of the palette_key defined for this source. Pixels are compared by RGB value. The alpha channel is ignored for key matching, but in the resulting texture the alpha channel is multiplied with the color palette's alpha channel. Pixels that do not match the palette_key are copied over to the resulting texture as-is.

List of atlases[edit | edit source]

  • armor_trims
  • banner_patterns
  • beds
  • blocks
  • chests
  • decorated_pot
  • gui
  • mob_effects
  • paintings
  • particles
  • shield_patterns
  • shulker_boxes
  • signs

History[edit | edit source]

Java Edition
1.19.322w46aAdded atlases to resource packs.
1.19.323w04aAdded sprite source paletted_permutations.

Navigation[edit | edit source]