Posted December 13, 20213 yr So I have a Class extending ItemModelProvider to generate the .json files for my items models. The one problem I'm having is when I want to generate the item for a block. In this case I'm using the method `withExistingParent` but the problem is that when I point to the "parent" (in this case the model for the block itself) it complains about that file not existing. And while it's true that it doesn't exists, it does exist on the "generated" resources. withExistingParent(ModItems.BLACK_STONE_ITEM.get().getRegistryName().getPath(), new ResourceLocation(ModInfo.MOD_ID, "block/black_stone")); So my question is, how do I point to that folder instead of the "regular" resources folder? Edited December 13, 20213 yr by American2050 Solved
December 13, 20213 yr Author Ok so... After looking around a bit more I found out the solution. I didn't need to create the model for my BlockItem from my ItemModelProvider, but instead from my BlockStateProvider using the method `simpleBlockItem` That registered the model for the item of the block without any issue.
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.