Bawnorton / AllTheTrims

Allows any item to be an armour trim material and makes all armour trimmable.
MIT License
5 stars 1 forks source link

[Suggestion] Manual texture overrides #33

Open ZeroLevels opened 3 months ago

ZeroLevels commented 3 months ago

I understand that having a custom texture for every material of every pattern is not really feasible, but every time I come across a mod that does overlays, it lacks luster when it comes to the use of otherwise fantastical materials. In situations like that, a custom texture might be more prudent or appreciated by the end user.

As such, allowing for texture artists to override the default textural overlay and generated color palettes would be appreciated! I don't know how popular a feature it would be among others, but I know for me it's the one reason I tend not to download mods that do this sort of thing.


Functionally, I figure that overrides could be placed in assets/allthetrims/textures/trims/**[material_origin]**/color_palettes/**[material_ID]**.png

When determining a list of materials for palette generation, it would probably check the existence of these files. When/if it finds palette overrides to use, it would then check if the material is blacklisted/whitelisted, and then load that palette texture accordingly.


Anyways. Nice mod! Nice that someone is giving love to the trim functionality and trying to expand it so significantly. 😄

Bawnorton commented 3 months ago

I'll look into adding something like this for 1.21. The recent changes to the palette generation (4.x) are quite a bit more vibrant than those 3.x, but yes, generated textures will always fall short of those created by hand.

I don't have to conform to the whole path for resource-pack-driven textures so I'd probably just read them in as assets/allthetrims/trim_palettes/mod_id/material_id.png