4

Problem with Custom Item Trims

Mines211 7/2/26 10:51 am
107
7/3/2026 1:29 pm
I'm trying to make it so you can trim weapons (i.e. Netherite Axes) following the tutorial from this website: https://datapack.wiki/guide/adding-new-features/smithing-trims

I followed the steps to the letter, but every time I load the pack, I get this message:

Unable to bake item model: 'minecraft:netherite_axe'
java.lang.IllegalStateException: Multiple atlases used in model, expected minecraft:textures/atlas/items.png, but also got minecraft:textures/atlas/blocks.png

So the axe has no texture, trimmed or otherwise. I've been stuck on this for the last two hours, and I really need help to get this fixed.
Posted by
Mines211
Level 5 : Apprentice Dragon
8

  Have something to say?

JoinSign in

8

Pr0Pancakeslol
07/02/2026 2:32 pm
Level 1 : New Miner
You correctly created 5 brand-new custom trim materials for this datapack — blaze, breeze, prismarine, echo, and star (I can see them in CombatExpansionDP/data/combat_expansion/trim_material/, and your atlas's paletted_permutations in items.json only generates textures for those 5 names). Your armor pieces (helmets, boots, etc.) all correctly reference these 5 materials — e.g. iron_helmet_blaze_trim.json


But for the axe, netherite_axe.json instead lists the 11 base trim materials (quartz, iron, netherite, redstone, copper, gold, emerald, diamond, lapis, amethyst, resin) — materials that don't exist in your pack at all. And the one axe model you did create, netherite_axe_quartz_trim.json, points to this texture combat_expansion:trims/items/axe_trim_quartzthat was never generated by your atlas, since your atlas only ever produces axe_trim_blaze, axe_trim_breeze, axe_trim_prismarine, axe_trim_echo, axe_trim_star

something worth checking on your end before you load this: Your axe_trim.png source texture (combat_expansion/textures/trims/items/axe_trim.png) — make sure it's a grayscale/template-style texture like vanilla's helmet_trim.png etc., since the palette permutation system recolors it per-material. If it's already a colored texture (like netherite_axe_trimmed.png looks like it might be), the tinting will look wrong.

www.mediafire.com/file/8mmfnvsrrh9gyi9/CombatExpansion_WIP_fixed.zip/file
3
Mines211
07/03/2026 1:29 pm
He/Him • Level 5 : Apprentice Dragon
history
I made a few tweaks to my code based on your feedback. I don't remember exactly what I did (maybe being more specific with namespaces; minecraft vs mine), but it worked! Thanks for your help!

(Next thing I need to figure out how to make it work with the changes in 26.3 snapshot 1)
1
Mines211
07/03/2026 9:01 am
He/Him • Level 5 : Apprentice Dragon
I'll look into everything you pointed out in this. Thanks!
1
ScotsMiser
07/03/2026 1:04 am
Level 72 : Legendary Miner
👍 that was helpful
1
Fallow Deer
07/02/2026 11:51 am
He/Him • Level 24 : Expert Blockhead Pixel Painter
From this error alone I can't make up the problem, would you be able to send me the .zip you currently use?
If you are seeking for examples, check these out:
1
Mines211
07/02/2026 12:11 pm
He/Him • Level 5 : Apprentice Dragon
history
Can I send it via DM, or would you prefer me to put it here?

EDIT: I decided to put the link to my .zip here:
https://mega.nz/file/GYsHGCRS#Aj8e9UAKNBH03n55PfhWs3orszxzxBLslonE2x2-ZRU
2
Fallow Deer
07/02/2026 1:20 pm
He/Him • Level 24 : Expert Blockhead Pixel Painter
I'll check it out tomorrow.
2
Fallow Deer
07/03/2026 4:11 am
He/Him • Level 24 : Expert Blockhead Pixel Painter
history
I fixed the pack with these things:

- Fixed Netherite Axe trims showing as pink/black missing textures.
- Fixed axe trim models loading textures from the wrong atlas.
- Added working vanilla trim material support for Netherite Axes.
- Fixed custom item model links for Bacon Bomb and several custom weapons.

- Just optimized the pack better

Download it here: Combat Expansion Fixed
1

Welcome