Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi! I've searched everywhere for this, but to no avail. Can anybody tell me how to use the B3D Model Loader?

 

Thanks in Advance!

  • Author

Okay I got my entity with the B3D Model. I have an IModel - which doesn't have a render method... what do I do now?

  • Author

Are you sure? The BlockModelRenderer may work but I'm not sure what to put for all the parameters. Such as VertexFormat, bakedTextureGetter, blockPosIn, worldRendererIn, blockAccessIn, and blockStateIn.

  • Author

Alright I've gotten pretty far from what you've given me so far. Still don't know what to put in for the actual  model.bake() parameters.  The VertexFormat, and the bakedTextureGetter.

  • Author

I'm not sure I understand what you mean exactly. I want to use a .obj or .b3d model for my entity and some items. How would registering my model and making a ModelResourceLocation make it render?

 

I've already loaded my model into an IModel, but I want that IModel to render now. How do I do that???

 

 

ModelBakeEvent requires the following parameters ModelManager, IRegistry and ModelLoader, and B3DLoader.instance doesn't work for a ModelLoader..

  • Author

I can't do what is done in RenderFallingBlock... it causes my game to crash because I can't pass in a block state... as I'm not rendering a block, rather an entity.

 

Here is my class:

 

http://pastebin.com/b8TNAVZf

 

What are ModelLoaderRegistry, and ICustomModelLoader. In this forum posting: http://www.minecraftforge.net/forum/index.php?topic=27505.0 it says the new ModelLoaderRegistry is a "replacement for IAdvancedModelLoader"

  • Author

Thanks! How would I actually use that in my class? I had a link to a paste-bin copy of it above. I don't have an IBakedModel - I have an IModel.

  • Author

How? I can't use ModelBakeEvent because I don't know any of the parameters.. ModelManager, ModelLoader, and IRegistry

You do not know how events work. Google it, there are plenty of tutorials.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Judging by your last reply, you do not know how events work. You don't have to create new instances of an Event, but rather listen to the events posted by Forge/FML. Seriously, google it.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

  • Author

Alright I've used ModelBakeEvent to get my  IBakedModel. Now, how would I do worldrenderer.addVertexData(); from there? I can get a list of all the quads from my IBakedModel, but that does not return a list of int's - I think..

Look inside BakedQuad maybe? int[28] vertexData.

1.7.10 is no longer supported by forge, you are on your own.

  • Author

UPDATE!

 

I fixed the crashing issue.. I forgot about worldRenderer.startDrawingQuads()

 

However, I still cannot see my model, as I don't know what to do for addVertex().. am I supposed to use the vertexData?

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.