Posted May 13, 201510 yr 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.
May 13, 201510 yr Author 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.
May 13, 201510 yr Author 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.
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.