Posted May 3, 20178 yr Good afternoon, the renderer does not take into account its name json file. But if you use registry name, then everything works fine. Here are examples, the first works the second is not. 1: public void renderItemMeta(Item item, int meta, String file) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, meta, new ModelResourceLocation(item.getRegistryName(), "inventory")); } 2: public void renderItemMeta(Item item, int meta, String file) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, meta, new ModelResourceLocation("uilmod:" + file, "inventory")); }
May 3, 20178 yr Author Thank you! That was the problem. But I still do not understand why ItemModelMesher does not allow me to use my json file. After all, in the filename of the file, he took the registration name and then it worked. But when I pointed out my file name, he was not.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.