Jump to content

Recommended Posts

Posted

I'm working on a 1.8 mod and I want to use B3D models because the JSON models can't do triangles.

 

I have used the code from here:

https://github.com/MinecraftForge/MinecraftForge/blob/b45fd787f36626ef84f26e881848167fec5957b5/src/test/java/net/minecraftforge/debug/ModelLoaderRegistryDebug.java

 

But when I start the game it tells me there are no models defined

[16:02:38] [Client thread/ERROR] [FML]: Model definition for location appliedautomation:block_analyzer#facing=up not found

[16:02:38] [Client thread/ERROR] [FML]: Model definition for location appliedautomation:block_analyzer#facing=down not

..and so on for every side

 

I have a b3d file in appliedautomation and appliedautomation#model#block but neither seem to work.

 

Is this a thing with my code or with my model file? (which is saved as block_analyzer.b3d )

 

ClientProxy:

http://pastebin.com/YcHPLF51

 

BlockAnalyzer:

http://pastebin.com/3g0W0zQC

 

The model file is this, converted into b3d through Blender. Yes, it is a model from EnderIO, I will not be using this model in the mod, it's just to test with.

http://pastebin.com/b3xNug0h

 

It is just a bunch of numbers - it's an Obj file.

 

Thanks for any help

 

 

 

 

 

 

 

 

 

Posted

Blockstates files work with any format of baked model. Just specify the .obj or .b3d extension in your model paths to use an OBJ or B3D model.

 

If you want to use OBJ models, you need to tell the loader to look in your domain like you did for the B3D loader.

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.

Posted

You mean like this in the blockstates file? Because this doesn't work:

 

{

    "variants": {

        "normal": { "model": "appliedautomation:ModelTest.b3d" }

    }

}

 

If there is a decent tutorial on this for 1.8 that would be great.

Posted

You haven't defined a variant for each value of the

facing

property. The

normal

variant is only used if your block doesn't have any properties.

 

I don't know of any tutorials, only Forge's debug code.

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.

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.