Hey guys, so I'm learning how to create custom items, and for some reason, the JSON file can't be found even though I'm 99% sure my file structure is correct.
Here's the code where I register the models (from what I understand, this event is ran client-side once the ModelLoader is ready for models):
@SubscribeEvent
public static void registerModels(ModelRegistryEvent event){
for(Item item: ItemHandler.INSTANCE.itemList){
ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Test.MODID + ":" + item.getRegistryName(), "inventory"));
}
}
And here's a screenshot of my folder structure: https://gyazo.com/5833a05b1e69ec11647a312ea24dd5f6
As you can see, I have 'assets.test.models.item.ItemTrainingStaff.json'. The registry name for the item is "ItemTrainingStaff", however, it continues to spit out the error: "Caused by: java.io.FileNotFoundException: test:models/item/ItemTrainingStaff.json".
If you have any idea as to why this could be happening, I'm all ears! Thanks!