customadvancements/data/textures/ folder and registers them as textures the game can draw, so you can use your own artwork as an advancement background without building a resource pack. Drop the file in the folder, reference it by resource location, and the mod handles the rest.
Folder Location
Place your image files inside thecustomadvancements/ folder in your game directory, under data/textures/:
data/ folder is excluded from advancement scanning, so the mod never tries to parse your images as advancement JSON.
Supported File Types
The following file extensions are recognized by the texture loader. The check is case-insensitive. Files with any other extension are skipped with a warning in the log.
PNG is the safest choice for advancement backgrounds — it is lossless, widely supported, and handles transparency correctly.
Referencing a Texture in an Advancement
Textures in thedata/textures/ folder are registered under the customadvancements namespace with a textures/ path prefix:
my_background.png is referenced as customadvancements:textures/my_background.png.
To use it as a tab background, set the background field in a root advancement’s display block:
customadvancements/customadvancements/my_root.json
largeBackground, shouldBgClip, and bgRatio) make the mod draw your image once, scaled to fill the whole panel at its correct proportions instead. See Backgrounds for the complete reference.
How Textures Reach the Client
Texture loading in Custom Advancements 4.7.5 runs client-side only. Each client reads the images from its owncustomadvancements/data/textures/ folder — the server does not transmit them over the network.
The practical answer for a modpack is to ship the whole customadvancements/ folder in your pack’s overrides layer, so every player installs with the textures already in place. See Installation.
Sizing Your Images
Advancement background images are drawn into a panel a few hundred pixels across, so there is nothing to gain from very large files — and a real cost to them, since the mod reads every image in the folder at load time. When you useshouldBgClip, set bgRatio to the image’s real width divided by its real height, or the image will be cropped more or less than you intended. See Backgrounds for a table of common ratios.
Applying Changes
Adding, replacing, or deleting a texture file takes effect on the next/ca reload or on the next game start. See Commands.