I am trying to use an IBakedModel to create a dynamic model for an item. I've been looking at GreyGhosts examples but I start getting confused here: https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/mbe15_item_dynamic_item_model/ChessboardFinalisedModel.java#L135
From then on there are tons of numbers which to me don't really have any correlation as to where they came from so I can't quite understand how to do it in my own implementation.
Its easier to make just all different overlays and then overlay them onto the item using IBakedModel.
So my item has 6 different layers overlayed onto it. For each layer I have made the different json models and textures, I have not done any combinations, those are done in code.
Ill just share my code with you, I think its pretty self explaining, but some comments are there making it easy to understand:
@Override
public void registerGun(IForgeRegistry<Item&