Hi, I have a problem with registration JSON model for the block.
The fact is that if I use as a name for the model registerName everything is working properly.
public static void registerRender(Block block) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory"));
}
But if I try to set the file name alone is my model is not displayed.
public static void registerRenderSuper(Block block, int meta, String file) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), meta, new ModelResourceLocation("elderutilities:" + file, "inventory"));
}
P.s Under the model I have in mind: blockstates, models block and item.