bocaj1234567 Posted January 20, 2013 Share Posted January 20, 2013 I am confused about creating new textures. None of the videos and tutorials are that clear. Should I create one file with all of my textures? Or should I create a file for each texture? What are the downsides for each option? Link to comment Share on other sites More sharing options...
gotyaoi Posted January 20, 2013 Share Posted January 20, 2013 The Forge way is one file for all the textures. One texture per file was the old modloader way, and it may be the correct way again in the future, but not now. Link to comment Share on other sites More sharing options...
bocaj1234567 Posted January 20, 2013 Author Share Posted January 20, 2013 The Forge way is one file for all the textures. One texture per file was the old modloader way, and it may be the correct way again in the future, but not now. None of the tutorials seem to make it clear how to chose which part of the file is the texture for the block that you want to have that texture. Where do you chose the texture index for each block? Link to comment Share on other sites More sharing options...
gotyaoi Posted January 20, 2013 Share Posted January 20, 2013 They sort of do tell you, but I'll reiterate. On the client side, somewhere in your initialization logic, you need to call MinecraftForgeClient.preloadTexture("/your/texture/file.png"); In you block file make sure that you have this override. @Override public String getTextureFile() { return "/your/texture/file.png"; }Finally, when you instantiate your block (instantiate means to call the constructor), make sure to set the texture parameter to the index of the texture you want in your texture file, starting from 0. If you want your block to have more complicated textures, instead of doing step 3, you will instead override the various getBlockTexture* methods to return the correct index in the file based on conditions like side and metadata. Link to comment Share on other sites More sharing options...
ninja85a Posted August 2, 2013 Share Posted August 2, 2013 is this for 1.6. 1.5? Link to comment Share on other sites More sharing options...
dwwojcik Posted August 2, 2013 Share Posted August 2, 2013 This was for 1.4. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now