(1.21.5) Problem registering armor trim material and pattern #4579
Unanswered
Lea-Reift
asked this question in
Mod Dev Support
Replies: 1 comment 4 replies
|
To answer your 1st question
When registering item which you want to use as trim, you need to call for eg: and also add item to ItemTags.TRIM_MATERIALS (which you are already doing) And for the textures it's a bit tricky to get right because of folder structure changes. I suggest checking out my implementation in this branch where I’ve successfully set up for Minecraft 1.21.5. I stumbled upon this post while trying to solve the same issues myself. With the significant changes in 1.21.4+ and almost no documentation for 1.21.5, it’s definitely a rough ride. |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Greetings. I recently started mod development, and I started with fabric. I'm studying it with Kaupenjoe's video series (intended for version 1.21.1, although there were breaking changes, the syntax is almost the same). I tried to register custom armor trim pattern and material, but I got two issues:
The new material is not recognized in the smithing table.

The pattern breaks the texture of the in game armor item.

Any ideas? Also, I have the textures for the trim template, but maybe they are in the wrong folders for this version.
The armor models are in
resources/assets/tutorialmod/textures/trims/models/armorand the color_palettes inresources/assets/tutorialmod/textures/trims/color_palettes. Source code below.Smithing Template registration:
Add item to TRIM_MATERIALS tag:
Model DataGen registration:
Recipe DataGen registration:
Registry DataGen declaration:
TrimMaterials declaration:
TrimPattern declaration:
DataGenerator initializer:
All reactions