Posted May 26, 201213 yr What if I wanted to use the function getTextureFile but I need to know the metadata of the block? Is there a metadata sensitive version of getTextureFile? http://calclavia.com/uploads/banner.png[/img]
May 26, 201213 yr i don't think so but you could just get the blocks meta data using IBlockAccess.getBlockMetadata(x, y, z); or something similar. http://i577.photobucket.com/albums/ss215/bobstrong/ModBannerMed.png[/img]
May 27, 201213 yr Author If you look at the Universal Electricity hook for addMachine you will understand what I mean. For different metadata blocks, they use different textures. http://calclavia.com/uploads/banner.png[/img]
May 27, 201213 yr Author I tried using ModLoader.addOverride for this problem, but it didn't seem to work. An error keeps saying java.lang.Exception: No registry for this texture: /UniversalElectricity/ores.png How would I register my texture file so that it can be overridden? What I am trying to do is to have different texture files used for different metadata in a block. I need this because my API uses different texture files from different people. Forge getTextureFile seems to not be metadata sensitive. Is there a a way around this? http://calclavia.com/uploads/banner.png[/img]
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.