Jump to content

[1.8][Solved]All of a sudden my item models aren't working!


AnZaNaMa

Recommended Posts

My mod used to be ExpTools. I have been working on my mod for a while and over time, I decided to change the name of the mod and use a system of energy instead of the player's experience. Because of this, I wanted to go through and change everything named Exp... or XP... to 'energy' for example, I have XPAxe and I changed it to EnergyAxe. I went through all the files and changed all references, even the models. The blocks render perfectly fine with the textures, but when they are items or I have any of my other items, the textures don't work at all and I can't figure out why.

 

Here's the link to my mod repo:

https://github.com/AnZaNaMa/EnergyTools

 

Some Other Places you might want to look at:

 

Item Package (specifically the RenderItemRegister.class):

https://github.com/AnZaNaMa/EnergyTools/tree/master/src/main/java/com/AnZaNaMa/EnergyTools/Item

 

Block Package (specifically the RenderBlockRegister.class):

https://github.com/AnZaNaMa/EnergyTools/tree/master/src/main/java/com/AnZaNaMa/EnergyTools/Block

 

Client Proxy (where all the rendering and registering textures stuff happens):

https://github.com/AnZaNaMa/EnergyTools/blob/master/src/main/java/com/AnZaNaMa/EnergyTools/Proxy/ClientProxy.java

 

Models:

https://github.com/AnZaNaMa/EnergyTools/tree/master/src/main/resources/assets/energytools/models

 

Textures:

https://github.com/AnZaNaMa/EnergyTools/tree/master/src/main/resources/assets/energytools/textures

 

Please help me figure out why the textures won't load. I've tried a lot of different things to make it work. I tried to be as specific as I could but It's not that much, because I don't know exactly where the problem lies.

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Link to comment
Share on other sites

I have been checking and rechecking all my files and cross-referencing them with tutorials and other peoples' code (like GreyGhost) and everything required to make them render correctly is there. I have no idea why it's not working.

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Link to comment
Share on other sites

Sorry for being dumb guys. I was using item.getUnlocalizedName in RenderRegister. This returns "item." before the actual unlocalizedName. I just made an IEnergyItem and IEnergyBlock that I applied to all of my blocks and items that forced them to have a function called getName(). Also, I checked if(item instanceof IEnergyItem) before I did the register().

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

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.