Jump to content

bi3sad23

Members
  • Posts

    2
  • Joined

  • Last visited

bi3sad23's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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.
  2. 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")); }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.