Posted June 1, 20187 yr 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
June 1, 20187 yr 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.
June 1, 20187 yr Author My bad. The Github Repository is here: https://github.com/hamhub7/LabDay Files in question: https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/item/ItemElement.java https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/item/ItemBase.java https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/item/ModItems.java https://github.com/hamhub7/LabDay/blob/master/src/main/java/com/hamhub7/labday/util/ElementUtil.java https://github.com/hamhub7/LabDay/blob/master/src/main/resources/assets/labday/models/item/element.json
June 1, 20187 yr 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 June 1, 20187 yr 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.
June 1, 20187 yr Author 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.
June 1, 20187 yr 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.