Posted November 7, 201212 yr Basically I just can't load a texture. This won't work: bindTextureByName("/n1xx1/stuff/landpaint.png"); This will: bindTextureByName("/terrain.png"); The file dimension are 96x96 and it's a png with alpha value. Also, it's not saying "missing texture" it just don't show up just like it's an empty texture. But, if I put my texture in the / directory it just work fine. Oh, and I'm using a zipped mod.
November 7, 201212 yr Do you have the png file in the right directory. This is what I have in the code and the file structure. %MCP%/src/common/x/y/z/textures.png public static String BLOCK_PNG = "/x/y/z/textures.png";
November 8, 201212 yr Author Do you have the png file in the right directory. This is what I have in the code and the file structure. %MCP%/src/common/x/y/z/textures.png public static String BLOCK_PNG = "/x/y/z/textures.png"; I already said I'm sure I have the texture. Actually it's not even saying "missing texture".
November 8, 201212 yr If your running it before compiling your mod and running it in a client as in you are running it in eclipse, you need to put the png in your minecraft.jar IN MCP with the specified path from your code (minecraft.jar/n1xx1/stuff/landpaint.png) After recompiling/reobf and trying to run it from the client/server make sure you have it in the mod file the same as it would be in the .jar
November 8, 201212 yr Author If your running it before compiling your mod and running it in a client as in you are running it in eclipse, you need to put the png in your minecraft.jar IN MCP with the specified path from your code (minecraft.jar/n1xx1/stuff/landpaint.png) After recompiling/reobf and trying to run it from the client/server make sure you have it in the mod file the same as it would be in the .jar 1) I'm not using eclipse. I use NetBeans. 2) I'm using my own builder that automatically make a zip file. 3) I put that zip file in the mods folder. Anyway, I'll figure out alone.
November 8, 201212 yr Put this in your block.java file public String getTextureFile() { return "/YourMod/SpriteSheet.png"; } Also you need to set up a proxy first. I made the night vision mining hats mod. http://www.minecraftforum.net/topic/1830713-152forge-night-vision-mining-hats/
November 9, 201212 yr Author Put this in your block.java file public String getTextureFile() { return "/YourMod/SpriteSheet.png"; } Also you need to set up a proxy first. Please, read the topic before say any random stuff. I'm talking about custom renders, not changing block texture.
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.