Jump to content

Recommended Posts

Posted

So I am trying to create the elements in the periodic table. However, I'm not really sure how to create different model files for each one. They are all variations of the "element" item, but with different data values. I have attached my base item, specific item, item registering class, utility class which contains my enum list, and my current model file. The first model file works, and my generic element has a texture. My question is how to get the other 118 items to have models and textures.

ItemBase.java

ItemElement.java

ModItems.java

ElementUtil.java

element.json

Posted

Please post your code on Pastebin, as a GitHub repository, or similar. People do not want to have to download files in order to talk about them.

 

Problematic Code #2, #7, #10, #14

 

 

 

 

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.

Posted (edited)

https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/LabDay.java#L50

Problematic Code #2

 

Secondly, you're not telling the ModelLoader about your variant models in any way.

Edited by Draco18s

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.

Posted

That's sorta the question. How do i go about telling the loader that I have all these different items to load separate models for?

 

Also the registerRenderers() is for custom tile entity rendering, which I recently deleted from the mod, but the code is still there if i want to add it back.

Posted
5 minutes ago, Hamhub7 said:

That's sorta the question. How do i go about telling the loader that I have all these different items to load separate models for?

ModelLoader.setCustomModelResourceLocation(item, metadata, location)

?

I wonder what that metadata parameter is for...

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.

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.