Hey, I've been looking around and trying to figure out how to make an item with a dynamic texture similar to armor and armor trims. Right now I have the items set up and into the game without any functionality. From the Forge Discord, I was told to make a custom 2D model to start the process and was linked to a GitHub showing how to do it though they had their own API and mod setup so it made it a little hard to understand when looking at a way to start off.
I've been digging in the code for Minecraft and found the code for the armor trims and have found a couple of methods, specifically the "generateLayeredItem()" method, that could possibly be used but how would I go about calling the method for testing purposes?
IE: There is a rock item and a rune item. The items are separate but when crafted it creates a rune infused rock which is just the textures of the rock on layer0 and the rune on layer1.
I've messed around with layering and figured out how to do it if it was just a regular item using the .json for it rather an item that can be interchangeable as if it were an armor with an armor trim.
I haven't been able to find any resources on making a custom 2D model and have only been able to find how to make custom 3D models whether that be for items or blocks. Any help, tips or guidance would be greatly appreciated.