Jump to content

[Unsolved] B3D Block rendering in 1.8


DestinySpork

Recommended Posts

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

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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.

Guest
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.