PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
52 stars 21 forks source link

Custom overlays for leather armor textures #4009

Open Kyles1201 opened 5 days ago

Kyles1201 commented 5 days ago

Terms

Discord tag (optional)

Kyles120

Describe the solution you'd like

Vanilla leather armor has 4 texture files. 2 for the textures that are affected by colors, and 2 for the textures that are not affected by colors. I understand that the vanilla overlay can be disabled by itemsadder, but what I want is the ability to add NEW overlay textures to armor.

This can be done in the armor_rendering section of any custom armor. This would basically allow the texture to have certain sections affected by "use_color" but others will not.

Is your feature request related to a problem?

Yes. I have custom textures for a type of armor that I want to use the armor rendering "use_color: true" option, but I do not want the color to affect the entire texture. This is why having a custom overlay (like vanilla leather armor) can fix this issue.

Describe alternatives you've considered

no alternatives

Additional context

Here is an example of how it could work in the armor rendering section.

armors_rendering: new_leather_armor: color: '#7575ff' layer_1: armors//new_leather_armor_layer_1 layer_1_overlay: armors//new_leather_armor_layer_1_overlay layer_2: armors//new_leather_armor_layer_2 layer_2_overlay: armors/new_leather_armor_layer_2_overlay use_color: true

Andre601 commented 4 days ago

The way I understand IA's custom armor setup here would leave open, wether this is technically possible to do at all. ItemsAdder is using core shader manipulation to allow custom armor textures to work in vanilla without needing Optfine or a CIT-compatible mod. And while it is powerful, is there no guarantee that it would be doable, especially if the shader can't be altered in such a way that would make it possible.