Posted May 1, 20169 yr 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?
May 1, 20169 yr I think you need to convert your model in json and then register the item to the ItemModelMesher as usual.
May 1, 20169 yr 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.
May 1, 20169 yr 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.