Jump to content

[SOLVED][1.18] - ItemModelProvider How to point to the "generated" folder?


American2050

Recommended Posts

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 by American2050
Solved
Link to comment
Share on other sites

  • American2050 changed the title to [SOLVED][1.18] - ItemModelProvider How to point to the "generated" folder?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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