Jump to content

[SOLVED] [1.10.2] Register Models Issue


Zootaxz

Recommended Posts

Hey :) (I

 

some time ago i started developing a mod for 1.7.x.

Now i want to upgrade the mod to 1.10.2.

 

I've downloaded the recommened 1.10.2 forge version,

like in 1.7.x i executes

"gradlew setupDecompWorkspace eclipse"

and opened it in eclipse.

 

First time i copied all my files to the new workspace, that was a mistake, i should firstly learn more about the newer versions and watched some tutorials for 1.8/1.9 on youtube.

That helped me a lot and i started to recreate some of my basic classes for the new model-support via json files.

 

But i got an error, i have already reinstalled everythink from forge (gradlew) but got always the same errors.

Different videos or forum-posts saying that i need to register the item-model json files via

"Minecraft.getMinecraft().getRenderItem().getItemModelMesher()....."

or with

"ModelLoader..."

 

but the method "getRenderItem()" not exists in my minecraft, and the class ModelLoader not exists.

 

What am i doing wrong? :/

 

Thanks :)

 

 

 

 

Link to comment
Share on other sites

ModelLoader in preinit. Don't use ModelMesher, there are problems with that method.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

ModelLoader.setCustomModelResourceLocation(...)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Do any other Minecraft classes exist? Are you sure your project is using 1.10.2?

 

Yes others classes exists and no its not 1.10.2 because i'm very very bad and should sometimes use my brain while coding.

 

You two got a "Thanks", because its my fail. In my first try i extraced the 1.10.2 package, but after some "gradlew intellij" tries (I wanted to change my IDE) ive deleted all the files and extraced it again. But i extraced the 1.7.1 zip file...

 

Sorry for that guys :(

Thanks again

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.