Jump to content

[1.9] Problems with 3D Models for Items


Lellson

Recommended Posts

Hello!

 

I'm working on updating my mod (1.7.10 to 1.9). My problem is, that I don't know how to attach a custom Model (which extends ModelBase) to an item.

 

In 1.7, I did something like that:

 

MinecraftForgeClient.registerItemRenderer(AstralItems.spellBook, new Astral3DItemBooks(new ModelSpellBook(), "spellBook.png"));

 

I had a custom class (Astral3DItemBooks), which implemented IItemRenderer and I just passed the Model and String (Texture Path) to render the Item.

But the interface IItemRenderer and the method registerItemRenderer doesn't exists anymore...

 

Does anyone know a good tutorial or a solution for this?

Link to comment
Share on other sites

I don't suppose you would know of a decent modeling tool for JSON model creation? MrCrayFish's model generator has some pretty glaring flaws. Like only being able to rotate parts in increments of 22.5 degrees.

 

or a java to JSON model conversion tool?

 

EDIT: come to find out the 22.5 - 45 degree thing is a limitation imposed by minecraft, not the modeler program.....

 

I REALLY dislike the JSON format. I understand it has it's strengths, but it also has some pretty heavy weaknesses as well

 

If you don't want to use JSON models, create your models in a mainstream 3D modelling program and export them as OBJ/B3D.

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

Forge does have an animation system for baked models in the

net.minecraftforge.client.model.animation

package, though there's not a lot of documentation for it.

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