EliteFantasy ResourcePack Guide
  • ResourcePack Guide
    • Introduction
    • Beginning
      • lang
      • sounds
      • texts
      • particles
      • atlases
      • fonts
      • blockstates
      • textures
        • Equipment
        • Entity Textures
      • models
        • Blockbench Models
        • ItemsModels & CustomModelData
          • custommodeldata (old)
          • custommodeldata extras (old)
        • Understanding the system the new item system
      • shaders
  • Components Guide
    • Introduction
      • Components
  • Discord
    • Discord
Powered by GitBook
On this page
  • Examples
  • Paletted Permutations
  1. ResourcePack Guide
  2. Beginning

atlases

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

To see better the generated textures, you can use F3 + S , go to the folder I provided you and enter the corresponding atlas.

PreviousparticlesNextfonts

Last updated 3 months ago

69B
trim_palette.png
image
The base texture from which to start replacing the pixels.
90B
amethyst.png
image
amethyst_color_palette
219B
dune.png
image
dune