Posted September 1, 201213 yr i have a multi texture file and for some reason it only works if it is in the mc jar. in the older versions of forge i had no problem but since the new update i am having lots of problems. and i carnt find a way to fix this, the pic is saying missing (i just kept chaning the coords and it said missing) anyone know how to fix this? the file is 256 by 256. EDIT: i forgot to say that i am using mc forge version 4.0.0.204 incase this helps
September 1, 201213 yr If your mod pakage is in Minecraft.common, you can create a folder called gfx into common package and drop here your terrain.png and your item.png (or other names) Example: you have a block YBlock To call your graphics from your mod, use : MinecraftForgeClient.preloadTexture("/gfx/terrain.png"); to load the textures and in the block file: @SideOnly(Side.CLIENT) public String getTextureFile() { return "/gfx/terrain.png"; } It's only a example. You can change the names or the path of your graphics folder if you update the load and call methods Sorry. I don't speak english.
September 1, 201213 yr Author Thanks for you help, i will try this once i get back to my dev pc, i wish that there was more tutorials on stuff like this... as how am i ment to know that they changed it.
September 2, 201213 yr Thanks for you help, i will try this once i get back to my dev pc, i wish that there was more tutorials on stuff like this... as how am i ment to know that they changed it. Read the Changelog? So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.
September 2, 201213 yr i never saw this in the changelog... Well, they still work in minecraft.jar. And like it was described. So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.
September 2, 201213 yr Author it dossent work, this is why i hate the new forge updates, why change somethign if it works?
September 2, 201213 yr Here is my code. [hide] This is my main mod file http://s2.subirimagenes.com/otros/previo/thump_7961967pant.jpg[/img] and this is one of my block file http://s2.subirimagenes.com/otros/previo/thump_7961989pant2.jpg[/img] [/hide] I Hope it helps you
September 2, 201213 yr it dossent work, this is why i hate the new forge updates, why change somethign if it works? Nothing would have worked if they didnt update forge since Minecraft's code changed for 1.3 Anyways I was going to post my code here but I found a tutorial on the forge wiki which would be of more use. Wuppy's Tutorial on how to add custom textures. Should help ya solve all ya problems http://wuppy29.blogspot.nl/2012/08/modding-custom-textures-part-1.html If you guys dont get it.. then well ya.. try harder...
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.