Jump to content

[Forge 1.17.1] OBJ Loader failing to find model


Recommended Posts

I am trying to load a simple .OBJ model however forge cannot seem to find the model.

Here is my resources folder: https://imgur.com/a/q8TjV2U

My datagen code: 

BlockModelBuilder model = models()
                .modelLocation(new ResourceLocation(MODID, "models/block/connecter")) // ISSUE HERE
                .texture("qr", new ResourceLocation(MODID, "textures/block/connecter"))
                .texture("particle", "#qr");

The error: 

Caused by: java.lang.IllegalArgumentException: OBJ Model testmod:models/block/connecter does not exist in any known resource pack

Any help appreciated, Thanks in advance.

Link to comment
Share on other sites

I found these two exceptions in the log but have no idea what they really mean.


Exception loading blockstate definition: testmod:blockstates/connector.json: java.io.FileNotFoundException: testmod:blockstates/connector.json
Exception loading blockstate definition: 'testmod:blockstates/connector.json' missing model for variant: 'testmod:connector#'


Link to comment
Share on other sites

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.

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.

  • Create New...

Important Information

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