Posted April 28, 20178 yr private static ItemTest itemTest; public static void init(RegistryEvent.Register<Item> event) { itemTest = new ItemTest("test", event); } public static void initRenders() { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(itemTest, 0, new ModelResourceLocation(itemTest.getRegistryName(), "inventory")); } Registering the model for ItemTest causes a NPE and I don't know why. Some ideas? Or better, is there a more elegant way to render items? Edited April 28, 20178 yr by lieywe
April 28, 20178 yr 22 minutes ago, lieywe said: public static void init(RegistryEvent.Register<Item> event) { itemTest = new ItemTest("test", event); } What the hell is this? Also, do not use the ItemModelMesher, use the ModelLoader in preInit. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
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.