Here's my model registration code.
@SubscribeEvent
public static void registerModels(ModelRegistryEvent event) {
for (Block block : AMBlocks.BLOCKS) {
ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0,
new ModelResourceLocation(block.getRegistryName(), "inventory"));
}
for (Item item : AMItems.ITEMS) {
ModelLoader.setCustomModelResourceLocation(item, 0,
new ModelResourceLocation(item.getRegistryName(), "inventory"));
}
}