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

Minecraft:Atlas

From SAS Gaming Wiki

Template:Move Template:Exclusive

An atlas is effectively a collection of individual sprites that are combined into one large image when resource packs are loaded. In Minecraft, these are used by various objects such as terrain, items, most gui widgets, and certain block entity textures.

Specification

The sprites that are included in an atlas are controlled by json files in a Minecraft:resource pack. These are stored in the assets/<namespace>/atlases/<id>.json directory of a resource pack with the following format.

When loading atlas files, the game combines all sprite sources from all currently active packs for each atlas. This means that multiple packs can add or remove sprites from an atlas without conflicting with one another.

It is not possible to define custom atlases simply by creating the JSON file for one as atlases must be registerred in the game code. Unknown atlas files are ignored by the game when loading resources.

JSON format

Sprite source types

Template:Code

Lists all files in a directory and its subdirectories, across all namespaces.

Template:Code

Adds a single sprite to the atlas.

Template:Code

Removes sprites whose identifier match the given Template:Wikipedia pattern (only works for entries in packs with a lower priority to the current one Template:Verify).

Template:Code

Copies rectangular regions from other images and adds them to the atlas with the specified names.

Template:Code

Dynamically generate sprites in-memory from a set of color palettes and base textures.

List of atlases

All the atlases that are currently used by the game.

For atlases which support Template:Wikipedia, all sprites should be a minimum of 16x16 pixels in size and a multiple of 2. If these guidelines aren't met the maximum mipmap level is limited and a message is printed in the log along the lines of 'Texture <sprite id> with size <width>x<height> limits mip level from <target mip level> to <limited mip level>'.

Identifier Contents Used for Supports mipmapping
armor_trims Contains paletted permutations of all armor trim equipment textures. This does not include the item overlays, those are defined in the items atlas. Rendering of armor trim layers on equipment Template:Tc
banner_patterns Contains all banner pattern textures and the base banner texture from the entity/banner/ directory. Rendering of banners placed in the world Template:Tc
blocks Contains all block textures from the block/, textures in the entity/conduit/ directory, the entity/bell/bell_body.png texture, and the entity/enchantment/enchanting_table_book.png texture. Rendering of terrain, conduits, bells, enchanting table books (in the gui and in the world), and item models. Template:Tc
celestials Contains the environment/celestial/ directory. This includes the sun texture, moon phase textures, and the end flash texture. Rendering of celestial bodies like the sun, moon, and end flashes. Template:Tc
chests Contains all the chest textures from the entity/chest/ directory. Rendering of chest block entities. Template:Tc
decorated_pot Contains all decorated pot patterns and the base decorated pot texture from the entity/decorated_pot/ directory. Rendering of decorated pot block entities. Template:Tc
gui Contains most gui sprite textures from the gui/sprites/ directory. Also contains the mob effect icons from the mob_effect/ directory. Sprites in this atlas support additional mcmeta data for gui scaling, see Minecraft:Resource_pack#GUI for more information. Rendering of most gui widgets and icons. Template:Tc
items Contains all item textures from the item/ directory. Also contains paletted permutations for the armor trim item overlay textures. Rendering of item models. Template:Tc
map_decorations Contains all map decoration icons from the map/decoration/ directory. Rendering of map decoration icons. Template:Tc
paintings Contains all painting textures from the painting/ directory. Rendering of paintings. Template:Tc
particles Contains all particle textures from the particle/ directory. Rendering of most particles. Template:Tc
shield_patterns Contains all shield pattern textures and the base shield texture from the entity/shield/ directory. Rendering of shields and shield patterns. Template:Tc
shulker_boxes Contains all shulker textures from the entity/shulker/ directory. Rendering of shulker box block entities. This does not include shulker mobs. Template:Tc

History

Template:HistoryTable

Navigation

Template:Navbox resource packs Template:Navbox Java Edition technical

Minecraft:de:Atlasdaten Minecraft:ja:テクスチャ#テクスチャアトラス Minecraft:zh:纹理图集