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

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?

I think you need to convert your model in json and then register the item to the ItemModelMesher as usual.

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.

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.

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.