Posted February 10, 20169 yr ModelResourceLocation(String modidPath, String p_i4081_2) My current code (reference): Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item,0, new ModelResourceLocation(Reference.MODID +":"+item.getRegistryName(), "inventory")); I've done an extensive google search trying to figure out what the second string parameter is for ModelResourceLocation, but none of the results were of any help. What is the second string parameter, and is the name required to be anything specific? Can I name it anything relative to my mod? I currently have it set to inventory.
February 11, 20169 yr Author ModelLoader.setCustomModelResourceLocation, is this equivalent to what I was doing? Also, is there somewhere I can look to figure out what I should and should not do? Such as using getRegistryName() versus using substring with getUnlocalizedName().
February 11, 20169 yr ModelLoader.setCustomModelResourceLocation is Forge's replacement for ItemModelMesher#register(Item, int, ModelResourceLocation) , yes. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.