The atlas is the way Minecraft loads textures into the resourcepack, thus speeding up the loading and discarding the unnecessary.
📦resource_pack.zip
└── 📁assets
└── 📁minecraft
└── 📁atlases
├── 📑armor_trims.json
├── 📑banner_patterns.json
├── 📑beds.json
├── 📑blocks.json
├── 📑chests.json
├── 📑decorated_pot.json
├── 📑gui.json
├── 📑map_decorations.json
├── 📑mob_effects.json
├── 📑paintings.json
├── 📑particles.json
├── 📑shield_patterns.json
├── 📑shulker_boxes.json
└── 📑signs.json
Examples
You will mainly use this to be able to add textures outside the item/
and block/
paths
For example for this
📦resource_pack.zip
└── 📁assets
├── 📁minecraft
│ └── 📁items
│ └── 📑apple.json
└── 📁elitefantasy
├── 📁models
│ └── 📁custom
│ └── 📁items
│ └── 📁food
│ └── 📑apple_eat_1.json
└── 📁textures
└── 📁custom
└── 📁items
└── 📁food
└── 🎨apple_eat_1.png
It would not work since I am starting from the custom/
directory so I need to go to the blocks.json
atlases and place something like
{
"sources": [
{
"type": "minecraft:single",
"resource": "elitefantasy:custom/items/food/apple_eat_1"
}
]
}
but to avoid this kind of problems, it is better just to add that everything inside the custom/
folder is automatically added to the atlas
{
"sources": [
{
"type": "minecraft:directory",
"source": "custom",
"prefix": "custom/"
}
]
}
Paletted Permutations
Paletted permutations is a way that Minecraft added to be able to create new textures with new colors from a base and a palette of colors
📦resource_pack.zip
└── 📁assets
└── 📁minecraft
├── 📁atlases
│ └── 📑armor_trims.json
└── 📁textures
└── 📁trims
├── 📁color_palettes
│ └── 🎨amethyst.png
└── 📁entity
└── 📁humanoid
└── 🎨dune.png
armor_trims.json
{
"sources": [
{
"type": "minecraft:paletted_permutations",
"palette_key": "minecraft:trims/color_palettes/trim_palette",
"permutations": {
"amethyst": "minecraft:trims/color_palettes/amethyst"
},
"textures": [
"minecraft:trims/entity/humanoid/dune",
]
}
]
}
And the result will be exported to <base_texture>_<permutation>
in this case minecraft:trims/entity/humanoid/dune_amethyst